From 0c0d607087190bb5ec7f1c24a02f72bdf8651c96 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 4 Aug 2014 18:06:44 -0700 Subject: [PATCH 001/106] Removed duplicate messages from diagnosticMessages.json. --- .../diagnosticInformationMap.generated.ts | 8 ++++---- src/compiler/diagnosticMessages.json | 20 ------------------- ...ontShowCompilerGeneratedMembers.errors.txt | 4 ++-- 3 files changed, 6 insertions(+), 26 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index cc789bcca11..eaa87cb7aa2 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -8,9 +8,9 @@ module ts { Unrecognized_escape_sequence: { code: 1000, category: DiagnosticCategory.Error, key: "Unrecognized escape sequence." }, Unexpected_character_0: { code: 1001, category: DiagnosticCategory.Error, key: "Unexpected character {0}." }, Missing_close_quote_character: { code: 1002, category: DiagnosticCategory.Error, key: "Missing close quote character." }, - Identifier_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Identifier expected." }, + Identifier_expected: { code: 1003, category: DiagnosticCategory.Error, key: "Identifier expected." }, _0_keyword_expected: { code: 1004, category: DiagnosticCategory.Error, key: "'{0}' keyword expected." }, - _0_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "'{0}' expected." }, + _0_expected: { code: 1005, category: DiagnosticCategory.Error, key: "'{0}' expected." }, Identifier_expected_0_is_a_keyword: { code: 1006, category: DiagnosticCategory.Error, key: "Identifier expected; '{0}' is a keyword." }, Automatic_semicolon_insertion_not_allowed: { code: 1007, category: DiagnosticCategory.Error, key: "Automatic semicolon insertion not allowed." }, Trailing_comma_not_allowed: { code: 1009, category: DiagnosticCategory.Error, key: "Trailing comma not allowed." }, @@ -93,8 +93,8 @@ module ts { A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: { code: 1105, category: DiagnosticCategory.Error, key: "A 'break' statement can only be used within an enclosing iteration or switch statement." }, Jump_target_cannot_cross_function_boundary: { code: 1107, category: DiagnosticCategory.Error, key: "Jump target cannot cross function boundary." }, A_return_statement_can_only_be_used_within_a_function_body: { code: 1108, category: DiagnosticCategory.Error, key: "A 'return' statement can only be used within a function body." }, - Expression_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Expression expected." }, - Type_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type expected." }, + Expression_expected: { code: 1109, category: DiagnosticCategory.Error, key: "Expression expected." }, + Type_expected: { code: 1110, category: DiagnosticCategory.Error, key: "Type expected." }, A_constructor_implementation_cannot_be_declared_in_an_ambient_context: { code: 1111, category: DiagnosticCategory.Error, key: "A constructor implementation cannot be declared in an ambient context." }, A_class_member_cannot_be_declared_optional: { code: 1112, category: DiagnosticCategory.Error, key: "A class member cannot be declared optional." }, A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: { code: 1113, category: DiagnosticCategory.Error, key: "A 'default' clause cannot appear more than once in a 'switch' statement." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index d60fd2e5c4f..2916f9f2db5 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1259,22 +1259,10 @@ "category": "Error", "code": -9999999 }, - "'{0}' expected.": { - "category": "Error", - "code": -9999999 - }, - "Identifier expected.": { - "category": "Error", - "code": -9999999 - }, "String literal expected.": { "category": "Error", "code": -9999999 }, - "Type expected.": { - "category": "Error", - "code": -9999999 - }, "'=>' not preceded by parameter list.": { "category": "Error", "code": -9999999 @@ -1287,10 +1275,6 @@ "category": "Error", "code": -9999999 }, - "Expression expected.": { - "category": "Error", - "code": -9999999 - }, "Line break not permitted here.": { "category": "Error", "code": -9999999 @@ -1363,10 +1347,6 @@ "category": "Error", "code": -9999999 }, - "Only public methods of the base class are accessible via the 'super' keyword": { - "category": "Error", - "code": -9999999 - }, "Import name cannot be '{0}'": { "category": "Error", "code": -9999999 diff --git a/tests/baselines/reference/dontShowCompilerGeneratedMembers.errors.txt b/tests/baselines/reference/dontShowCompilerGeneratedMembers.errors.txt index fdf27296612..b3745deb0bd 100644 --- a/tests/baselines/reference/dontShowCompilerGeneratedMembers.errors.txt +++ b/tests/baselines/reference/dontShowCompilerGeneratedMembers.errors.txt @@ -8,9 +8,9 @@ ~ !!! Type parameter list cannot be empty. ~ -!!! '(' expected. - ~ !!! Type parameter declaration expected. + ~ +!!! '(' expected. }; ~ !!! Expression expected. \ No newline at end of file From 2bc8359b167513543ec89b873e57b2e271f6c5a6 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 6 Aug 2014 15:47:28 -0700 Subject: [PATCH 002/106] Removed unused diagnostics. --- .../diagnosticInformationMap.generated.ts | 35 ----- src/compiler/diagnosticMessages.json | 142 +----------------- 2 files changed, 1 insertion(+), 176 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index eaa87cb7aa2..20edbf7cd8a 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -5,17 +5,10 @@ module ts { Unknown_compiler_option_0: { code: 6001, category: DiagnosticCategory.Error, key: "Unknown compiler option '{0}'." }, File_0_not_found: { code: 6002, category: DiagnosticCategory.Error, key: "File '{0}' not found." }, File_0_must_have_extension_ts_or_d_ts: { code: 6003, category: DiagnosticCategory.Error, key: "File '{0}' must have extension '.ts' or '.d.ts'." }, - Unrecognized_escape_sequence: { code: 1000, category: DiagnosticCategory.Error, key: "Unrecognized escape sequence." }, - Unexpected_character_0: { code: 1001, category: DiagnosticCategory.Error, key: "Unexpected character {0}." }, - Missing_close_quote_character: { code: 1002, category: DiagnosticCategory.Error, key: "Missing close quote character." }, Identifier_expected: { code: 1003, category: DiagnosticCategory.Error, key: "Identifier expected." }, - _0_keyword_expected: { code: 1004, category: DiagnosticCategory.Error, key: "'{0}' keyword expected." }, _0_expected: { code: 1005, category: DiagnosticCategory.Error, key: "'{0}' expected." }, - Identifier_expected_0_is_a_keyword: { code: 1006, category: DiagnosticCategory.Error, key: "Identifier expected; '{0}' is a keyword." }, - Automatic_semicolon_insertion_not_allowed: { code: 1007, category: DiagnosticCategory.Error, key: "Automatic semicolon insertion not allowed." }, Trailing_comma_not_allowed: { code: 1009, category: DiagnosticCategory.Error, key: "Trailing comma not allowed." }, Asterisk_Slash_expected: { code: 1010, category: DiagnosticCategory.Error, key: "'*/' expected." }, - public_or_private_modifier_must_precede_static: { code: 1011, category: DiagnosticCategory.Error, key: "'public' or 'private' modifier must precede 'static'." }, Unexpected_token: { code: 1012, category: DiagnosticCategory.Error, key: "Unexpected token." }, Catch_clause_parameter_cannot_have_a_type_annotation: { code: 1013, category: DiagnosticCategory.Error, key: "Catch clause parameter cannot have a type annotation." }, A_rest_parameter_must_be_last_in_a_parameter_list: { code: 1014, category: DiagnosticCategory.Error, key: "A rest parameter must be last in a parameter list." }, @@ -28,16 +21,10 @@ module ts { An_index_signature_must_have_a_type_annotation: { code: 1021, category: DiagnosticCategory.Error, key: "An index signature must have a type annotation." }, An_index_signature_parameter_must_have_a_type_annotation: { code: 1022, category: DiagnosticCategory.Error, key: "An index signature parameter must have a type annotation." }, An_index_signature_parameter_type_must_be_string_or_number: { code: 1023, category: DiagnosticCategory.Error, key: "An index signature parameter type must be 'string' or 'number'." }, - extends_clause_already_seen: { code: 1024, category: DiagnosticCategory.Error, key: "'extends' clause already seen." }, - extends_clause_must_precede_implements_clause: { code: 1025, category: DiagnosticCategory.Error, key: "'extends' clause must precede 'implements' clause." }, - Classes_can_only_extend_a_single_class: { code: 1026, category: DiagnosticCategory.Error, key: "Classes can only extend a single class." }, - implements_clause_already_seen: { code: 1027, category: DiagnosticCategory.Error, key: "'implements' clause already seen." }, Accessibility_modifier_already_seen: { code: 1028, category: DiagnosticCategory.Error, key: "Accessibility modifier already seen." }, _0_modifier_must_precede_1_modifier: { code: 1029, category: DiagnosticCategory.Error, key: "'{0}' modifier must precede '{1}' modifier." }, _0_modifier_already_seen: { code: 1030, category: DiagnosticCategory.Error, key: "'{0}' modifier already seen." }, _0_modifier_cannot_appear_on_a_class_element: { code: 1031, category: DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a class element." }, - Interface_declaration_cannot_have_implements_clause: { code: 1032, category: DiagnosticCategory.Error, key: "Interface declaration cannot have 'implements' clause." }, - super_invocation_cannot_have_type_arguments: { code: 1034, category: DiagnosticCategory.Error, key: "'super' invocation cannot have type arguments." }, Only_ambient_modules_can_use_quoted_names: { code: 1035, category: DiagnosticCategory.Error, key: "Only ambient modules can use quoted names." }, Statements_are_not_allowed_in_ambient_contexts: { code: 1036, category: DiagnosticCategory.Error, key: "Statements are not allowed in ambient contexts." }, A_function_implementation_cannot_be_declared_in_an_ambient_context: { code: 1037, category: DiagnosticCategory.Error, key: "A function implementation cannot be declared in an ambient context." }, @@ -53,25 +40,18 @@ module ts { A_set_accessor_parameter_cannot_have_an_initializer: { code: 1052, category: DiagnosticCategory.Error, key: "A 'set' accessor parameter cannot have an initializer." }, A_set_accessor_cannot_have_rest_parameter: { code: 1053, category: DiagnosticCategory.Error, key: "A 'set' accessor cannot have rest parameter." }, A_get_accessor_cannot_have_parameters: { code: 1054, category: DiagnosticCategory.Error, key: "A 'get' accessor cannot have parameters." }, - Modifiers_cannot_appear_here: { code: 1055, category: DiagnosticCategory.Error, key: "Modifiers cannot appear here." }, Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: { code: 1056, category: DiagnosticCategory.Error, key: "Accessors are only available when targeting ECMAScript 5 and higher." }, Enum_member_must_have_initializer: { code: -9999999, category: DiagnosticCategory.Error, key: "Enum member must have initializer." }, An_export_assignment_cannot_be_used_in_an_internal_module: { code: 1063, category: DiagnosticCategory.Error, key: "An export assignment cannot be used in an internal module." }, Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, - module_class_interface_enum_import_or_statement: { code: 1067, category: DiagnosticCategory.NoPrefix, key: "module, class, interface, enum, import or statement" }, Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, statement: { code: 1069, category: DiagnosticCategory.NoPrefix, key: "statement" }, - case_or_default_clause: { code: 1070, category: DiagnosticCategory.NoPrefix, key: "case or default clause" }, identifier: { code: 1071, category: DiagnosticCategory.NoPrefix, key: "identifier" }, - call_construct_index_property_or_function_signature: { code: 1072, category: DiagnosticCategory.NoPrefix, key: "call, construct, index, property or function signature" }, expression: { code: 1073, category: DiagnosticCategory.NoPrefix, key: "expression" }, - type_name: { code: 1074, category: DiagnosticCategory.NoPrefix, key: "type name" }, - property_or_accessor: { code: 1075, category: DiagnosticCategory.NoPrefix, key: "property or accessor" }, parameter: { code: 1076, category: DiagnosticCategory.NoPrefix, key: "parameter" }, type: { code: 1077, category: DiagnosticCategory.NoPrefix, key: "type" }, type_parameter: { code: 1078, category: DiagnosticCategory.NoPrefix, key: "type parameter" }, A_declare_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, category: DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an import declaration." }, - Invalid_reference_directive_syntax: { code: 1084, category: DiagnosticCategory.Error, key: "Invalid 'reference' directive syntax." }, Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { code: 1085, category: DiagnosticCategory.Error, key: "Octal literals are not available when targeting ECMAScript 5 and higher." }, An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, category: DiagnosticCategory.Error, key: "An accessor cannot be declared in an ambient context." }, _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, category: DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a constructor declaration." }, @@ -246,13 +226,10 @@ module ts { Watch_input_files: { code: 6005, category: DiagnosticCategory.Message, key: "Watch input files." }, Redirect_output_structure_to_the_directory: { code: 6006, category: DiagnosticCategory.Message, key: "Redirect output structure to the directory." }, Do_not_emit_comments_to_output: { code: 6009, category: DiagnosticCategory.Message, key: "Do not emit comments to output." }, - Skip_resolution_and_preprocessing: { code: 6010, category: DiagnosticCategory.Message, key: "Skip resolution and preprocessing." }, Specify_ECMAScript_target_version_Colon_ES3_default_or_ES5: { code: 6015, category: DiagnosticCategory.Message, key: "Specify ECMAScript target version: 'ES3' (default), or 'ES5'" }, Specify_module_code_generation_Colon_commonjs_or_amd: { code: 6016, category: DiagnosticCategory.Message, key: "Specify module code generation: 'commonjs' or 'amd'" }, Print_this_message: { code: 6017, category: DiagnosticCategory.Message, key: "Print this message." }, Print_the_compiler_s_version: { code: 6019, category: DiagnosticCategory.Message, key: "Print the compiler's version." }, - Allow_use_of_deprecated_0_keyword_when_referencing_an_external_module: { code: 6021, category: DiagnosticCategory.Message, key: "Allow use of deprecated '{0}' keyword when referencing an external module." }, - Specify_locale_for_errors_and_messages_For_example_0_or_1: { code: 6022, category: DiagnosticCategory.Message, key: "Specify locale for errors and messages. For example '{0}' or '{1}'" }, Syntax_Colon_0: { code: 6023, category: DiagnosticCategory.Message, key: "Syntax: {0}" }, options: { code: 6024, category: DiagnosticCategory.Message, key: "options" }, file: { code: 6025, category: DiagnosticCategory.Message, key: "file" }, @@ -260,17 +237,12 @@ module ts { Options_Colon: { code: 6027, category: DiagnosticCategory.Message, key: "Options:" }, Version_0: { code: 6029, category: DiagnosticCategory.Message, key: "Version {0}" }, Insert_command_line_options_and_files_from_a_file: { code: 6030, category: DiagnosticCategory.Message, key: "Insert command line options and files from a file." }, - Use_the_0_flag_to_see_options: { code: 6031, category: DiagnosticCategory.Message, key: "Use the '{0}' flag to see options." }, File_change_detected_Compiling: { code: 6032, category: DiagnosticCategory.Message, key: "File change detected. Compiling..." }, - STRING: { code: 6033, category: DiagnosticCategory.Message, key: "STRING" }, KIND: { code: 6034, category: DiagnosticCategory.Message, key: "KIND" }, FILE: { code: 6035, category: DiagnosticCategory.Message, key: "FILE" }, VERSION: { code: 6036, category: DiagnosticCategory.Message, key: "VERSION" }, LOCATION: { code: 6037, category: DiagnosticCategory.Message, key: "LOCATION" }, DIRECTORY: { code: 6038, category: DiagnosticCategory.Message, key: "DIRECTORY" }, - NUMBER: { code: 6039, category: DiagnosticCategory.Message, key: "NUMBER" }, - Specify_the_codepage_to_use_when_opening_source_files: { code: 6040, category: DiagnosticCategory.Message, key: "Specify the codepage to use when opening source files." }, - Additional_locations_Colon: { code: 6041, category: DiagnosticCategory.Message, key: "Additional locations:" }, Compilation_complete_Watching_for_file_changes: { code: 6042, category: DiagnosticCategory.Message, key: "Compilation complete. Watching for file changes." }, Generates_corresponding_map_file: { code: 6043, category: DiagnosticCategory.Message, key: "Generates corresponding '.map' file." }, Compiler_option_0_expects_an_argument: { code: 6044, category: DiagnosticCategory.Error, key: "Compiler option '{0}' expects an argument." }, @@ -281,7 +253,6 @@ module ts { Unsupported_locale_0: { code: 6048, category: DiagnosticCategory.Error, key: "Unsupported locale '{0}'." }, Unable_to_open_file_0: { code: 6049, category: DiagnosticCategory.Error, key: "Unable to open file '{0}'." }, Corrupted_locale_file_0: { code: 6050, category: DiagnosticCategory.Error, key: "Corrupted locale file {0}." }, - No_input_files_specified: { code: 6051, category: DiagnosticCategory.Error, key: "No input files specified." }, Warn_on_expressions_and_declarations_with_an_implied_any_type: { code: 7004, category: DiagnosticCategory.Message, key: "Warn on expressions and declarations with an implied 'any' type." }, Variable_0_implicitly_has_an_1_type: { code: 7005, category: DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." }, Parameter_0_implicitly_has_an_1_type: { code: 7006, category: DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." }, @@ -290,8 +261,6 @@ module ts { _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: { code: 7010, category: DiagnosticCategory.Error, key: "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type." }, Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: { code: 7011, category: DiagnosticCategory.Error, key: "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type." }, Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: { code: 7013, category: DiagnosticCategory.Error, key: "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type." }, - Lambda_function_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: { code: 7014, category: DiagnosticCategory.Error, key: "Lambda function, which lacks return-type annotation, implicitly has an '{0}' return type." }, - Array_literal_implicitly_has_an_0_type: { code: 7015, category: DiagnosticCategory.Error, key: "Array literal implicitly has an '{0}' type." }, Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_type_annotation: { code: 7016, category: DiagnosticCategory.Error, key: "Property '{0}' implicitly has type 'any', because its 'set' accessor lacks a type annotation." }, Index_signature_of_object_type_implicitly_has_an_any_type: { code: 7017, category: DiagnosticCategory.Error, key: "Index signature of object type implicitly has an 'any' type." }, Object_literal_s_property_0_implicitly_has_an_1_type: { code: 7018, category: DiagnosticCategory.Error, key: "Object literal's property '{0}' implicitly has an '{1}' type." }, @@ -317,14 +286,11 @@ module ts { Type_parameter_declaration_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type parameter declaration expected." }, Type_argument_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type argument expected." }, String_literal_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "String literal expected." }, - not_preceded_by_parameter_list: { code: -9999999, category: DiagnosticCategory.Error, key: "'=>' not preceded by parameter list." }, - Invalid_assignment_target: { code: -9999999, category: DiagnosticCategory.Error, key: "Invalid assignment target." }, super_must_be_followed_by_argument_list_or_member_access: { code: -9999999, category: DiagnosticCategory.Error, key: "'super' must be followed by argument list or member access." }, Line_break_not_permitted_here: { code: -9999999, category: DiagnosticCategory.Error, key: "Line break not permitted here." }, catch_or_finally_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "'catch' or 'finally' expected." }, Block_or_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Block or ';' expected." }, Modifiers_not_permitted_on_index_signature_members: { code: -9999999, category: DiagnosticCategory.Error, key: "Modifiers not permitted on index signature members." }, - Class_member_declaration_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Class member declaration expected." }, Declaration_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Declaration expected." }, Invalid_reference_comment: { code: -9999999, category: DiagnosticCategory.Error, key: "Invalid reference comment." }, File_0_is_not_an_external_module: { code: -9999999, category: DiagnosticCategory.Error, key: "File '{0}' is not an external module." }, @@ -345,7 +311,6 @@ module ts { Enum_name_cannot_be_0: { code: -9999999, category: DiagnosticCategory.Error, key: "Enum name cannot be '{0}'" }, Types_of_property_0_are_incompatible_Colon: { code: -9999999, category: DiagnosticCategory.Error, key: "Types of property '{0}' are incompatible:" }, Types_of_parameters_0_and_1_are_incompatible_Colon: { code: -9999999, category: DiagnosticCategory.Error, key: "Types of parameters '{0}' and '{1}' are incompatible:" }, - Unknown_identifier_0: { code: -9999999, category: DiagnosticCategory.Error, key: "Unknown identifier '{0}'." }, Property_0_is_inaccessible: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' is inaccessible." }, Function_implementation_is_missing_or_not_immediately_following_the_declaration: { code: -9999999, category: DiagnosticCategory.Error, key: "Function implementation is missing or not immediately following the declaration." }, Property_0_of_type_1_is_not_assignable_to_string_index_type_2: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' of type '{1}' is not assignable to string index type '{2}'." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 2916f9f2db5..f21e75a7e31 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -12,38 +12,14 @@ "code": 6003 }, - "Unrecognized escape sequence.": { - "category": "Error", - "code": 1000 - }, - "Unexpected character {0}.": { - "category": "Error", - "code": 1001 - }, - "Missing close quote character.": { - "category": "Error", - "code": 1002 - }, "Identifier expected.": { "category": "Error", "code": 1003 }, - "'{0}' keyword expected.": { - "category": "Error", - "code": 1004 - }, "'{0}' expected.": { "category": "Error", "code": 1005 }, - "Identifier expected; '{0}' is a keyword.": { - "category": "Error", - "code": 1006 - }, - "Automatic semicolon insertion not allowed.": { - "category": "Error", - "code": 1007 - }, "Trailing comma not allowed.": { "category": "Error", "code": 1009 @@ -52,10 +28,6 @@ "category": "Error", "code": 1010 }, - "'public' or 'private' modifier must precede 'static'.": { - "category": "Error", - "code": 1011 - }, "Unexpected token.": { "category": "Error", "code": 1012 @@ -104,22 +76,6 @@ "category": "Error", "code": 1023 }, - "'extends' clause already seen.": { - "category": "Error", - "code": 1024 - }, - "'extends' clause must precede 'implements' clause.": { - "category": "Error", - "code": 1025 - }, - "Classes can only extend a single class.": { - "category": "Error", - "code": 1026 - }, - "'implements' clause already seen.": { - "category": "Error", - "code": 1027 - }, "Accessibility modifier already seen.": { "category": "Error", "code": 1028 @@ -136,14 +92,6 @@ "category": "Error", "code": 1031 }, - "Interface declaration cannot have 'implements' clause.": { - "category": "Error", - "code": 1032 - }, - "'super' invocation cannot have type arguments.": { - "category": "Error", - "code": 1034 - }, "Only ambient modules can use quoted names.": { "category": "Error", "code": 1035 @@ -204,10 +152,6 @@ "category": "Error", "code": 1054 }, - "Modifiers cannot appear here.": { - "category": "Error", - "code": 1055 - }, "Accessors are only available when targeting ECMAScript 5 and higher.": { "category": "Error", "code": 1056 @@ -224,10 +168,6 @@ "category": "Error", "code": 1066 }, - "module, class, interface, enum, import or statement": { - "category": "NoPrefix", - "code": 1067 - }, "Unexpected token. A constructor, method, accessor, or property was expected." : { "category": "Error", "code": 1068 @@ -236,30 +176,14 @@ "category": "NoPrefix", "code": 1069 }, - "case or default clause": { - "category": "NoPrefix", - "code": 1070 - }, "identifier": { "category": "NoPrefix", "code": 1071 }, - "call, construct, index, property or function signature": { - "category": "NoPrefix", - "code": 1072 - }, "expression": { "category": "NoPrefix", "code": 1073 }, - "type name": { - "category": "NoPrefix", - "code": 1074 - }, - "property or accessor": { - "category": "NoPrefix", - "code": 1075 - }, "parameter": { "category": "NoPrefix", "code": 1076 @@ -276,10 +200,6 @@ "category": "Error", "code": 1079 }, - "Invalid 'reference' directive syntax.": { - "category": "Error", - "code": 1084 - }, "Octal literals are not available when targeting ECMAScript 5 and higher.": { "category": "Error", "code": 1085 @@ -978,10 +898,6 @@ "category": "Message", "code": 6009 }, - "Skip resolution and preprocessing.": { - "category": "Message", - "code": 6010 - }, "Specify ECMAScript target version: 'ES3' (default), or 'ES5'": { "category": "Message", "code": 6015 @@ -998,14 +914,6 @@ "category": "Message", "code": 6019 }, - "Allow use of deprecated '{0}' keyword when referencing an external module.": { - "category": "Message", - "code": 6021 - }, - "Specify locale for errors and messages. For example '{0}' or '{1}'": { - "category": "Message", - "code": 6022 - }, "Syntax: {0}": { "category": "Message", "code": 6023 @@ -1035,17 +943,9 @@ "category": "Message", "code": 6030 }, - "Use the '{0}' flag to see options.": { - "category": "Message", - "code": 6031 - }, "File change detected. Compiling...": { "category": "Message", "code": 6032 - }, - "STRING": { - "category": "Message", - "code": 6033 }, "KIND": { "category": "Message", @@ -1067,19 +967,7 @@ "category": "Message", "code": 6038 }, - "NUMBER": { - "category": "Message", - "code": 6039 - }, - "Specify the codepage to use when opening source files.": { - "category": "Message", - "code": 6040 - }, - "Additional locations:": { - "category": "Message", - "code": 6041 - }, - "Compilation complete. Watching for file changes.": { + "Compilation complete. Watching for file changes.": { "category": "Message", "code": 6042 }, @@ -1119,10 +1007,6 @@ "category": "Error", "code": 6050 }, - "No input files specified.": { - "category": "Error", - "code": 6051 - }, "Warn on expressions and declarations with an implied 'any' type.": { "category": "Message", "code": 7004 @@ -1155,14 +1039,6 @@ "category": "Error", "code": 7013 }, - "Lambda function, which lacks return-type annotation, implicitly has an '{0}' return type.": { - "category": "Error", - "code": 7014 - }, - "Array literal implicitly has an '{0}' type.": { - "category": "Error", - "code": 7015 - }, "Property '{0}' implicitly has type 'any', because its 'set' accessor lacks a type annotation.": { "category": "Error", "code": 7016 @@ -1263,14 +1139,6 @@ "category": "Error", "code": -9999999 }, - "'=>' not preceded by parameter list.": { - "category": "Error", - "code": -9999999 - }, - "Invalid assignment target.": { - "category": "Error", - "code": -9999999 - }, "'super' must be followed by argument list or member access.": { "category": "Error", "code": -9999999 @@ -1291,10 +1159,6 @@ "category": "Error", "code": -9999999 }, - "Class member declaration expected.": { - "category": "Error", - "code": -9999999 - }, "Declaration expected.": { "category": "Error", "code": -9999999 @@ -1375,10 +1239,6 @@ "category": "Error", "code": -9999999 }, - "Unknown identifier '{0}'.": { - "category": "Error", - "code": -9999999 - }, "Property '{0}' is inaccessible.": { "category": "Error", "code": -9999999 From d7e3447909ba5845dfbe4e37c58432a416d4c476 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 7 Aug 2014 15:11:55 -0700 Subject: [PATCH 003/106] Removed more unused diagnostics. --- .../diagnosticInformationMap.generated.ts | 6 ----- src/compiler/diagnosticMessages.json | 24 ------------------- 2 files changed, 30 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index 20edbf7cd8a..324c2a16f5f 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -45,12 +45,6 @@ module ts { An_export_assignment_cannot_be_used_in_an_internal_module: { code: 1063, category: DiagnosticCategory.Error, key: "An export assignment cannot be used in an internal module." }, Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, - statement: { code: 1069, category: DiagnosticCategory.NoPrefix, key: "statement" }, - identifier: { code: 1071, category: DiagnosticCategory.NoPrefix, key: "identifier" }, - expression: { code: 1073, category: DiagnosticCategory.NoPrefix, key: "expression" }, - parameter: { code: 1076, category: DiagnosticCategory.NoPrefix, key: "parameter" }, - type: { code: 1077, category: DiagnosticCategory.NoPrefix, key: "type" }, - type_parameter: { code: 1078, category: DiagnosticCategory.NoPrefix, key: "type parameter" }, A_declare_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, category: DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an import declaration." }, Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { code: 1085, category: DiagnosticCategory.Error, key: "Octal literals are not available when targeting ECMAScript 5 and higher." }, An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, category: DiagnosticCategory.Error, key: "An accessor cannot be declared in an ambient context." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index f21e75a7e31..73b6e2b0cc2 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -172,30 +172,6 @@ "category": "Error", "code": 1068 }, - "statement": { - "category": "NoPrefix", - "code": 1069 - }, - "identifier": { - "category": "NoPrefix", - "code": 1071 - }, - "expression": { - "category": "NoPrefix", - "code": 1073 - }, - "parameter": { - "category": "NoPrefix", - "code": 1076 - }, - "type": { - "category": "NoPrefix", - "code": 1077 - }, - "type parameter": { - "category": "NoPrefix", - "code": 1078 - }, "A 'declare' modifier cannot be used with an import declaration.": { "category": "Error", "code": 1079 From 122b78612cc449818898ca69354fc3d791e61eff Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 7 Aug 2014 15:44:21 -0700 Subject: [PATCH 004/106] Recovered deleted, renumbered existing, reworded some. --- .../diagnosticInformationMap.generated.ts | 13 ++++-- src/compiler/diagnosticMessages.json | 46 +++++++++++++------ src/compiler/parser.ts | 2 +- src/compiler/scanner.ts | 2 +- .../reference/assignmentLHSIsValue.errors.txt | 6 +-- .../compoundAssignmentLHSIsValue.errors.txt | 12 ++--- .../reference/errorSuperCalls.errors.txt | 2 +- .../parserSuperExpression2.errors.txt | 2 +- .../scannerStringLiterals.errors.txt | 2 +- .../reference/stringLiteralsErrors.errors.txt | 24 +++++----- .../reference/superAccess2.errors.txt | 14 +++--- .../reference/superErrors.errors.txt | 16 +++---- .../reference/superInLambdas.errors.txt | 4 +- .../superWithTypeArgument.errors.txt | 2 +- .../superWithTypeArgument2.errors.txt | 2 +- .../superWithTypeArgument3.errors.txt | 2 +- 16 files changed, 88 insertions(+), 63 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index 324c2a16f5f..ccf9f9249d3 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -5,6 +5,7 @@ module ts { Unknown_compiler_option_0: { code: 6001, category: DiagnosticCategory.Error, key: "Unknown compiler option '{0}'." }, File_0_not_found: { code: 6002, category: DiagnosticCategory.Error, key: "File '{0}' not found." }, File_0_must_have_extension_ts_or_d_ts: { code: 6003, category: DiagnosticCategory.Error, key: "File '{0}' must have extension '.ts' or '.d.ts'." }, + Unterminated_string_literal: { code: 1002, category: DiagnosticCategory.Error, key: "Unterminated string literal." }, Identifier_expected: { code: 1003, category: DiagnosticCategory.Error, key: "Identifier expected." }, _0_expected: { code: 1005, category: DiagnosticCategory.Error, key: "'{0}' expected." }, Trailing_comma_not_allowed: { code: 1009, category: DiagnosticCategory.Error, key: "Trailing comma not allowed." }, @@ -21,10 +22,16 @@ module ts { An_index_signature_must_have_a_type_annotation: { code: 1021, category: DiagnosticCategory.Error, key: "An index signature must have a type annotation." }, An_index_signature_parameter_must_have_a_type_annotation: { code: 1022, category: DiagnosticCategory.Error, key: "An index signature parameter must have a type annotation." }, An_index_signature_parameter_type_must_be_string_or_number: { code: 1023, category: DiagnosticCategory.Error, key: "An index signature parameter type must be 'string' or 'number'." }, + A_class_or_interface_declaration_can_only_have_one_extends_clause: { code: 1024, category: DiagnosticCategory.Error, key: "A class or interface declaration can only have one 'extends' clause." }, + An_extends_clause_must_precede_am_implements_clause: { code: 1025, category: DiagnosticCategory.Error, key: "An 'extends' clause must precede am 'implements' clause." }, + A_class_can_only_extend_a_single_class: { code: 1026, category: DiagnosticCategory.Error, key: "A class can only extend a single class." }, + A_class_declaration_can_only_have_one_implements_clause: { code: 1027, category: DiagnosticCategory.Error, key: "A class declaration can only have one 'implements' clause." }, Accessibility_modifier_already_seen: { code: 1028, category: DiagnosticCategory.Error, key: "Accessibility modifier already seen." }, _0_modifier_must_precede_1_modifier: { code: 1029, category: DiagnosticCategory.Error, key: "'{0}' modifier must precede '{1}' modifier." }, _0_modifier_already_seen: { code: 1030, category: DiagnosticCategory.Error, key: "'{0}' modifier already seen." }, _0_modifier_cannot_appear_on_a_class_element: { code: 1031, category: DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a class element." }, + An_interface_declaration_cannot_have_an_implements_clause: { code: 1032, category: DiagnosticCategory.Error, key: "An interface declaration cannot have an 'implements' clause." }, + super_must_be_followed_by_an_argument_list_or_member_access: { code: 1034, category: DiagnosticCategory.Error, key: "'super' must be followed by an argument list or member access." }, Only_ambient_modules_can_use_quoted_names: { code: 1035, category: DiagnosticCategory.Error, key: "Only ambient modules can use quoted names." }, Statements_are_not_allowed_in_ambient_contexts: { code: 1036, category: DiagnosticCategory.Error, key: "Statements are not allowed in ambient contexts." }, A_function_implementation_cannot_be_declared_in_an_ambient_context: { code: 1037, category: DiagnosticCategory.Error, key: "A function implementation cannot be declared in an ambient context." }, @@ -46,6 +53,7 @@ module ts { Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, A_declare_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, category: DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an import declaration." }, + Invalid_reference_comment: { code: 1084, category: DiagnosticCategory.Error, key: "Invalid reference comment." }, Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { code: 1085, category: DiagnosticCategory.Error, key: "Octal literals are not available when targeting ECMAScript 5 and higher." }, An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, category: DiagnosticCategory.Error, key: "An accessor cannot be declared in an ambient context." }, _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, category: DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a constructor declaration." }, @@ -209,7 +217,7 @@ module ts { The_current_host_does_not_support_the_0_option: { code: 5001, category: DiagnosticCategory.Error, key: "The current host does not support the '{0}' option." }, Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 5009, category: DiagnosticCategory.Error, key: "Cannot find the common subdirectory path for the input files." }, Cannot_read_file_0_Colon_1: { code: 5012, category: DiagnosticCategory.Error, key: "Cannot read file '{0}': {1}" }, - Unsupported_file_encoding: { code: 5013, category: DiagnosticCategory.NoPrefix, key: "Unsupported file encoding." }, + Unsupported_file_encoding: { code: 5013, category: DiagnosticCategory.Error, key: "Unsupported file encoding." }, Could_not_write_file_0_Colon_1: { code: 5033, category: DiagnosticCategory.Error, key: "Could not write file '{0}': {1}" }, Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option: { code: 5038, category: DiagnosticCategory.Error, key: "Option mapRoot cannot be specified without specifying sourcemap option." }, Option_sourceRoot_cannot_be_specified_without_specifying_sourcemap_option: { code: 5039, category: DiagnosticCategory.Error, key: "Option sourceRoot cannot be specified without specifying sourcemap option." }, @@ -264,7 +272,6 @@ module ts { Digit_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Digit expected." }, Hexadecimal_digit_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Hexadecimal digit expected." }, Unexpected_end_of_text: { code: -9999999, category: DiagnosticCategory.Error, key: "Unexpected end of text." }, - Unterminated_string_constant: { code: -9999999, category: DiagnosticCategory.Error, key: "Unterminated string constant." }, Invalid_character: { code: -9999999, category: DiagnosticCategory.Error, key: "Invalid character." }, Declaration_or_statement_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Declaration or statement expected." }, Statement_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Statement expected." }, @@ -280,13 +287,11 @@ module ts { Type_parameter_declaration_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type parameter declaration expected." }, Type_argument_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type argument expected." }, String_literal_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "String literal expected." }, - super_must_be_followed_by_argument_list_or_member_access: { code: -9999999, category: DiagnosticCategory.Error, key: "'super' must be followed by argument list or member access." }, Line_break_not_permitted_here: { code: -9999999, category: DiagnosticCategory.Error, key: "Line break not permitted here." }, catch_or_finally_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "'catch' or 'finally' expected." }, Block_or_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Block or ';' expected." }, Modifiers_not_permitted_on_index_signature_members: { code: -9999999, category: DiagnosticCategory.Error, key: "Modifiers not permitted on index signature members." }, Declaration_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Declaration expected." }, - Invalid_reference_comment: { code: -9999999, category: DiagnosticCategory.Error, key: "Invalid reference comment." }, File_0_is_not_an_external_module: { code: -9999999, category: DiagnosticCategory.Error, key: "File '{0}' is not an external module." }, Excessive_stack_depth_comparing_types_0_and_1: { code: -9999999, category: DiagnosticCategory.Error, key: "Excessive stack depth comparing types '{0}' and '{1}'." }, Type_0_is_not_assignable_to_type_1_Colon: { code: -9999999, category: DiagnosticCategory.Error, key: "Type '{0}' is not assignable to type '{1}':" }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 73b6e2b0cc2..4b037688492 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -12,6 +12,10 @@ "code": 6003 }, + "Unterminated string literal.": { + "category": "Error", + "code": 1002 + }, "Identifier expected.": { "category": "Error", "code": 1003 @@ -76,6 +80,22 @@ "category": "Error", "code": 1023 }, + "A class or interface declaration can only have one 'extends' clause.": { + "category": "Error", + "code": 1024 + }, + "An 'extends' clause must precede am 'implements' clause.": { + "category": "Error", + "code": 1025 + }, + "A class can only extend a single class.": { + "category": "Error", + "code": 1026 + }, + "A class declaration can only have one 'implements' clause.": { + "category": "Error", + "code": 1027 + }, "Accessibility modifier already seen.": { "category": "Error", "code": 1028 @@ -92,6 +112,14 @@ "category": "Error", "code": 1031 }, + "An interface declaration cannot have an 'implements' clause.": { + "category": "Error", + "code": 1032 + }, + "'super' must be followed by an argument list or member access.": { + "category": "Error", + "code": 1034 + }, "Only ambient modules can use quoted names.": { "category": "Error", "code": 1035 @@ -176,6 +204,10 @@ "category": "Error", "code": 1079 }, + "Invalid reference comment.": { + "category": "Error", + "code": 1084 + }, "Octal literals are not available when targeting ECMAScript 5 and higher.": { "category": "Error", "code": 1085 @@ -831,7 +863,7 @@ "code": 5012 }, "Unsupported file encoding.": { - "category": "NoPrefix", + "category": "Error", "code": 5013 }, "Could not write file '{0}': {1}": { @@ -1051,10 +1083,6 @@ "category": "Error", "code": -9999999 }, - "Unterminated string constant.": { - "category": "Error", - "code": -9999999 - }, "Invalid character.": { "category": "Error", "code": -9999999 @@ -1115,10 +1143,6 @@ "category": "Error", "code": -9999999 }, - "'super' must be followed by argument list or member access.": { - "category": "Error", - "code": -9999999 - }, "Line break not permitted here.": { "category": "Error", "code": -9999999 @@ -1139,10 +1163,6 @@ "category": "Error", "code": -9999999 }, - "Invalid reference comment.": { - "category": "Error", - "code": -9999999 - }, "File '{0}' is not an external module.": { "category": "Error", "code": -9999999 diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 91a30143047..6ce418452cc 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -1944,7 +1944,7 @@ module ts { primaryExpression.kind === SyntaxKind.SuperKeyword && token !== SyntaxKind.OpenParenToken && token !== SyntaxKind.DotToken; if (illegalUsageOfSuperKeyword) { - error(Diagnostics.super_must_be_followed_by_argument_list_or_member_access); + error(Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); } var expr = parseCallAndAccess(primaryExpression, /* inNewExpression */ false); diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 00966b12f2a..7e6bdf14309 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -515,7 +515,7 @@ module ts { } if (isLineBreak(ch)) { result += text.substring(start, pos); - error(Diagnostics.Unterminated_string_constant); + error(Diagnostics.Unterminated_string_literal); break; } pos++; diff --git a/tests/baselines/reference/assignmentLHSIsValue.errors.txt b/tests/baselines/reference/assignmentLHSIsValue.errors.txt index b5ebd69f67a..90e6a7e3dc2 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.errors.txt +++ b/tests/baselines/reference/assignmentLHSIsValue.errors.txt @@ -76,19 +76,19 @@ class Derived extends C { constructor() { super(); super = value; } ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. foo() { super = value } ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. static sfoo() { super = value; } ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. } diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.errors.txt b/tests/baselines/reference/compoundAssignmentLHSIsValue.errors.txt index a2c2eb188bc..7fe036ef084 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsValue.errors.txt +++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.errors.txt @@ -137,12 +137,12 @@ super(); super *= value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. super += value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. } @@ -150,12 +150,12 @@ foo() { super *= value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. super += value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. } @@ -163,12 +163,12 @@ static sfoo() { super *= value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. super += value; ~~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! Invalid left-hand side of assignment expression. } diff --git a/tests/baselines/reference/errorSuperCalls.errors.txt b/tests/baselines/reference/errorSuperCalls.errors.txt index c1975cccdac..7e85cc07ee7 100644 --- a/tests/baselines/reference/errorSuperCalls.errors.txt +++ b/tests/baselines/reference/errorSuperCalls.errors.txt @@ -72,7 +72,7 @@ constructor() { super(); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. super(); } } diff --git a/tests/baselines/reference/parserSuperExpression2.errors.txt b/tests/baselines/reference/parserSuperExpression2.errors.txt index 4bb9404cc04..d8921ad7654 100644 --- a/tests/baselines/reference/parserSuperExpression2.errors.txt +++ b/tests/baselines/reference/parserSuperExpression2.errors.txt @@ -3,7 +3,7 @@ M() { super(0); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' can only be referenced in a derived class. } diff --git a/tests/baselines/reference/scannerStringLiterals.errors.txt b/tests/baselines/reference/scannerStringLiterals.errors.txt index d48353f7978..a121aefc720 100644 --- a/tests/baselines/reference/scannerStringLiterals.errors.txt +++ b/tests/baselines/reference/scannerStringLiterals.errors.txt @@ -10,7 +10,7 @@ " "Should error because of newline. -!!! Unterminated string constant. +!!! Unterminated string literal. "Should error because of end of file. !!! Unexpected end of text. \ No newline at end of file diff --git a/tests/baselines/reference/stringLiteralsErrors.errors.txt b/tests/baselines/reference/stringLiteralsErrors.errors.txt index 168a2564ab0..420db7bc021 100644 --- a/tests/baselines/reference/stringLiteralsErrors.errors.txt +++ b/tests/baselines/reference/stringLiteralsErrors.errors.txt @@ -2,46 +2,46 @@ // Srtings missing line terminator var es1 = "line 1 -!!! Unterminated string constant. +!!! Unterminated string literal. "; -!!! Unterminated string constant. +!!! Unterminated string literal. var es2 = 'line 1 -!!! Unterminated string constant. +!!! Unterminated string literal. '; -!!! Unterminated string constant. +!!! Unterminated string literal. // Space after backslash var es3 = 'line 1\ -!!! Unterminated string constant. +!!! Unterminated string literal. '; -!!! Unterminated string constant. +!!! Unterminated string literal. var es4 = 'line 1\ -!!! Unterminated string constant. +!!! Unterminated string literal. '; -!!! Unterminated string constant. +!!! Unterminated string literal. // Unterminated strings var es5 = "unterminated -!!! Unterminated string constant. +!!! Unterminated string literal. var es6 = 'unterminated -!!! Unterminated string constant. +!!! Unterminated string literal. // wrong terminator var es7 = "unterminated ' -!!! Unterminated string constant. +!!! Unterminated string literal. var es8 = 'unterminated " -!!! Unterminated string constant. +!!! Unterminated string literal. // wrong unicode sequences var es9 = "\u00"; diff --git a/tests/baselines/reference/superAccess2.errors.txt b/tests/baselines/reference/superAccess2.errors.txt index 4b276d56205..4f1dab6b8e9 100644 --- a/tests/baselines/reference/superAccess2.errors.txt +++ b/tests/baselines/reference/superAccess2.errors.txt @@ -7,21 +7,21 @@ class Q extends P { xx = super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. static yy = super; // error for static initializer accessing super ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class // Super is not allowed in constructor args constructor(public z = super, zz = super, zzz = () => super) { ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' cannot be referenced in constructor arguments. ~~~~~ @@ -33,7 +33,7 @@ foo(zz = super) { ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. super.x(); super.y(); // error ~ @@ -42,7 +42,7 @@ static bar(zz = super) { ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. super.x(); // error ~ !!! Property 'x' does not exist on type 'typeof P'. diff --git a/tests/baselines/reference/superErrors.errors.txt b/tests/baselines/reference/superErrors.errors.txt index 045a8ebe717..99eaaed2b98 100644 --- a/tests/baselines/reference/superErrors.errors.txt +++ b/tests/baselines/reference/superErrors.errors.txt @@ -3,17 +3,17 @@ // super in a non class context var x = super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' can only be referenced in a derived class. var y = () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' can only be referenced in a derived class. var z = () => () => () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' can only be referenced in a derived class. } @@ -47,7 +47,7 @@ // super call in a lambda in a function expression in a constructor (function() { return () => super; })(); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class } @@ -65,7 +65,7 @@ // super call in a lambda in a function expression in a constructor (function() { return () => super; })(); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~ !!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class } @@ -73,12 +73,12 @@ // super in static functions var s = super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. var x = () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. var y = () => () => () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. } } \ No newline at end of file diff --git a/tests/baselines/reference/superInLambdas.errors.txt b/tests/baselines/reference/superInLambdas.errors.txt index b69d18edf29..aafed991922 100644 --- a/tests/baselines/reference/superInLambdas.errors.txt +++ b/tests/baselines/reference/superInLambdas.errors.txt @@ -65,12 +65,12 @@ // super in a nested lambda in a constructor var x = () => () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. } sayHello(): void { // super in a nested lambda in a method var x = () => () => super; ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. } } \ No newline at end of file diff --git a/tests/baselines/reference/superWithTypeArgument.errors.txt b/tests/baselines/reference/superWithTypeArgument.errors.txt index 37373614684..7cdcd662a8c 100644 --- a/tests/baselines/reference/superWithTypeArgument.errors.txt +++ b/tests/baselines/reference/superWithTypeArgument.errors.txt @@ -7,7 +7,7 @@ constructor() { super(); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. } diff --git a/tests/baselines/reference/superWithTypeArgument2.errors.txt b/tests/baselines/reference/superWithTypeArgument2.errors.txt index 1bd04d226ea..cd386968357 100644 --- a/tests/baselines/reference/superWithTypeArgument2.errors.txt +++ b/tests/baselines/reference/superWithTypeArgument2.errors.txt @@ -7,7 +7,7 @@ constructor(x) { super(x); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. ~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. } diff --git a/tests/baselines/reference/superWithTypeArgument3.errors.txt b/tests/baselines/reference/superWithTypeArgument3.errors.txt index bacd5d008e7..94e53065a38 100644 --- a/tests/baselines/reference/superWithTypeArgument3.errors.txt +++ b/tests/baselines/reference/superWithTypeArgument3.errors.txt @@ -8,7 +8,7 @@ constructor() { super(); ~ -!!! 'super' must be followed by argument list or member access. +!!! 'super' must be followed by an argument list or member access. } bar() { super.bar(null); From 132cd276d14e25461379068d61225fef9f09e55d Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 18:25:29 -0700 Subject: [PATCH 005/106] consistentlly compute the length of an unterminated multiline comment --- src/compiler/scanner.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 00966b12f2a..1db2f361f17 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -676,9 +676,8 @@ module ts { if (text.charCodeAt(pos + 1) === CharacterCodes.asterisk) { pos += 2; - var safeLength = len - 1; // For lookahead. var commentClosed = false; - while (pos < safeLength) { + while (pos < len) { var ch = text.charCodeAt(pos); if (ch === CharacterCodes.asterisk && text.charCodeAt(pos + 1) === CharacterCodes.slash) { @@ -694,7 +693,6 @@ module ts { } if (!commentClosed) { - pos++; error(Diagnostics.Asterisk_Slash_expected); } From 019994004cb912d45902ba4e403c8f821a2d77b3 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 18:28:14 -0700 Subject: [PATCH 006/106] wire classifier to use new compiler implementation --- src/compiler/types.ts | 4 +- src/services/services.ts | 227 ++++++++++++++++++++++++--------------- 2 files changed, 146 insertions(+), 85 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 5cb80687d80..33414c75e3d 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -217,7 +217,9 @@ module ts { FirstKeyword = BreakKeyword, LastKeyword = StringKeyword, FirstFutureReservedWord = ImplementsKeyword, - LastFutureReservedWord = YieldKeyword + LastFutureReservedWord = YieldKeyword, + FirstPunctuation= OpenBraceToken, + LastPunctuation = CaretEqualsToken } export enum NodeFlags { diff --git a/src/services/services.ts b/src/services/services.ts index be05a48cee9..b11d8a91ec8 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -2207,33 +2207,16 @@ module ts { } /// Classifier - export function createClassifier(host: Logger): Classifier { - var scanner: TypeScript.Scanner.IScanner; - var lastDiagnosticKey: string = null; - var noRegexTable: boolean[]; - var reportDiagnostic = (position: number, fullWidth: number, key: string, args: any[]) => { - lastDiagnosticKey = key; - }; - - if (!noRegexTable) { - noRegexTable = []; - noRegexTable[TypeScript.SyntaxKind.IdentifierName] = true; - noRegexTable[TypeScript.SyntaxKind.StringLiteral] = true; - noRegexTable[TypeScript.SyntaxKind.NumericLiteral] = true; - noRegexTable[TypeScript.SyntaxKind.RegularExpressionLiteral] = true; - noRegexTable[TypeScript.SyntaxKind.ThisKeyword] = true; - noRegexTable[TypeScript.SyntaxKind.PlusPlusToken] = true; - noRegexTable[TypeScript.SyntaxKind.MinusMinusToken] = true; - noRegexTable[TypeScript.SyntaxKind.CloseParenToken] = true; - noRegexTable[TypeScript.SyntaxKind.CloseBracketToken] = true; - noRegexTable[TypeScript.SyntaxKind.CloseBraceToken] = true; - noRegexTable[TypeScript.SyntaxKind.TrueKeyword] = true; - noRegexTable[TypeScript.SyntaxKind.FalseKeyword] = true; - } + var scanner: Scanner; + var noRegexTable: boolean[]; + if (!noRegexTable) { noRegexTable = []; noRegexTable[SyntaxKind.Identifier] = true; noRegexTable[SyntaxKind.StringLiteral] = true; noRegexTable[SyntaxKind.NumericLiteral] = true; noRegexTable[SyntaxKind.RegularExpressionLiteral] = true; noRegexTable[SyntaxKind.ThisKeyword] = true; noRegexTable[SyntaxKind.PlusPlusToken] = true; noRegexTable[SyntaxKind.MinusMinusToken] = true; noRegexTable[SyntaxKind.CloseParenToken] = true; noRegexTable[SyntaxKind.CloseBracketToken] = true; noRegexTable[SyntaxKind.CloseBraceToken] = true; noRegexTable[SyntaxKind.TrueKeyword] = true; noRegexTable[SyntaxKind.FalseKeyword] = true; } function getClassificationsForLine(text: string, lexState: EndOfLineState): ClassificationResult { var offset = 0; + var lastTokenOrCommentEnd = 0; + var inMultiLineComment = false; + if (lexState !== EndOfLineState.Start) { // If we're in a string literal, then prepend: "\ // (and a newline). That way when we lex we'll think we're still in a string literal. @@ -2258,94 +2241,170 @@ module ts { entries: [] }; - var simpleText = TypeScript.SimpleText.fromString(text); - scanner = TypeScript.Scanner.createScanner(ScriptTarget.ES5, simpleText, reportDiagnostic); + scanner = createScanner(ScriptTarget.ES5, text, onError, processComment); - var lastTokenKind = TypeScript.SyntaxKind.None; - var token: TypeScript.ISyntaxToken = null; + var lastToken = SyntaxKind.Unknown; + var token = SyntaxKind.Unknown; do { - lastDiagnosticKey = null; + inMultiLineComment = false; - token = scanner.scan(!noRegexTable[lastTokenKind]); - lastTokenKind = token.kind(); + token = scanner.scan(); - processToken(text, simpleText, offset, token, result); - } - while (token.kind() !== TypeScript.SyntaxKind.EndOfFileToken); - - lastDiagnosticKey = null; - return result; - } - - function processToken(text: string, simpleText: TypeScript.ISimpleText, offset: number, token: TypeScript.ISyntaxToken, result: ClassificationResult): void { - processTriviaList(text, offset, token.leadingTrivia(simpleText), result); - addResult(text, offset, result, TypeScript.width(token), token.kind()); - processTriviaList(text, offset, token.trailingTrivia(simpleText), result); - - if (TypeScript.fullEnd(token) >= text.length) { - // We're at the end. - if (lastDiagnosticKey === TypeScript.DiagnosticCode.AsteriskSlash_expected) { - result.finalLexState = EndOfLineState.InMultiLineCommentTrivia; - return; + if ((token === SyntaxKind.SlashToken || token === SyntaxKind.SlashEqualsToken) && !noRegexTable[lastToken]) { + if (scanner.reScanSlashToken() === SyntaxKind.RegularExpressionLiteral) { + token = SyntaxKind.RegularExpressionLiteral; + } } - if (token.kind() === TypeScript.SyntaxKind.StringLiteral) { - var tokenText = token.text(); - if (tokenText.length > 0 && tokenText.charCodeAt(tokenText.length - 1) === TypeScript.CharacterCodes.backslash) { - var quoteChar = tokenText.charCodeAt(0); - result.finalLexState = quoteChar === TypeScript.CharacterCodes.doubleQuote - ? EndOfLineState.InDoubleQuoteStringLiteral - : EndOfLineState.InSingleQuoteStringLiteral; + lastToken = token; + + processToken(); + } + while (token !== SyntaxKind.EndOfFileToken); + + return result; + + + function onError(message: DiagnosticMessage): void { + inMultiLineComment = message.key === Diagnostics.Asterisk_Slash_expected.key; + } + + function processComment(start: number, end: number) { + // add Leading white spaces + addLeadingWhiteSpace(start, end); + + // add the comment + addResult(end - start, TokenClass.Comment); + } + + function processToken(): void { + var start = scanner.getTokenPos(); + var end = scanner.getTextPos(); + + // add Leading white spaces + addLeadingWhiteSpace(start, end); + + // add the token + addResult(end - start, classFromKind(token)); + + if (end >= text.length) { + // We're at the end. + if (inMultiLineComment) { + result.finalLexState = EndOfLineState.InMultiLineCommentTrivia; return; } + + if (token === SyntaxKind.StringLiteral) { + var tokenText = scanner.getTokenText(); + if (tokenText.length > 0 && tokenText.charCodeAt(tokenText.length - 1) === CharacterCodes.backslash) { + var quoteChar = tokenText.charCodeAt(0); + result.finalLexState = quoteChar === CharacterCodes.doubleQuote + ? EndOfLineState.InDoubleQuoteStringLiteral + : EndOfLineState.InSingleQuoteStringLiteral; + return; + } + } } } - } - function processTriviaList(text: string, offset: number, triviaList: TypeScript.ISyntaxTriviaList, result: ClassificationResult): void { - for (var i = 0, n = triviaList.count(); i < n; i++) { - var trivia = triviaList.syntaxTriviaAt(i); - addResult(text, offset, result, trivia.fullWidth(), trivia.kind()); - } - } - - function addResult(text: string, offset: number, result: ClassificationResult, length: number, kind: TypeScript.SyntaxKind): void { - if (length > 0) { - // If this is the first classification we're adding to the list, then remove any - // offset we have if we were continuing a construct from the previous line. - if (result.entries.length === 0) { - length -= offset; + function addLeadingWhiteSpace(start: number, end: number): void { + if (start > lastTokenOrCommentEnd) { + addResult(start - lastTokenOrCommentEnd, TokenClass.Whitespace); } - result.entries.push({ length: length, classification: classFromKind(kind) }); + // Remeber the end of the last token + lastTokenOrCommentEnd = end; + } + + function addResult(length: number, classification: TokenClass): void { + if (length > 0) { + // If this is the first classification we're adding to the list, then remove any + // offset we have if we were continuing a construct from the previous line. + if (result.entries.length === 0) { + length -= offset; + } + + result.entries.push({ length: length, classification: classification }); + } } } - function classFromKind(kind: TypeScript.SyntaxKind) { - if (TypeScript.SyntaxFacts.isAnyKeyword(kind)) { + function isBinaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean { + switch (tokenKind) { + case SyntaxKind.AsteriskToken: + case SyntaxKind.SlashToken: + case SyntaxKind.PercentToken: + case SyntaxKind.PlusToken: + case SyntaxKind.MinusToken: + case SyntaxKind.LessThanLessThanToken: + case SyntaxKind.GreaterThanGreaterThanToken: + case SyntaxKind.GreaterThanGreaterThanGreaterThanToken: + case SyntaxKind.LessThanToken: + case SyntaxKind.GreaterThanToken: + case SyntaxKind.LessThanEqualsToken: + case SyntaxKind.GreaterThanEqualsToken: + case SyntaxKind.InstanceOfKeyword: + case SyntaxKind.InKeyword: + case SyntaxKind.EqualsEqualsToken: + case SyntaxKind.ExclamationEqualsToken: + case SyntaxKind.EqualsEqualsEqualsToken: + case SyntaxKind.ExclamationEqualsEqualsToken: + case SyntaxKind.AmpersandToken: + case SyntaxKind.CaretToken: + case SyntaxKind.BarToken: + case SyntaxKind.AmpersandAmpersandToken: + case SyntaxKind.BarBarToken: + case SyntaxKind.BarEqualsToken: + case SyntaxKind.AmpersandEqualsToken: + case SyntaxKind.CaretEqualsToken: + case SyntaxKind.LessThanLessThanEqualsToken: + case SyntaxKind.GreaterThanGreaterThanEqualsToken: + case SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken: + case SyntaxKind.PlusEqualsToken: + case SyntaxKind.MinusEqualsToken: + case SyntaxKind.AsteriskEqualsToken: + case SyntaxKind.SlashEqualsToken: + case SyntaxKind.PercentEqualsToken: + case SyntaxKind.EqualsToken: + case SyntaxKind.CommaToken: + return true; + default: return false; + } + } + + function isPrefixUnaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean { + switch (tokenKind) { + case SyntaxKind.PlusToken: + case SyntaxKind.MinusToken: + case SyntaxKind.TildeToken: + case SyntaxKind.ExclamationToken: + case SyntaxKind.PlusPlusToken: + case SyntaxKind.MinusMinusToken: + return true; + default: + return false; + } + } + + function classFromKind(kind: SyntaxKind) { + if (kind >= SyntaxKind.FirstKeyword && kind <= SyntaxKind.LastKeyword) { return TokenClass.Keyword; } - else if (TypeScript.SyntaxFacts.isBinaryExpressionOperatorToken(kind) || - TypeScript.SyntaxFacts.isPrefixUnaryExpressionOperatorToken(kind)) { + else if (isBinaryExpressionOperatorToken(kind) || isPrefixUnaryExpressionOperatorToken(kind)) { return TokenClass.Operator; } - else if (TypeScript.SyntaxFacts.isAnyPunctuation(kind)) { + else if (kind >= SyntaxKind.FirstPunctuation && kind <= SyntaxKind.LastPunctuation) { return TokenClass.Punctuation; } switch (kind) { - case TypeScript.SyntaxKind.WhitespaceTrivia: - return TokenClass.Whitespace; - case TypeScript.SyntaxKind.MultiLineCommentTrivia: - case TypeScript.SyntaxKind.SingleLineCommentTrivia: - return TokenClass.Comment; - case TypeScript.SyntaxKind.NumericLiteral: + case SyntaxKind.NumericLiteral: return TokenClass.NumberLiteral; - case TypeScript.SyntaxKind.StringLiteral: + case SyntaxKind.StringLiteral: return TokenClass.StringLiteral; - case TypeScript.SyntaxKind.RegularExpressionLiteral: + case SyntaxKind.RegularExpressionLiteral: return TokenClass.RegExpLiteral; - case TypeScript.SyntaxKind.IdentifierName: + case SyntaxKind.Identifier: default: return TokenClass.Identifier; } From e515ca96974616feea84ae312dd0f6e58a60273e Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 22:20:32 -0700 Subject: [PATCH 007/106] remove unused property --- src/harness/harnessLanguageService.ts | 9 ++------- src/services/services.ts | 5 ++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 65f02582d63..09799f023e3 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -167,7 +167,6 @@ module Harness.LanguageService { } export class TypeScriptLS implements ts.LanguageServiceShimHost { private ls: ts.LanguageServiceShim = null; - public newLS: ts.LanguageService; private fileNameToScript: ts.Map = {}; @@ -268,12 +267,8 @@ module Harness.LanguageService { * To access the non-shim (i.e. actual) language service, use the "ls.languageService" property. */ public getLanguageService(): ts.LanguageServiceShim { - var ls = new TypeScript.Services.TypeScriptServicesFactory().createLanguageServiceShim(this); - this.ls = ls; - var hostAdapter = new LanguageServiceShimHostAdapter(this); - - this.newLS = ts.createLanguageService(hostAdapter, NonCachingDocumentRegistry.Instance); - return ls; + this.ls = new TypeScript.Services.TypeScriptServicesFactory().createLanguageServiceShim(this); + return this.ls; } /** Parse file given its source text */ diff --git a/src/services/services.ts b/src/services/services.ts index b11d8a91ec8..19845f86483 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -2210,8 +2210,11 @@ module ts { export function createClassifier(host: Logger): Classifier { var scanner: Scanner; var noRegexTable: boolean[]; + /// We do not have a full parser support to know when we should parse a regex or not + /// If we consider every slash token to be a regex, we could be missing cases like "1/2/3", where + /// we have a series of divide operator. this list allows us to be more accurate by ruling out + /// locations where a regexp cannot exist. if (!noRegexTable) { noRegexTable = []; noRegexTable[SyntaxKind.Identifier] = true; noRegexTable[SyntaxKind.StringLiteral] = true; noRegexTable[SyntaxKind.NumericLiteral] = true; noRegexTable[SyntaxKind.RegularExpressionLiteral] = true; noRegexTable[SyntaxKind.ThisKeyword] = true; noRegexTable[SyntaxKind.PlusPlusToken] = true; noRegexTable[SyntaxKind.MinusMinusToken] = true; noRegexTable[SyntaxKind.CloseParenToken] = true; noRegexTable[SyntaxKind.CloseBracketToken] = true; noRegexTable[SyntaxKind.CloseBraceToken] = true; noRegexTable[SyntaxKind.TrueKeyword] = true; noRegexTable[SyntaxKind.FalseKeyword] = true; } - function getClassificationsForLine(text: string, lexState: EndOfLineState): ClassificationResult { var offset = 0; var lastTokenOrCommentEnd = 0; From 3fcd33ec32911f3970eada615a74b8962111384f Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 22:21:12 -0700 Subject: [PATCH 008/106] Enable clorizer unit tests --- src/harness/harnessLanguageService.ts | 5 + src/harness/runner.ts | 3 + src/harness/unittestrunner.ts | 10 +- .../cases/unittests/services/colorization.ts | 194 +++++++++--------- 4 files changed, 110 insertions(+), 102 deletions(-) diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 09799f023e3..9f08d809a7b 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -271,6 +271,11 @@ module Harness.LanguageService { return this.ls; } + /** Return a new instance of the classifier service shim */ + public getClassifier(): ts.ClassifierShim { + return new TypeScript.Services.TypeScriptServicesFactory().createClassifierShim(this); + } + /** Parse file given its source text */ public parseSourceText(fileName: string, sourceText: TypeScript.IScriptSnapshot): TypeScript.SourceUnitSyntax { return TypeScript.Parser.parse(fileName, TypeScript.SimpleText.fromScriptSnapshot(sourceText), ts.ScriptTarget.ES5, TypeScript.isDTSFile(fileName)).sourceUnit(); diff --git a/src/harness/runner.ts b/src/harness/runner.ts index 4e3cdc8815c..7ea996b24e6 100644 --- a/src/harness/runner.ts +++ b/src/harness/runner.ts @@ -99,6 +99,9 @@ if (runners.length === 0) { //// language services runners.push(new FourslashRunner()); //runners.push(new GeneratedFourslashRunner()); + + // unittests + runners.push(new UnitTestRunner(UnittestTestType.Services)); } sys.newLine = '\r\n'; diff --git a/src/harness/unittestrunner.ts b/src/harness/unittestrunner.ts index e08b835ac62..7b9019788e6 100644 --- a/src/harness/unittestrunner.ts +++ b/src/harness/unittestrunner.ts @@ -8,7 +8,7 @@ enum UnittestTestType { } class UnitTestRunner extends RunnerBase { - constructor(public testType?: UnittestTestType) { + constructor(public testType: UnittestTestType) { super(); } @@ -20,6 +20,9 @@ class UnitTestRunner extends RunnerBase { case UnittestTestType.LanguageService: this.tests = this.enumerateFiles('tests/cases/unittests/ls'); break; + case UnittestTestType.Services: + this.tests = this.enumerateFiles('tests/cases/unittests/services', /colorization.ts/); + break; default: if (this.tests.length === 0) { throw new Error('Unsupported test cases: ' + this.testType); @@ -38,7 +41,7 @@ class UnitTestRunner extends RunnerBase { }); harnessCompiler.addInputFiles(toBeAdded); harnessCompiler.setCompilerOptions({ noResolve: true }); - + var stdout = new Harness.Compiler.EmitterIOHost(); var emitDiagnostics = harnessCompiler.emitAll(stdout); var results = stdout.toArray(); @@ -59,7 +62,8 @@ class UnitTestRunner extends RunnerBase { before: before, after: after, Harness: Harness, - IO: Harness.IO + IO: Harness.IO, + ts:ts // FourSlash: FourSlash }; } diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index d1997139b89..157c31fbec7 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -1,198 +1,194 @@ -/// - -interface Classification { +interface Classification { length: number; - class2: TypeScript.TokenClass; + class: ts.TokenClass; } interface ClassiferResult { tuples: Classification[]; - finalLexState: TypeScript.LexState; + finalEndOfLineState: ts.EndOfLineState; } var TokenClassNames = {}; -TokenClassNames[TypeScript.TokenClass.Punctuation] = "Punctuation"; -TokenClassNames[TypeScript.TokenClass.Keyword] = "Keyword"; -TokenClassNames[TypeScript.TokenClass.Operator] = "Operator"; -TokenClassNames[TypeScript.TokenClass.Comment] = "Comment"; -TokenClassNames[TypeScript.TokenClass.Whitespace] = "Whitespace"; -TokenClassNames[TypeScript.TokenClass.Identifier] = "Identifier"; -TokenClassNames[TypeScript.TokenClass.NumberLiteral] = "NumberLiteral"; -TokenClassNames[TypeScript.TokenClass.StringLiteral] = "StringLiteral"; -TokenClassNames[TypeScript.TokenClass.RegExpLiteral] = "RegExpLiteral"; +TokenClassNames[ts.TokenClass.Punctuation] = "Punctuation"; +TokenClassNames[ts.TokenClass.Keyword] = "Keyword"; +TokenClassNames[ts.TokenClass.Operator] = "Operator"; +TokenClassNames[ts.TokenClass.Comment] = "Comment"; +TokenClassNames[ts.TokenClass.Whitespace] = "Whitespace"; +TokenClassNames[ts.TokenClass.Identifier] = "Identifier"; +TokenClassNames[ts.TokenClass.NumberLiteral] = "NumberLiteral"; +TokenClassNames[ts.TokenClass.StringLiteral] = "StringLiteral"; +TokenClassNames[ts.TokenClass.RegExpLiteral] = "RegExpLiteral"; -describe('Colorization', function() { - var mytypescriptLS = new Harness.TypeScriptLS(); - var myls = mytypescriptLS.getLanguageService(); - - var myclassifier = new Services.ClassifierShim(myls.host); - - function getClassifications(code: string, initialLexState?: TypeScript.LexState = TypeScript.LexState.Start): ClassiferResult { - var classResult = myclassifier.getClassificationsForLine(code, initialLexState).split('\n'); +describe('Colorization', function () { + var mytypescriptLS = new Harness.LanguageService.TypeScriptLS(); + var myclassifier = mytypescriptLS.getClassifier(); + + function getClassifications(code: string, initialEndOfLineState: ts.EndOfLineState = ts.EndOfLineState.Start): ClassiferResult { + var classResult = myclassifier.getClassificationsForLine(code, initialEndOfLineState).split('\n'); var tuples: Classification[] = []; var i = 0; for (; i < classResult.length - 1; i += 2) { tuples[i / 2] = { length: parseInt(classResult[i]), - class2: parseInt(classResult[i + 1]) + class: parseInt(classResult[i + 1]) }; } - var finalLexState = classResult[classResult.length - 1]; + var finalEndOfLineState = classResult[classResult.length - 1]; return { tuples: tuples, - finalLexState: parseInt(finalLexState) + finalEndOfLineState: parseInt(finalEndOfLineState) }; } function verifyClassification(classification: Classification, expectedLength: number, expectedClass: number) { - assert.notNull(classification); - assert.is(classification.length === expectedLength, "Classification length does not match expected. Expected: " + expectedLength + ", Actual: " + classification.length); - assert.is(classification.class2 === expectedClass, "Classification class does not match expected. Expected: " + TokenClassNames[expectedClass] + ", Actual: " + TokenClassNames[classification.class2]); + assert.isNotNull(classification); + assert.equal(classification.length, expectedLength, "Classification length does not match expected. Expected: " + expectedLength + ", Actual: " + classification.length); + assert.equal(classification.class, expectedClass, "Classification class does not match expected. Expected: " + TokenClassNames[expectedClass] + ", Actual: " + TokenClassNames[classification.class]); } - - describe("test cases for colorization", function() { + + describe("test cases for colorization", function () { var results = getClassifications('var x:string = "foo"; //Hello'); - it("checks for a keyword", function() { - verifyClassification(results.tuples[0], 3, TypeScript.TokenClass.Keyword); + it("checks for a keyword", function () { + verifyClassification(results.tuples[0], 3, ts.TokenClass.Keyword); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[1], 4, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); }); - it("checks for a identifier", function() { - verifyClassification(results.tuples[2], 5, TypeScript.TokenClass.Identifier); + it("checks for a identifier", function () { + verifyClassification(results.tuples[2], 1, ts.TokenClass.Identifier); }); - it("checks for an punctuation", function() { - verifyClassification(results.tuples[3], 6, TypeScript.TokenClass.Punctuation); - }); - - it("checks for a operator", function() { - verifyClassification(results.tuples[6], 14, TypeScript.TokenClass.Operator); + it("checks for an punctuation", function () { + verifyClassification(results.tuples[3], 1, ts.TokenClass.Punctuation); }); - it("checks for a string literal", function() { - verifyClassification(results.tuples[8], 20, TypeScript.TokenClass.StringLiteral); + it("checks for a operator", function () { + verifyClassification(results.tuples[6], 1, ts.TokenClass.Operator); }); - it("checks for a comment", function() { - verifyClassification(results.tuples[11], 29, TypeScript.TokenClass.Comment); + it("checks for a string literal", function () { + verifyClassification(results.tuples[8], 5, ts.TokenClass.StringLiteral); + }); + + it("checks for a comment", function () { + verifyClassification(results.tuples[11], 7, ts.TokenClass.Comment); }); }); - describe("test comment colorization after a divide operator", function() { + describe("test comment colorization after a divide operator", function () { var results = getClassifications('1 / 1 // comment'); - it("checks for a number literal", function() { - verifyClassification(results.tuples[0], 1, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[0], 1, ts.TokenClass.NumberLiteral); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[1], 2, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); }); - it("checks for a operator", function() { - verifyClassification(results.tuples[2], 3, TypeScript.TokenClass.Operator); + it("checks for a operator", function () { + verifyClassification(results.tuples[2], 1, ts.TokenClass.Operator); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[3], 4, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[3], 1, ts.TokenClass.Whitespace); }); - it("checks for a number literal", function() { - verifyClassification(results.tuples[4], 5, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[4], 1, ts.TokenClass.NumberLiteral); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[5], 6, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[5], 1, ts.TokenClass.Whitespace); }); - it("checks for a comment", function() { - verifyClassification(results.tuples[6], 16, TypeScript.TokenClass.Comment); + it("checks for a comment", function () { + verifyClassification(results.tuples[6], 10, ts.TokenClass.Comment); }); }); - describe("test literal colorization after a divide operator", function() { + describe("test literal colorization after a divide operator", function () { var results = getClassifications('1 / 2, 1 / 2'); - it("checks for a number literal", function() { - verifyClassification(results.tuples[0], 1, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[0], 1, ts.TokenClass.NumberLiteral); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[1], 2, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); }); - it("checks for a operator", function() { - verifyClassification(results.tuples[2], 3, TypeScript.TokenClass.Operator); + it("checks for a operator", function () { + verifyClassification(results.tuples[2], 1, ts.TokenClass.Operator); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[3], 4, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[3], 1, ts.TokenClass.Whitespace); }); - it("checks for a number literal", function() { - verifyClassification(results.tuples[4], 5, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[4], 1, ts.TokenClass.NumberLiteral); }); - it("checks for a operator", function() { - verifyClassification(results.tuples[5], 6, TypeScript.TokenClass.Operator); + it("checks for a operator", function () { + verifyClassification(results.tuples[5], 1, ts.TokenClass.Operator); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[6], 7, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[6], 1, ts.TokenClass.Whitespace); }); - it("checks for a number literal", function() { - verifyClassification(results.tuples[7], 8, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[7], 1, ts.TokenClass.NumberLiteral); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[8], 9, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[8], 1, ts.TokenClass.Whitespace); }); - it("checks for a operator", function() { - verifyClassification(results.tuples[9], 10, TypeScript.TokenClass.Operator); + it("checks for a operator", function () { + verifyClassification(results.tuples[9], 1, ts.TokenClass.Operator); }); - it("checks for a whitespace", function() { - verifyClassification(results.tuples[10], 11, TypeScript.TokenClass.Whitespace); + it("checks for a whitespace", function () { + verifyClassification(results.tuples[10], 1, ts.TokenClass.Whitespace); }); - it("checks for a number literal", function() { - verifyClassification(results.tuples[11], 12, TypeScript.TokenClass.NumberLiteral); + it("checks for a number literal", function () { + verifyClassification(results.tuples[11], 1, ts.TokenClass.NumberLiteral); }); }); - describe("test cases for colorizing multi-line string", function() { - it("classifies first line correctelly", function() { - var results = getClassifications("'line1\\\n", TypeScript.LexState.Start); + describe("test cases for colorizing multi-line string", function () { + it("classifies first line correctelly", function () { + var results = getClassifications("'line1\\", ts.EndOfLineState.Start); assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 8, TypeScript.TokenClass.StringLiteral); - assert.equal(results.finalLexState, TypeScript.LexState.InMultilineSingleQuoteString); + verifyClassification(results.tuples[0], 7, ts.TokenClass.StringLiteral); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InSingleQuoteStringLiteral); }); - it("classifies second line correctelly", function() { - var results = getClassifications("\\\n", TypeScript.LexState.InMultilineSingleQuoteString); + it("classifies second line correctelly", function () { + var results = getClassifications("\\", ts.EndOfLineState.InDoubleQuoteStringLiteral); assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 2, TypeScript.TokenClass.StringLiteral); - assert.equal(results.finalLexState, TypeScript.LexState.InMultilineSingleQuoteString); + verifyClassification(results.tuples[0], 1, ts.TokenClass.StringLiteral); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InDoubleQuoteStringLiteral); }); - it("classifies third line correctelly", function() { - var results = getClassifications("'", TypeScript.LexState.InMultilineSingleQuoteString); + it("classifies third line correctelly", function () { + var results = getClassifications("'", ts.EndOfLineState.InSingleQuoteStringLiteral); assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 1, TypeScript.TokenClass.StringLiteral); - assert.equal(results.finalLexState, TypeScript.LexState.Start); + verifyClassification(results.tuples[0], 1, ts.TokenClass.StringLiteral); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.Start); }); }); }); \ No newline at end of file From 05d2e75e7cb4ff20581ec66dba66b3fe8742b6ae Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 22:27:03 -0700 Subject: [PATCH 009/106] delete unused tests --- .../unittests/compiler/callSignatureTests.ts | 27 - .../unittests/compiler/classOverloads.ts | 128 --- .../compiler/constructSignatureTests.ts | 26 - .../unittests/compiler/declarationTests.ts | 52 - .../compiler/functionSignaturesTests.ts | 25 - tests/cases/unittests/compiler/identifiers.ts | 13 - tests/cases/unittests/compiler/moduleAlias.ts | 14 - tests/cases/unittests/compiler/pathing.ts | 50 - .../compiler/propertySignatureTests.ts | 19 - tests/cases/unittests/services/_project.ts | 4 - .../services/baselines/baseline-accept.ts | 20 - .../services/baselines/baseline-create.ts | 66 -- .../inputs/getCompletionsAtPosition1.ts | 23 - .../baselines/inputs/optionsParser.ts | 215 ----- ...ompletionsAtPosition1.str-completions.json | 2 - ...ompletionsAtPosition1.str-definitions.json | 2 - ...getCompletionsAtPosition1.str-members.json | 2 - ...CompletionsAtPosition1.str-signatures.json | 2 - .../getCompletionsAtPosition1.str-types.json | 2 - .../optionsParser.str-completions.json | 1 - .../optionsParser.str-definitions.json | 1 - .../reference/optionsParser.str-members.json | 1 - .../optionsParser.str-signatures.json | 2 - .../reference/optionsParser.str-types.json | 1 - tests/cases/unittests/services/dumpAST.ts | 3 - .../services/dumpAST/baseline-create.ts | 9 - .../services/getCompletionsAtPosition.ts | 220 ----- .../getCompletionsAtPositionAfterEdits.ts | 55 -- .../getCompletionsAtPositionObjectLiterals.ts | 100 -- .../getDefinitionPositionAtPosition.ts | 193 ---- ...itionPositionAtPositionPartialInterface.ts | 29 - .../services/getImplementorsAtPosition.ts | 73 -- .../services/getReferencesAtPosition.ts | 188 ---- .../services/getReferencesAtPosition2.ts | 235 ----- .../services/getScriptLexicalStructure.ts | 904 ------------------ .../services/getSignatureAtPosition.ts | 493 ---------- .../unittests/services/incrementalParser.ts | 103 -- .../unittests/services/overridesCollector.ts | 82 -- .../testCode/getBraceMatchingAtPosition.ts | 27 - .../testCode/getCompletionsAtPosition1.ts | 23 - .../testCode/getCompletionsAtPosition10.ts | 5 - .../testCode/getCompletionsAtPosition2.ts | 12 - .../testCode/getCompletionsAtPosition3.ts | 2 - .../testCode/getCompletionsAtPosition4.ts | 4 - .../testCode/getCompletionsAtPosition5.ts | 3 - .../testCode/getCompletionsAtPosition6.ts | 1 - .../testCode/getCompletionsAtPosition7.ts | 1 - .../testCode/getCompletionsAtPosition8.ts | 1 - .../testCode/getCompletionsAtPosition9.ts | 10 - .../getCompletionsAtPositionAfterEdits.ts | 8 - .../getCompletionsAtPositionBugFixes.ts | 16 - .../getCompletionsAtPositionObjectLiterals.ts | 33 - .../testCode/getDefinitionsAtPosition.ts | 91 -- .../testCode/getDefinitionsAtPosition2.ts | 6 - .../testCode/getDefinitionsAtPosition3.ts | 5 - ...tDefinitionsAtPositionPartialInterface1.ts | 5 - ...tDefinitionsAtPositionPartialInterface2.ts | 9 - .../testCode/getImplementorsAtPosition.ts | 57 -- .../testCode/getReferencesAtPositionTest.ts | 117 --- .../testCode/getReferencesAtPositionTest2.ts | 59 -- .../testCode/getReferencesAtPositionTest3.ts | 70 -- .../testCode/getReferencesAtPositionTest4.ts | 28 - .../testCode/getScriptLexicalStructure.ts | 112 --- .../testCode/getSignatureAtPositionTest.ts | 85 -- .../testCode/getSignatureAtPositionTestEOF.ts | 5 - .../testCode/getSmartIndentAtLineNumber.ts | 132 --- .../testCode/getSmartIndentAtLineNumber2.ts | 8 - .../testCode/getSmartIndentAtLineNumber3.ts | 6 - .../services/testCode/incrementalParser.ts | 24 - .../services/testCode/incrementalParser2.ts | 5 - .../services/testCode/overridesCollector.ts | 57 -- .../testCode/references/classLocal.ts | 19 - .../testCode/references/classParameter.ts | 18 - .../services/testCode/references/comment.ts | 4 - .../testCode/references/functionOverloads.ts | 6 - .../testCode/references/functionParameter.ts | 7 - .../services/testCode/references/globals.ts | 23 - .../testCode/references/illegalAssignment1.ts | 2 - .../testCode/references/illegalAssignment2.ts | 4 - .../services/testCode/references/noContext.ts | 20 - .../testCode/references/referenceToClass.ts | 17 - .../services/testCode/references/static.ts | 28 - 82 files changed, 4560 deletions(-) delete mode 100644 tests/cases/unittests/compiler/callSignatureTests.ts delete mode 100644 tests/cases/unittests/compiler/classOverloads.ts delete mode 100644 tests/cases/unittests/compiler/constructSignatureTests.ts delete mode 100644 tests/cases/unittests/compiler/declarationTests.ts delete mode 100644 tests/cases/unittests/compiler/functionSignaturesTests.ts delete mode 100644 tests/cases/unittests/compiler/identifiers.ts delete mode 100644 tests/cases/unittests/compiler/moduleAlias.ts delete mode 100644 tests/cases/unittests/compiler/pathing.ts delete mode 100644 tests/cases/unittests/compiler/propertySignatureTests.ts delete mode 100644 tests/cases/unittests/services/_project.ts delete mode 100644 tests/cases/unittests/services/baselines/baseline-accept.ts delete mode 100644 tests/cases/unittests/services/baselines/baseline-create.ts delete mode 100644 tests/cases/unittests/services/baselines/inputs/getCompletionsAtPosition1.ts delete mode 100644 tests/cases/unittests/services/baselines/inputs/optionsParser.ts delete mode 100644 tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-completions.json delete mode 100644 tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-definitions.json delete mode 100644 tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-members.json delete mode 100644 tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-signatures.json delete mode 100644 tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-types.json delete mode 100644 tests/cases/unittests/services/baselines/reference/optionsParser.str-completions.json delete mode 100644 tests/cases/unittests/services/baselines/reference/optionsParser.str-definitions.json delete mode 100644 tests/cases/unittests/services/baselines/reference/optionsParser.str-members.json delete mode 100644 tests/cases/unittests/services/baselines/reference/optionsParser.str-signatures.json delete mode 100644 tests/cases/unittests/services/baselines/reference/optionsParser.str-types.json delete mode 100644 tests/cases/unittests/services/dumpAST.ts delete mode 100644 tests/cases/unittests/services/dumpAST/baseline-create.ts delete mode 100644 tests/cases/unittests/services/getCompletionsAtPosition.ts delete mode 100644 tests/cases/unittests/services/getCompletionsAtPositionAfterEdits.ts delete mode 100644 tests/cases/unittests/services/getCompletionsAtPositionObjectLiterals.ts delete mode 100644 tests/cases/unittests/services/getDefinitionPositionAtPosition.ts delete mode 100644 tests/cases/unittests/services/getDefinitionPositionAtPositionPartialInterface.ts delete mode 100644 tests/cases/unittests/services/getImplementorsAtPosition.ts delete mode 100644 tests/cases/unittests/services/getReferencesAtPosition.ts delete mode 100644 tests/cases/unittests/services/getReferencesAtPosition2.ts delete mode 100644 tests/cases/unittests/services/getScriptLexicalStructure.ts delete mode 100644 tests/cases/unittests/services/getSignatureAtPosition.ts delete mode 100644 tests/cases/unittests/services/incrementalParser.ts delete mode 100644 tests/cases/unittests/services/overridesCollector.ts delete mode 100644 tests/cases/unittests/services/testCode/getBraceMatchingAtPosition.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition1.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition10.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition2.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition3.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition4.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition5.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition6.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition7.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition8.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPosition9.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPositionAfterEdits.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPositionBugFixes.ts delete mode 100644 tests/cases/unittests/services/testCode/getCompletionsAtPositionObjectLiterals.ts delete mode 100644 tests/cases/unittests/services/testCode/getDefinitionsAtPosition.ts delete mode 100644 tests/cases/unittests/services/testCode/getDefinitionsAtPosition2.ts delete mode 100644 tests/cases/unittests/services/testCode/getDefinitionsAtPosition3.ts delete mode 100644 tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface1.ts delete mode 100644 tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface2.ts delete mode 100644 tests/cases/unittests/services/testCode/getImplementorsAtPosition.ts delete mode 100644 tests/cases/unittests/services/testCode/getReferencesAtPositionTest.ts delete mode 100644 tests/cases/unittests/services/testCode/getReferencesAtPositionTest2.ts delete mode 100644 tests/cases/unittests/services/testCode/getReferencesAtPositionTest3.ts delete mode 100644 tests/cases/unittests/services/testCode/getReferencesAtPositionTest4.ts delete mode 100644 tests/cases/unittests/services/testCode/getScriptLexicalStructure.ts delete mode 100644 tests/cases/unittests/services/testCode/getSignatureAtPositionTest.ts delete mode 100644 tests/cases/unittests/services/testCode/getSignatureAtPositionTestEOF.ts delete mode 100644 tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber.ts delete mode 100644 tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber2.ts delete mode 100644 tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber3.ts delete mode 100644 tests/cases/unittests/services/testCode/incrementalParser.ts delete mode 100644 tests/cases/unittests/services/testCode/incrementalParser2.ts delete mode 100644 tests/cases/unittests/services/testCode/overridesCollector.ts delete mode 100644 tests/cases/unittests/services/testCode/references/classLocal.ts delete mode 100644 tests/cases/unittests/services/testCode/references/classParameter.ts delete mode 100644 tests/cases/unittests/services/testCode/references/comment.ts delete mode 100644 tests/cases/unittests/services/testCode/references/functionOverloads.ts delete mode 100644 tests/cases/unittests/services/testCode/references/functionParameter.ts delete mode 100644 tests/cases/unittests/services/testCode/references/globals.ts delete mode 100644 tests/cases/unittests/services/testCode/references/illegalAssignment1.ts delete mode 100644 tests/cases/unittests/services/testCode/references/illegalAssignment2.ts delete mode 100644 tests/cases/unittests/services/testCode/references/noContext.ts delete mode 100644 tests/cases/unittests/services/testCode/references/referenceToClass.ts delete mode 100644 tests/cases/unittests/services/testCode/references/static.ts diff --git a/tests/cases/unittests/compiler/callSignatureTests.ts b/tests/cases/unittests/compiler/callSignatureTests.ts deleted file mode 100644 index 7b921d244eb..00000000000 --- a/tests/cases/unittests/compiler/callSignatureTests.ts +++ /dev/null @@ -1,27 +0,0 @@ -/// -/// - -describe('Compiling unittests\\compiler\\callSignatureTests.ts', function () { - it("If a signature omits a return type annotation, any type is assumed", function () { - var code = 'var foo: {();};'; - code += 'var test = foo();' - code += 'test.bar = 2;' - Harness.Compiler.compileString(code, 'call signatures', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - it("A call signature can have the void return type", function () { - var code = 'var foo: {():void;};'; - code += 'var test = foo();' - Harness.Compiler.compileString(code, 'call signatures', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("A call signature can't have the same overload", function () { - var code = 'var foo: { (): string; (): string; };'; - Harness.Compiler.compileString(code, 'call signatures', function (result) { - assert.equal(result.errors.length, 0); - }); - }); -}); \ No newline at end of file diff --git a/tests/cases/unittests/compiler/classOverloads.ts b/tests/cases/unittests/compiler/classOverloads.ts deleted file mode 100644 index a1d00f8bd8e..00000000000 --- a/tests/cases/unittests/compiler/classOverloads.ts +++ /dev/null @@ -1,128 +0,0 @@ -/// -/// - -describe('Compiling unittests\\compiler\\classOverloads.ts', function () { - it("Everytype is a subtype of itself", function () { - var code = 'class foo { public bar: number; }'; - code += 'class bar extends foo { public bar: number; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - it("All types except the Void type are subtypes of the Any type", function () { - var code = 'class foo { public bar: any; }'; - code += 'class bar extends foo { public bar: number; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("All types are subtypes of the Any type - 2", function () { - var code = 'class baz { public bar(): any { return 1; } }'; - code += 'class foo extends baz { public bar(): void {} }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("The Undefined type is a subtype of all types except the Void type", function () { - var code = 'class baz { public bar(): any { return 1 } }'; - code += 'class foo extends baz { public bar(){ return undefined} }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("The Undefined type is a subtype of all types except the Void type - 2", function () { - var code = 'class baz { public bar(): void { } }'; - code += 'class foo extends baz { public bar(){ return undefined} }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("The Null type is a subtype of all types, except the Undefined and Void types", function () { - var code = 'class baz { public bar:any; }'; - code += 'class foo extends baz { public bar = null; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("The Null type is a subtype of all types, except the Undefined and Void types - 3", function () { - var code = 'class baz { public bar():void { } }'; - code += 'class foo extends baz { public bar() { return null; } }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - describe('An object type S is a subtype of an object type T', function () { - it("A property in T is matched by a property in S", function () { - var code = 'class baz { public bar: { a: string; }; }'; - code += 'class foo extends baz { public bar: { a: number; }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 1); - }); - }); - it("A property in T is matched by a property in S - 2", function () { - var code = 'class baz { public bar: { a: string; }; }'; - code += 'class foo extends baz { public bar: { a: string; }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - it("A property in T is matched by a property in S - 3", function () { - var code = 'class baz { public bar: { a: string; }; }'; - code += 'class foo extends baz { public bar: { b: string; }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 1); - }); - }); - it("A call, construct or index signature in T is matched by a call, construct or index signature", function () { - var code = 'class baz { public bar: { (); }; }'; - code += 'class foo extends baz { public bar: { (); } ;}'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - it("A call, construct or index signature in T is matched by a call, construct or index signature - 2", function () { - var code = 'class baz { public bar: { [idx:number]: any; }; }'; - code += 'class foo extends baz { public bar: { (); }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 1); - }); - }); - it("A call, construct or index signature in T is matched by a call, construct or index signature - 3", function () { - var code = 'class baz { public bar: { (a: string); }; }'; - code += 'class foo extends baz { public bar: { (); }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - - }); - it("A call, construct or index signature in T is matched by a call, construct or index signature - 4", function () { - var code = 'class baz { public bar: { (a:string); }; }'; - code += 'class foo extends baz { public bar: { (a:string,b:string); }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 1); - }); - }); - it("A call, construct or index signature in T is matched by a call, construct or index signature - 5", function () { - var code = 'class baz { public bar: { ():void; }; }'; - code += 'class foo extends baz { public bar: { ():void; }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - - it("A call, construct or index signature in T is matched by a call, construct or index signature - 6", function () { - var code = 'class baz { public bar: { (); }; }'; - code += 'class foo extends baz { public bar: { ():void; }; }'; - Harness.Compiler.compileString(code, 'subtypes', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - }); -}); - diff --git a/tests/cases/unittests/compiler/constructSignatureTests.ts b/tests/cases/unittests/compiler/constructSignatureTests.ts deleted file mode 100644 index d4fe15dbe5e..00000000000 --- a/tests/cases/unittests/compiler/constructSignatureTests.ts +++ /dev/null @@ -1,26 +0,0 @@ -/// -/// - -describe('Compiling tests\\compiler\\constructSignatureTests.ts', function () { - it("If a signature omits a return type annotation, any type is assumed", function () { - var code = 'var foo: {new ();};'; - code += 'var test = new foo();' - code += 'test.bar = 2;' - Harness.Compiler.compileString(code, 'construct signatures', function (result) { - assert.equal(result.errors.length, 0); - }); - }); - it("A call signature can have the void return type", function () { - var code = 'var foo: {new ():void;};'; - Harness.Compiler.compileString(code, 'call signatures', function (result) { - assert.equal(result.errors.length, 1); - }); - }); - - it("A construct signature can't have the same overload", function () { - var code = 'var foo: { new (): string; new (): string; };'; - Harness.Compiler.compileString(code, 'call signatures', function (result) { - assert.equal(result.errors.length, 0); - }); - }); -}); \ No newline at end of file diff --git a/tests/cases/unittests/compiler/declarationTests.ts b/tests/cases/unittests/compiler/declarationTests.ts deleted file mode 100644 index 6685a63b590..00000000000 --- a/tests/cases/unittests/compiler/declarationTests.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// - -//@tags 1.1 Declarations - -describe('Compiling unittests\\compiler\\declarationTests.ts', function() { - it("Each internal module’s export declaration spaces are shared with other internal modules that have the same root module and the " + - "same qualified name starting from that root module", function() { - var code = 'module baz{export var foo;}'; - code += 'module baz{export var bar;}' - code += 'baz.foo = baz.bar;' - Harness.Compiler.compileString(code, 'declarations', function(result) { - assert.equal(result.errors.length, 0); - }); - }); - it("Each object type literal has a declaration space for its members", function() { - var code = 'var foo:{a:number;};'; - code += 'foo.a = 2;' - Harness.Compiler.compileString(code, 'declarations', function(result) { - assert.equal(result.errors.length, 0); - }); - }); - it("Each class declaration has a declaration space for members and a declaration space for statics", function() { - var code = 'class foo {'; - code += ' static bar;' - code += ' public bar;' - code += '}' - Harness.Compiler.compileString(code, 'declarations', function(result) { - assert.equal(result.errors.length, 0); - }); - }); - it("Each function declaration (including member function declarations and static function declarations) has a declaration space for " + - "statics and a declaration space for locals (parameters, variables, and functions).", function() { - var code = 'function foo() {'; - code += ' static bar;' - code += ' var bar;' - code += '}' - Harness.Compiler.compileString(code, 'declarations', function(result) { - assert.equal(result.errors.length, 1); - }); - }); - it("Modules contain separate declaration spaces for variables and types.", function() { - var code = 'module M {'; - code += ' class bar {};' - code += ' var bar;' - code += '}' - Harness.Compiler.compileString(code, 'declarations', function(result) { - assert.equal(result.errors.length, 1); - }); - }); -}); - diff --git a/tests/cases/unittests/compiler/functionSignaturesTests.ts b/tests/cases/unittests/compiler/functionSignaturesTests.ts deleted file mode 100644 index 5dd62dbb359..00000000000 --- a/tests/cases/unittests/compiler/functionSignaturesTests.ts +++ /dev/null @@ -1,25 +0,0 @@ -/// -/// - -describe('Compiling unittests\\compiler\\functionSignatureTests.ts', function() { - it('Check overload with different return types.', function(){ - var code = 'var foo: { bar(): string; bar(): number; };\n'; - code += 'var bar: { bar: { (): string; (): number; }; };'; - code += 'foo = bar;'; - Harness.Compiler.compileString(code, 'function signatures', function(result) { - assert.equal(result.errors.length, 0); - }); - }) - - describe('Function Type Literals', function() { - it('Basic sanity check', function() { - var code = 'var foo: { (): string; };'; - code += 'var bar: () => string;'; - code += 'foo = bar;'; - Harness.Compiler.compileString(code, 'function type literal', function(result) { - assert.equal(result.errors.length, 0); - }); - }); - }); -}); - diff --git a/tests/cases/unittests/compiler/identifiers.ts b/tests/cases/unittests/compiler/identifiers.ts deleted file mode 100644 index 175d9c9c77d..00000000000 --- a/tests/cases/unittests/compiler/identifiers.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -/// - -describe('Compiling tests\\compiler\\identifiers.ts', function() { - it("Everytype is a subtype of itself", function() { - var code = 'class foo { public bar: number; }'; - code += 'class bar extends foo { public bar: number; }'; - Harness.Compiler.compileString(code, 'subtypes', function(result) { - assert.equal(result.errors.length, 0); - }); - }); -}); - diff --git a/tests/cases/unittests/compiler/moduleAlias.ts b/tests/cases/unittests/compiler/moduleAlias.ts deleted file mode 100644 index a1281549559..00000000000 --- a/tests/cases/unittests/compiler/moduleAlias.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -/// - -describe('Compiling unittests\\compiler\\moduleAlias.ts', function() { - describe('Internal module alias test', function() { - it("basic test", function() { - var code = "module A.B.C { import XYZ = X.Y.Z; export function ping(x: number) { if (x > 0) XYZ.pong(x-1);}};"; - code += "module X.Y.Z { import ABC = A.B.C; export function pong(x: number) { if (x > 0) ABC.ping(x-1);}};"; - Harness.Compiler.compileString(code, 'module alias', function(result) { - assert.equal(result.errors.length, 0); - }); - }); - }); -}); diff --git a/tests/cases/unittests/compiler/pathing.ts b/tests/cases/unittests/compiler/pathing.ts deleted file mode 100644 index 05a33494af2..00000000000 --- a/tests/cases/unittests/compiler/pathing.ts +++ /dev/null @@ -1,50 +0,0 @@ -/// -/// - -describe('Verifying pathing functions', function () { - it("Normalizes Mac paths", function () { - var result = TypeScript.normalizePath("/Users/Me/somefile.ts"); - var expected = "/Users/Me/somefile.ts"; - assert.equal(result, expected); - }); - it("Normalizes relative Mac paths", function () { - var result = TypeScript.normalizePath("/Users/./Me/../somefile.ts"); - var expected = "/Users/somefile.ts"; - assert.equal(result, expected); - }); - it("Normalizes Windows paths", function () { - var result = TypeScript.normalizePath("C:\\Users\\Me\\somefile.ts"); - var expected = "C:/Users/Me/somefile.ts"; - assert.equal(result, expected); - }); - it("Normalizes relative Windows paths", function () { - var result = TypeScript.normalizePath("C:\\Users\\.\\Me\\..\\somefile.ts"); - var expected = "C:/Users/somefile.ts"; - assert.equal(result, expected); - }); - it("Normalizes . and ..", function () { - var result = TypeScript.normalizePath("..\\Users\\.\\Me\\..\\somefile.ts"); - var expected = "../Users/somefile.ts"; - assert.equal(result, expected); - }); - it("Normalizes UNC paths", function () { - var result = TypeScript.normalizePath("\\\\server\\share\\someFile.ts"); - var expected = "file://server/share/someFile.ts"; - assert.equal(result, expected); - }); - it("Normalizes relative UNC paths with IP addresses", function () { - var result = TypeScript.normalizePath("\\\\127.0.0.1\\share\\..\\elsewhere\\someFile.ts"); - var expected = "file://127.0.0.1/elsewhere/someFile.ts"; - assert.equal(result, expected); - }); - it("Normalizes HTTP paths", function () { - var result = TypeScript.normalizePath("http://www.server.com/share/someFile.ts"); - var expected = "http://www.server.com/share/someFile.ts"; - assert.equal(result, expected); - }); - it("Normalizes relative HTTP paths", function () { - var result = TypeScript.normalizePath("http://www.server.com/share/../someFile.ts"); - var expected = "http://www.server.com/someFile.ts"; - assert.equal(result, expected); - }); -}); \ No newline at end of file diff --git a/tests/cases/unittests/compiler/propertySignatureTests.ts b/tests/cases/unittests/compiler/propertySignatureTests.ts deleted file mode 100644 index 98e87d5be36..00000000000 --- a/tests/cases/unittests/compiler/propertySignatureTests.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -/// - -describe('Compiling unittests\\compiler\\propertySignatureTests.ts', function() { - it('The Identifier of a property signature must be unique within its containing type. ', function(){ - var code = 'var foo: { a:string; a: string; };'; - Harness.Compiler.compileString(code, 'property signatures', function(result) { - assert.equal(result.errors.length, 1); - //assert.compilerWarning(result, 1, 9, 'Duplicate identifier a'); - }); - }); - - it('If a property signature omits a TypeAnnotation, the Any type is assumed.', function(){ - var code = 'var foo: { a; }; foo.a = 2; foo.a = "0";'; - Harness.Compiler.compileString(code, 'property signatures', function(result) { - assert.equal(result.errors.length, 0); - }); - }) -}); \ No newline at end of file diff --git a/tests/cases/unittests/services/_project.ts b/tests/cases/unittests/services/_project.ts deleted file mode 100644 index e95a8a082ec..00000000000 --- a/tests/cases/unittests/services/_project.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -/// -/// diff --git a/tests/cases/unittests/services/baselines/baseline-accept.ts b/tests/cases/unittests/services/baselines/baseline-accept.ts deleted file mode 100644 index fcd0f5c021a..00000000000 --- a/tests/cases/unittests/services/baselines/baseline-accept.ts +++ /dev/null @@ -1,20 +0,0 @@ -/// -/// -declare var JSON: any; - -describe('Accepting local files as new reference...', function() { - var localPath = 'tests/services/baselines/local'; - var outputPath = 'tests/services/baselines/reference'; - - // Get a list of all the files in the baseline/inputs folder - var files = IO.dir(localPath); - - // Copy them to the output folder - for (var i = 0; i < files.length; i++) { - var filename = files[i].substr(files[i].lastIndexOf('\\')); - if(filename.indexOf('.html') === -1) { - var referenceData = IO.readFile(files[i]); - IO.writeFile(outputPath + '/' + filename, referenceData); - } - } -}); diff --git a/tests/cases/unittests/services/baselines/baseline-create.ts b/tests/cases/unittests/services/baselines/baseline-create.ts deleted file mode 100644 index f4bb89649a5..00000000000 --- a/tests/cases/unittests/services/baselines/baseline-create.ts +++ /dev/null @@ -1,66 +0,0 @@ -/// -/// -/// - -describe('Baseline files match (intellisense data)', function() { - var inputPath = 'tests/services/baselines/inputs'; - var outputPath = 'tests/services/baselines/local'; - var referencePath = 'tests/services/baselines/reference'; - - var i; - - // Might need to create this - IO.createDirectory(outputPath); - - // Delete any old reports from the local path - var localFiles = IO.dir(outputPath); - for (i = 0; i < localFiles.length; i++) { - var localFilename = localFiles[i]; - if(localFilename.indexOf('.html') > 0) { - IO.deleteFile(localFilename); - } - } - - // Get a list of all the files in the baseline/inputs folder - var files = IO.dir(inputPath); - - var template = IO.readFile('tests/services/baselines/diff-template.html'); - - // For each file, get data: - // a) Completion - // b) Type signature - // c) etc... - for (i = 0; i < files.length; i++) { - var filename = files[i].substr(files[i].lastIndexOf('\\')); - var scriptText = IO.readFile(files[i]).trim(); - - var outputAndCheck = function(nameSuffix: string, process: any) { - describe(nameSuffix + ' data for ' + filename + ' matches the baseline', function() { - var data = process(scriptText); - var stringified = JSON.stringify(data).trim(); - - var baseFilename = filename + '-' + nameSuffix + '.json'; - IO.writeFile(outputPath + '/' + baseFilename, stringified); - - var referenceFilename = referencePath + '/' + baseFilename; - var reference = IO.fileExists(referenceFilename) ? IO.readFile(referenceFilename) : '[{file: "(no file)"}]'; - reference = reference.trim(); - - if (reference != stringified) { - // Emit a report file in 'local' - var errorReportFile = outputPath + filename + '-' + nameSuffix + '-diff.html'; - IO.writeFile(errorReportFile, - template.replace('/**REFERENCE**/', reference).replace('/**ACTUAL**/', stringified)); - throw new Error('Data does not match reference. Refer to diff report ' + errorReportFile); - } - }); - }; - - // Write that data out to a JSON file in the 'local' folder - outputAndCheck('signatures', getIntellisenseSignatureRegions); - outputAndCheck('completions', getIntellisenseCompletionListRegions); - outputAndCheck('definitions', getIntellisenseDefinitionRegions); - outputAndCheck('types', getIntellisenseTypeRegions); - outputAndCheck('members', getIntellisenseMemberListRegions); - } -}); diff --git a/tests/cases/unittests/services/baselines/inputs/getCompletionsAtPosition1.ts b/tests/cases/unittests/services/baselines/inputs/getCompletionsAtPosition1.ts deleted file mode 100644 index 837c5dbf6fd..00000000000 --- a/tests/cases/unittests/services/baselines/inputs/getCompletionsAtPosition1.ts +++ /dev/null @@ -1,23 +0,0 @@ -module Foo { var testing = ""; test } - -class C1 { - public pubMeth() {this.} // test on 'this.' - private privMeth() {} - public pubProp; - private privProp; -} - -var f = new C1(); -f. // test on F. -module M { - export class C { public pub; private priv; } - export var V = 0; -} - - -var c = new M.C(); - -c. // test on c. - -//Test for comment -//c. \ No newline at end of file diff --git a/tests/cases/unittests/services/baselines/inputs/optionsParser.ts b/tests/cases/unittests/services/baselines/inputs/optionsParser.ts deleted file mode 100644 index 5d81a651971..00000000000 --- a/tests/cases/unittests/services/baselines/inputs/optionsParser.ts +++ /dev/null @@ -1,215 +0,0 @@ -interface IOptions { - name: string; - flag: boolean; - short: string; - usage: string; - set: (s: string) => void; - type: string; -} - -class OptionsParser { - private DEFAULT_SHORT_FLAG = "-"; - private DEFAULT_LONG_FLAG = "--"; - - constructor (private host: IIO) { } - - // Find the option record for the given string. Returns null if not found. - private findOption(arg: string) { - - for (var i = 0; i < this.options.length; i++) { - - if (arg === this.options[i].short || arg === this.options[i].name) { - return this.options[i]; - } - } - - return null; - } - - public unnamed: string[] = []; - - public options: IOptions[] = []; - - public printUsage() { - IO.printLine("Syntax: tsc [options] [file ..]"); - IO.printLine(""); - IO.printLine("Examples: tsc hello.ts"); - IO.printLine(" tsc --out foo.js foo.ts"); - IO.printLine(" tsc @args.txt"); - IO.printLine(""); - IO.printLine("Options:"); - - var output = []; - var maxLength = 0; - - this.options = this.options.sort(function(a, b) { - var aName = a.name.toLowerCase(); - var bName = b.name.toLowerCase(); - - if (aName > bName) { - return 1; - } else if (aName < bName) { - return -1; - } else { - return 0; - } - }); - - // Build up output array - for (var i = 0; i < this.options.length; i++) { - var option = this.options[i]; - - if (!option.usage) - break; - - var usageString = " "; - var type = option.type ? " " + option.type.toUpperCase() : ""; - - if (option.short) { - usageString += this.DEFAULT_SHORT_FLAG + option.short + type + ", "; - } - - usageString += this.DEFAULT_LONG_FLAG + option.name + type; - - output.push([usageString, option.usage]); - - if (usageString.length > maxLength) { - maxLength = usageString.length; - } - } - - output.push([" @", "Insert command line options and files from a file."]); - - // Print padded output - for (var i = 0; i < output.length; i++) { - IO.printLine(output[i][0] + (new Array(maxLength - output[i][0].length + 3)).join(" ") + output[i][1]); - } - } - - public option(name: string, config: IOptions); - public option(name: string, config: IOptions, short: string) { - if (!config) { - config = short; - short = null; - } - - config.name = name; - config.short = short; - config.flag = false; - - this.options.push(config); - } - - public flag(name: string, config: IOptions); - public flag(name: string, config: IOptions, short: string) { - if (!config) { - config = short; - short = null; - } - - config.name = name; - config.short = short; - config.flag = true - - this.options.push(config); - } - - - - // Parse an arguments string - public parseString(argString: string) { - var position = 0; - var tokens = argString.match(/\s+|"|[^\s"]+/g); - - function peek() { - return tokens[position]; - } - - function consume() { - return tokens[position++]; - } - - function consumeQuotedString() { - var value = ''; - consume(); // skip opening quote. - - var token = peek(); - - while (token && token !== '"') { - consume(); - - value += token; - - token = peek(); - } - - consume(); // skip ending quote; - - return value; - } - - var args: string[] = []; - var currentArg = ''; - - while (position < tokens.length) { - var token = peek(); - - if (token === '"') { - currentArg += consumeQuotedString(); - } else if (token.match(/\s/)) { - if (currentArg.length > 0) { - args.push(currentArg); - currentArg = ''; - } - - consume(); - } else { - consume(); - currentArg += token; - } - } - - if (currentArg.length > 0) { - args.push(currentArg); - } - - this.parse(args); - } - - // Parse arguments as they come from the platform: split into arguments. - public parse(args: string[]) { - var position = 0; - - function consume() { - return args[position++]; - } - - while (position < args.length) { - var current = consume(); - var match = current.match(/^(--?|\/|@)(.*)/); - var value = null; - - if (match) { - if (match[1] === '@') { - this.parseString(IO.readFile(match[2])); - } else { - var arg = match[2]; - var option = this.findOption(arg); - - if (option === null) { - IO.printLine("Unknown option " + arg); - IO.printLine(""); - this.printUsage(); - } else { - if (!option.flag) - value = consume(); - - option.set(value); - } - } - } else { - this.unnamed.push(current); - } - } - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-completions.json b/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-completions.json deleted file mode 100644 index 8a473b3c2e2..00000000000 --- a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-completions.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":7,"end":11,"data":"(empty)"},{"start":11,"end":21,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\ntesting\tstring\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":21,"end":29,"data":"(empty)"},{"start":29,"end":31,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\ntesting\tstring\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":31,"end":34,"data":"(empty)"},{"start":34,"end":46,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\ntesting\tstring\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":46,"end":49,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":49,"end":55,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":55,"end":58,"data":"(empty)"},{"start":58,"end":71,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":71,"end":79,"data":"(empty)"},{"start":79,"end":118,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":118,"end":127,"data":"(empty)"},{"start":127,"end":141,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":141,"end":149,"data":"(empty)"},{"start":149,"end":164,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":164,"end":173,"data":"(empty)"},{"start":173,"end":181,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\narguments\tany\nc\tM.C\nf\tC1\nprivMeth\t() => void\nprivProp\tnumber\nprototype\tC1\npubMeth\t() => void\npubProp\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":181,"end":188,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":188,"end":190,"data":"(empty)"},{"start":190,"end":207,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":207,"end":220,"data":"(empty)"},{"start":220,"end":221,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":221,"end":228,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\nc\tC\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":228,"end":230,"data":"(empty)"},{"start":230,"end":237,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\nc\tC\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":237,"end":250,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\narguments\tany\nc\tC\nf\tC1\npriv\tnumber\nprototype\tC\npub\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":250,"end":252,"data":"(empty)"},{"start":252,"end":261,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\narguments\tany\nc\tC\nf\tC1\npriv\tnumber\nprototype\tC\npub\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":261,"end":265,"data":"(empty)"},{"start":265,"end":278,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\narguments\tany\nc\tC\nf\tC1\npriv\tnumber\nprototype\tC\npub\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":278,"end":283,"data":"(empty)"},{"start":283,"end":290,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\narguments\tany\nc\tC\nf\tC1\npriv\tnumber\nprototype\tC\npub\tnumber\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":290,"end":306,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\nc\tC\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":306,"end":308,"data":"(empty)"},{"start":308,"end":316,"data":"C\tnew() => C\nC1\tnew() => C1\nFoo\tFoo\nM\tM\nV\tnumber\nc\tC\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":316,"end":325,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":325,"end":327,"data":"(empty)"},{"start":327,"end":347,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":347,"end":360,"data":"(empty)"},{"start":360,"end":364,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"},{"start":364,"end":382,"data":"(empty)"},{"start":382,"end":384,"data":"C1\tnew() => C1\nFoo\tFoo\nM\tM\nc\tM.C\nf\tC1\n(present standard item) any\tany\n(present standard item) bool\tbool\n(present standard item) null\tnull\n(present standard item) number\tnumber\n(present standard item) string\tstring\n(present standard item) undefined\tundefined\n(present standard item) void\tvoid"}] - diff --git a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-definitions.json b/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-definitions.json deleted file mode 100644 index 34eaa83d1d1..00000000000 --- a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-definitions.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":17,"end":31,"data":"0\t17\t34\t\ttesting\t\tFoo"},{"start":33,"end":34,"data":"0\t17\t34\t\ttesting\t\tFoo"},{"start":49,"end":60,"data":"0\t55\t180\t\tC1\t\t__GLO"},{"start":71,"end":79,"data":"0\t64\t88\t\tpubMeth\t\tC1"},{"start":82,"end":87,"data":"0\t55\t180\t\tC1\t\t__GLO"},{"start":118,"end":127,"data":"0\t110\t131\t\tprivMeth\t\tC1"},{"start":134,"end":151,"data":"0\t134\t153\t\tpubProp\t\tC1"},{"start":152,"end":153,"data":"0\t134\t153\t\tpubProp\t\tC1"},{"start":156,"end":175,"data":"0\t156\t177\t\tprivProp\t\tC1"},{"start":176,"end":177,"data":"0\t156\t177\t\tprivProp\t\tC1"},{"start":184,"end":192,"data":"0\t184\t201\t\tf\t\t__GLO"},{"start":192,"end":200,"data":"0\t55\t180\t\tC1\t\t__GLO"},{"start":200,"end":201,"data":"0\t184\t201\t\tf\t\t__GLO"},{"start":203,"end":206,"data":"0\t184\t201\t\tf\t\t__GLO"},{"start":221,"end":230,"data":"0\t221\t315\t\tM\t\t__GLO"},{"start":237,"end":252,"data":"0\t250\t289\t\tC\t\tM"},{"start":254,"end":267,"data":"0\t254\t269\t\tpub\t\tM.C"},{"start":268,"end":269,"data":"0\t254\t269\t\tpub\t\tM.C"},{"start":270,"end":285,"data":"0\t270\t287\t\tpriv\t\tM.C"},{"start":286,"end":287,"data":"0\t270\t287\t\tpriv\t\tM.C"},{"start":295,"end":310,"data":"0\t295\t312\t\tV\t\tM"},{"start":311,"end":312,"data":"0\t295\t312\t\tV\t\tM"},{"start":321,"end":329,"data":"0\t321\t339\t\tc\t\t__GLO"},{"start":329,"end":333,"data":"0\t250\t289\t\tC\t\tM"},{"start":333,"end":335,"data":"0\t221\t315\t\tM\t\t__GLO"},{"start":335,"end":338,"data":"0\t250\t289\t\tC\t\tM"},{"start":338,"end":339,"data":"0\t321\t339\t\tc\t\t__GLO"},{"start":343,"end":346,"data":"0\t321\t339\t\tc\t\t__GLO"}] - diff --git a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-members.json b/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-members.json deleted file mode 100644 index 8c5c53ffe2b..00000000000 --- a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-members.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":87,"end":88,"data":"pubMeth\t() => void\npubProp\tnumber\nprivMeth\t() => void\nprivProp\tnumber\n"},{"start":205,"end":206,"data":"pubMeth\t() => void\npubProp\tnumber\n"},{"start":335,"end":336,"data":"C\tnew() => M.C\nV\tnumber\n"},{"start":345,"end":346,"data":"pub\tnumber\n"}] - diff --git a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-signatures.json b/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-signatures.json deleted file mode 100644 index 1ae96554115..00000000000 --- a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-signatures.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":192,"end":200,"data":"C1(): C1\n"},{"start":329,"end":338,"data":"C(): C\n"}] - diff --git a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-types.json b/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-types.json deleted file mode 100644 index c1edf8cf695..00000000000 --- a/tests/cases/unittests/services/baselines/reference/getCompletionsAtPosition1.str-types.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":17,"end":34,"data":"string"},{"start":34,"end":39,"data":"Foo"},{"start":39,"end":43,"data":"any"},{"start":43,"end":45,"data":"Foo"},{"start":49,"end":64,"data":"new() => C1"},{"start":64,"end":82,"data":"() => void"},{"start":82,"end":87,"data":"C1"},{"start":87,"end":88,"data":"() => void"},{"start":88,"end":89,"data":"new() => C1"},{"start":108,"end":110,"data":"new() => C1"},{"start":110,"end":131,"data":"() => void"},{"start":131,"end":134,"data":"new() => C1"},{"start":134,"end":153,"data":"number"},{"start":153,"end":156,"data":"new() => C1"},{"start":156,"end":177,"data":"number"},{"start":177,"end":180,"data":"new() => C1"},{"start":184,"end":196,"data":"C1"},{"start":196,"end":198,"data":"new() => C1"},{"start":198,"end":201,"data":"C1"},{"start":203,"end":205,"data":"C1"},{"start":221,"end":237,"data":"M"},{"start":237,"end":254,"data":"new() => C"},{"start":254,"end":269,"data":"number"},{"start":269,"end":270,"data":"new() => C"},{"start":270,"end":287,"data":"number"},{"start":287,"end":289,"data":"new() => C"},{"start":289,"end":295,"data":"M"},{"start":295,"end":312,"data":"number"},{"start":312,"end":315,"data":"M"},{"start":321,"end":333,"data":"M.C"},{"start":333,"end":334,"data":"M"},{"start":334,"end":336,"data":"new() => M.C"},{"start":336,"end":339,"data":"M.C"},{"start":343,"end":345,"data":"M.C"}] - diff --git a/tests/cases/unittests/services/baselines/reference/optionsParser.str-completions.json b/tests/cases/unittests/services/baselines/reference/optionsParser.str-completions.json deleted file mode 100644 index a3343a7405f..00000000000 --- a/tests/cases/unittests/services/baselines/reference/optionsParser.str-completions.json +++ /dev/null @@ -1 +0,0 @@ -[{"start":10,"end":19,"data":"(empty)"},{"start":19,"end":26,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":26,"end":31,"data":"(empty)"},{"start":31,"end":45,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":45,"end":50,"data":"(empty)"},{"start":50,"end":62,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":62,"end":68,"data":"(empty)"},{"start":68,"end":82,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":82,"end":88,"data":"(empty)"},{"start":88,"end":102,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":102,"end":106,"data":"(empty)"},{"start":106,"end":108,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":108,"end":110,"data":"(empty)"},{"start":110,"end":133,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":133,"end":138,"data":"(empty)"},{"start":138,"end":150,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nflag bool\nname string\nset (s: string) => void\nshort string\ntype string\nusage string\n(standard items)"},{"start":150,"end":159,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":159,"end":173,"data":"(empty)"},{"start":173,"end":180,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":180,"end":186,"data":"(empty)"},{"start":186,"end":188,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":188,"end":207,"data":"(empty)"},{"start":207,"end":209,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":209,"end":213,"data":"(empty)"},{"start":213,"end":219,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":219,"end":225,"data":"(empty)"},{"start":225,"end":227,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":227,"end":245,"data":"(empty)"},{"start":245,"end":247,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":247,"end":252,"data":"(empty)"},{"start":252,"end":260,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":260,"end":296,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nhost any\n(standard items)"},{"start":296,"end":304,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":304,"end":378,"data":"(empty)"},{"start":378,"end":383,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":383,"end":391,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg string\narguments any\ni number\n(standard items)"},{"start":391,"end":406,"data":"(empty)"},{"start":406,"end":437,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg string\narguments any\ni number\n(standard items)"},{"start":437,"end":439,"data":"(empty)"},{"start":439,"end":658,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg string\narguments any\ni number\n(standard items)"},{"start":658,"end":665,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":665,"end":670,"data":"(empty)"},{"start":670,"end":672,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":672,"end":680,"data":"(empty)"},{"start":680,"end":703,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":703,"end":708,"data":"(empty)"},{"start":708,"end":710,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":710,"end":718,"data":"(empty)"},{"start":718,"end":743,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":743,"end":750,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":750,"end":761,"data":"(empty)"},{"start":761,"end":787,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":787,"end":827,"data":"(empty)"},{"start":827,"end":851,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":851,"end":854,"data":"(empty)"},{"start":854,"end":878,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":878,"end":908,"data":"(empty)"},{"start":908,"end":932,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":932,"end":973,"data":"(empty)"},{"start":973,"end":997,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":997,"end":1027,"data":"(empty)"},{"start":1027,"end":1051,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1051,"end":1054,"data":"(empty)"},{"start":1054,"end":1078,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1078,"end":1089,"data":"(empty)"},{"start":1089,"end":1106,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1106,"end":1113,"data":"(empty)"},{"start":1113,"end":1132,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1132,"end":1142,"data":"(empty)"},{"start":1142,"end":1191,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1191,"end":1225,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\na any\naName any\narguments any\nb any\nbName any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1225,"end":1231,"data":"(empty)"},{"start":1231,"end":1272,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\na any\naName any\narguments any\nb any\nbName any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1272,"end":1278,"data":"(empty)"},{"start":1278,"end":1509,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\na any\naName any\narguments any\nb any\nbName any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1509,"end":1523,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1523,"end":1547,"data":"(empty)"},{"start":1547,"end":1565,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1565,"end":1567,"data":"(empty)"},{"start":1567,"end":1621,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1621,"end":1628,"data":"(empty)"},{"start":1628,"end":1724,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1724,"end":1736,"data":"(empty)"},{"start":1736,"end":1738,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1738,"end":1743,"data":"(empty)"},{"start":1743,"end":1761,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1761,"end":1766,"data":"(empty)"},{"start":1766,"end":1782,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1782,"end":1786,"data":"(empty)"},{"start":1786,"end":1816,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1816,"end":1819,"data":"(empty)"},{"start":1819,"end":1935,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":1935,"end":1940,"data":"(empty)"},{"start":1940,"end":2240,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2240,"end":2252,"data":"(empty)"},{"start":2252,"end":2253,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2253,"end":2306,"data":"(empty)"},{"start":2306,"end":2321,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2321,"end":2343,"data":"(empty)"},{"start":2343,"end":2361,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2361,"end":2363,"data":"(empty)"},{"start":2363,"end":2489,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2489,"end":2493,"data":"(empty)"},{"start":2493,"end":2529,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\ni number\nmaxLength number\noption IOptions\noutput any[]\ntype string\nusageString string\n(standard items)"},{"start":2529,"end":2536,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":2536,"end":2543,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2543,"end":2555,"data":"(empty)"},{"start":2555,"end":2564,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2564,"end":2571,"data":"(empty)"},{"start":2571,"end":2583,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2583,"end":2588,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":2588,"end":2595,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2595,"end":2607,"data":"(empty)"},{"start":2607,"end":2616,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2616,"end":2623,"data":"(empty)"},{"start":2623,"end":2634,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2634,"end":2640,"data":"(empty)"},{"start":2640,"end":2884,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2884,"end":2891,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":2891,"end":2898,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2898,"end":2908,"data":"(empty)"},{"start":2908,"end":2917,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2917,"end":2924,"data":"(empty)"},{"start":2924,"end":2936,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2936,"end":2941,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":2941,"end":2948,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2948,"end":2958,"data":"(empty)"},{"start":2958,"end":2967,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2967,"end":2974,"data":"(empty)"},{"start":2974,"end":2985,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":2985,"end":2991,"data":"(empty)"},{"start":2991,"end":3233,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narguments any\nconfig IOptions\nname string\nshort string\n(standard items)"},{"start":3233,"end":3245,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":3245,"end":3273,"data":"(empty)"},{"start":3273,"end":3278,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":3278,"end":3285,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3285,"end":3307,"data":"(empty)"},{"start":3307,"end":3331,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3331,"end":3340,"data":"(empty)"},{"start":3340,"end":3358,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3358,"end":3365,"data":"(empty)"},{"start":3365,"end":3397,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3397,"end":3400,"data":"(empty)"},{"start":3400,"end":3422,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3422,"end":3427,"data":"(empty)"},{"start":3427,"end":3500,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3500,"end":3508,"data":"(empty)"},{"start":3508,"end":3574,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3574,"end":3583,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3583,"end":3603,"data":"(empty)"},{"start":3603,"end":3624,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3624,"end":3630,"data":"(empty)"},{"start":3630,"end":3632,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3632,"end":3635,"data":"(empty)"},{"start":3635,"end":3661,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3661,"end":3683,"data":"(empty)"},{"start":3683,"end":3702,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3702,"end":3708,"data":"(empty)"},{"start":3708,"end":3759,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3759,"end":3763,"data":"(empty)"},{"start":3763,"end":3906,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3906,"end":3927,"data":"(empty)"},{"start":3927,"end":3967,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\nvalue string\n(standard items)"},{"start":3967,"end":3982,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":3982,"end":3987,"data":"(empty)"},{"start":3987,"end":4016,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4016,"end":4027,"data":"(empty)"},{"start":4027,"end":4029,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4029,"end":4032,"data":"(empty)"},{"start":4032,"end":4096,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4096,"end":4102,"data":"(empty)"},{"start":4102,"end":4141,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4141,"end":4145,"data":"(empty)"},{"start":4145,"end":4241,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4241,"end":4243,"data":"(empty)"},{"start":4243,"end":4371,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4371,"end":4374,"data":"(empty)"},{"start":4374,"end":4661,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\nargString string\nargs string[]\narguments any\nconsume () => any\nconsumeQuotedString() => string\ncurrentArg string\npeek () => any\nposition number\ntoken any\ntokens any\n(standard items)"},{"start":4661,"end":4669,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":4669,"end":4741,"data":"(empty)"},{"start":4741,"end":4746,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\n(standard items)"},{"start":4746,"end":4753,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":4753,"end":4764,"data":"(empty)"},{"start":4764,"end":4790,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":4790,"end":4799,"data":"(empty)"},{"start":4799,"end":4824,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":4824,"end":4832,"data":"(empty)"},{"start":4832,"end":4946,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":4946,"end":4954,"data":"(empty)"},{"start":4954,"end":4984,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":4984,"end":4990,"data":"(empty)"},{"start":4990,"end":5022,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5022,"end":5024,"data":"(empty)"},{"start":5024,"end":5043,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5043,"end":5049,"data":"(empty)"},{"start":5049,"end":5119,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5119,"end":5123,"data":"(empty)"},{"start":5123,"end":5239,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5239,"end":5243,"data":"(empty)"},{"start":5243,"end":5280,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5280,"end":5287,"data":"(empty)"},{"start":5287,"end":5395,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5395,"end":5413,"data":"(empty)"},{"start":5413,"end":5459,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"},{"start":5459,"end":5462,"data":"(empty)"},{"start":5462,"end":5817,"data":"IOptions IOptions\nOptionsParser new(host: any) => OptionsParser\narg any\nargs string[]\narguments any\nconsume () => string\ncurrent string\nmatch any\noption IOptions\nposition number\nvalue any\n(standard items)"}] \ No newline at end of file diff --git a/tests/cases/unittests/services/baselines/reference/optionsParser.str-definitions.json b/tests/cases/unittests/services/baselines/reference/optionsParser.str-definitions.json deleted file mode 100644 index d421be0f800..00000000000 --- a/tests/cases/unittests/services/baselines/reference/optionsParser.str-definitions.json +++ /dev/null @@ -1 +0,0 @@ -[{"start":26,"end":32,"data":"0\t26\t39\t\tname\t\tIOptions"},{"start":45,"end":51,"data":"0\t45\t56\t\tflag\t\tIOptions"},{"start":62,"end":69,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":82,"end":89,"data":"0\t82\t96\t\tusage\t\tIOptions"},{"start":102,"end":107,"data":"0\t102\t127\t\tset\t\tIOptions"},{"start":108,"end":111,"data":"0\t108\t117\t\ts\t\t"},{"start":133,"end":139,"data":"0\t133\t146\t\ttype\t\tIOptions"},{"start":153,"end":173,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":180,"end":209,"data":"0\t180\t212\t\tDEFAULT_SHORT_FLAG\t\tOptionsParser"},{"start":219,"end":247,"data":"0\t219\t251\t\tDEFAULT_LONG_FLAG\t\tOptionsParser"},{"start":260,"end":272,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":273,"end":287,"data":"0\t273\t290\t\thost\t\tOptionsParser"},{"start":291,"end":292,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":383,"end":391,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":391,"end":402,"data":"0\t383\t657\t\tfindOption\t\tOptionsParser"},{"start":402,"end":407,"data":"0\t402\t413\t\targ\t\tOptionsParser.findOption"},{"start":414,"end":415,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":433,"end":441,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":444,"end":446,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":448,"end":452,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":452,"end":461,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":469,"end":471,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":495,"end":499,"data":"0\t402\t413\t\targ\t\tOptionsParser.findOption"},{"start":503,"end":507,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":507,"end":516,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":516,"end":518,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":518,"end":525,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":528,"end":532,"data":"0\t402\t413\t\targ\t\tOptionsParser.findOption"},{"start":536,"end":540,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":540,"end":549,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":549,"end":551,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":551,"end":557,"data":"0\t26\t39\t\tname\t\tIOptions"},{"start":577,"end":584,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":584,"end":588,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":588,"end":597,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":597,"end":599,"data":"0\t433\t442\t\ti\t\tOptionsParser.findOption"},{"start":599,"end":600,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":665,"end":681,"data":"0\t665\t694\t\tunnamed\t\tOptionsParser"},{"start":689,"end":692,"data":"0\t665\t694\t\tunnamed\t\tOptionsParser"},{"start":703,"end":719,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":719,"end":729,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":729,"end":732,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":732,"end":734,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":750,"end":761,"data":"0\t743\t2528\t\tprintUsage\t\tOptionsParser"},{"start":1102,"end":1115,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":1117,"end":1118,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":1128,"end":1144,"data":"0\t1128\t1146\t\tmaxLength\t\tOptionsParser.printUsage"},{"start":1145,"end":1146,"data":"0\t1128\t1146\t\tmaxLength\t\tOptionsParser.printUsage"},{"start":1158,"end":1162,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1162,"end":1171,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":1173,"end":1177,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1177,"end":1186,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":1200,"end":1202,"data":"0\t1200\t1201\t\ta\t\tOptionsParser.printUsage._anonymous"},{"start":1203,"end":1205,"data":"0\t1203\t1204\t\tb\t\tOptionsParser.printUsage._anonymous"},{"start":1221,"end":1233,"data":"0\t1221\t1254\t\taName\t\tOptionsParser.printUsage._anonymous"},{"start":1233,"end":1235,"data":"0\t1200\t1201\t\ta\t\tOptionsParser.printUsage._anonymous"},{"start":1253,"end":1254,"data":"0\t1221\t1254\t\taName\t\tOptionsParser.printUsage._anonymous"},{"start":1268,"end":1280,"data":"0\t1268\t1301\t\tbName\t\tOptionsParser.printUsage._anonymous"},{"start":1280,"end":1282,"data":"0\t1203\t1204\t\tb\t\tOptionsParser.printUsage._anonymous"},{"start":1300,"end":1301,"data":"0\t1268\t1301\t\tbName\t\tOptionsParser.printUsage._anonymous"},{"start":1321,"end":1327,"data":"0\t1221\t1254\t\taName\t\tOptionsParser.printUsage._anonymous"},{"start":1329,"end":1335,"data":"0\t1268\t1301\t\tbName\t\tOptionsParser.printUsage._anonymous"},{"start":1389,"end":1395,"data":"0\t1221\t1254\t\taName\t\tOptionsParser.printUsage._anonymous"},{"start":1397,"end":1403,"data":"0\t1268\t1301\t\tbName\t\tOptionsParser.printUsage._anonymous"},{"start":1561,"end":1569,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":1572,"end":1574,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":1576,"end":1580,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1580,"end":1589,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":1597,"end":1599,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":1617,"end":1630,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1630,"end":1634,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1634,"end":1643,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":1643,"end":1645,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":1645,"end":1646,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1667,"end":1674,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1674,"end":1680,"data":"0\t82\t96\t\tusage\t\tIOptions"},{"start":1720,"end":1738,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":1742,"end":1743,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":1757,"end":1768,"data":"0\t1757\t1819\t\ttype\t\tOptionsParser.printUsage"},{"start":1768,"end":1775,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1775,"end":1780,"data":"0\t133\t146\t\ttype\t\tIOptions"},{"start":1788,"end":1795,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1795,"end":1800,"data":"0\t133\t146\t\ttype\t\tIOptions"},{"start":1818,"end":1819,"data":"0\t1757\t1819\t\ttype\t\tOptionsParser.printUsage"},{"start":1839,"end":1846,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1846,"end":1852,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":1872,"end":1884,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":1887,"end":1891,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1891,"end":1911,"data":"0\t180\t212\t\tDEFAULT_SHORT_FLAG\t\tOptionsParser"},{"start":1913,"end":1920,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":1920,"end":1926,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":1928,"end":1933,"data":"0\t1757\t1819\t\ttype\t\tOptionsParser.printUsage"},{"start":1971,"end":1983,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":1986,"end":1990,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":1990,"end":2009,"data":"0\t219\t251\t\tDEFAULT_LONG_FLAG\t\tOptionsParser"},{"start":2011,"end":2018,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":2018,"end":2023,"data":"0\t26\t39\t\tname\t\tIOptions"},{"start":2025,"end":2030,"data":"0\t1757\t1819\t\ttype\t\tOptionsParser.printUsage"},{"start":2046,"end":2053,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2059,"end":2071,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":2072,"end":2079,"data":"0\t1617\t1646\t\toption\t\tOptionsParser.printUsage"},{"start":2079,"end":2085,"data":"0\t82\t96\t\tusage\t\tIOptions"},{"start":2107,"end":2119,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":2128,"end":2138,"data":"0\t1128\t1146\t\tmaxLength\t\tOptionsParser.printUsage"},{"start":2158,"end":2168,"data":"0\t1128\t1146\t\tmaxLength\t\tOptionsParser.printUsage"},{"start":2170,"end":2182,"data":"0\t1720\t1743\t\tusageString\t\tOptionsParser.printUsage"},{"start":2227,"end":2234,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2357,"end":2365,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2368,"end":2370,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2372,"end":2379,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2387,"end":2389,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2420,"end":2427,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2427,"end":2429,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2446,"end":2456,"data":"0\t1128\t1146\t\tmaxLength\t\tOptionsParser.printUsage"},{"start":2458,"end":2465,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2465,"end":2467,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2496,"end":2503,"data":"0\t1102\t1118\t\toutput\t\tOptionsParser.printUsage"},{"start":2503,"end":2505,"data":"0\t1561\t1570\t\ti\t\tOptionsParser.printUsage"},{"start":2543,"end":2550,"data":"0\t2588\t2883\t\toption\t\tOptionsParser"},{"start":2550,"end":2556,"data":"0\t2550\t2562\t\tname\t\t"},{"start":2564,"end":2572,"data":"0\t2564\t2580\t\tconfig\t\t"},{"start":2572,"end":2581,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":2595,"end":2602,"data":"0\t2588\t2883\t\toption\t\tOptionsParser"},{"start":2602,"end":2608,"data":"0\t2602\t2614\t\tname\t\tOptionsParser.option"},{"start":2616,"end":2624,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2624,"end":2633,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":2634,"end":2641,"data":"0\t2634\t2647\t\tshort\t\tOptionsParser.option"},{"start":2665,"end":2672,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2688,"end":2695,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2697,"end":2698,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":2702,"end":2708,"data":"0\t2634\t2647\t\tshort\t\tOptionsParser.option"},{"start":2722,"end":2728,"data":"0\t2634\t2647\t\tshort\t\tOptionsParser.option"},{"start":2758,"end":2765,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2765,"end":2770,"data":"0\t26\t39\t\tname\t\tIOptions"},{"start":2772,"end":2777,"data":"0\t2602\t2614\t\tname\t\tOptionsParser.option"},{"start":2787,"end":2794,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2794,"end":2800,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":2802,"end":2808,"data":"0\t2634\t2647\t\tshort\t\tOptionsParser.option"},{"start":2818,"end":2825,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2825,"end":2830,"data":"0\t45\t56\t\tflag\t\tIOptions"},{"start":2850,"end":2854,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":2854,"end":2863,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":2868,"end":2875,"data":"0\t2616\t2632\t\tconfig\t\tOptionsParser.option"},{"start":2898,"end":2903,"data":"0\t2941\t3232\t\tflag\t\tOptionsParser"},{"start":2903,"end":2909,"data":"0\t2903\t2915\t\tname\t\t"},{"start":2917,"end":2925,"data":"0\t2917\t2933\t\tconfig\t\t"},{"start":2925,"end":2934,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":2948,"end":2953,"data":"0\t2941\t3232\t\tflag\t\tOptionsParser"},{"start":2953,"end":2959,"data":"0\t2953\t2965\t\tname\t\tOptionsParser.flag"},{"start":2967,"end":2975,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":2975,"end":2984,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":2985,"end":2992,"data":"0\t2985\t2998\t\tshort\t\tOptionsParser.flag"},{"start":3016,"end":3023,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3039,"end":3046,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3048,"end":3049,"data":"0\t0\t149\t\tIOptions\t\t__GLO"},{"start":3053,"end":3059,"data":"0\t2985\t2998\t\tshort\t\tOptionsParser.flag"},{"start":3073,"end":3079,"data":"0\t2985\t2998\t\tshort\t\tOptionsParser.flag"},{"start":3109,"end":3116,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3116,"end":3121,"data":"0\t26\t39\t\tname\t\tIOptions"},{"start":3123,"end":3128,"data":"0\t2953\t2965\t\tname\t\tOptionsParser.flag"},{"start":3138,"end":3145,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3145,"end":3151,"data":"0\t62\t76\t\tshort\t\tIOptions"},{"start":3153,"end":3159,"data":"0\t2985\t2998\t\tshort\t\tOptionsParser.flag"},{"start":3169,"end":3176,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3176,"end":3181,"data":"0\t45\t56\t\tflag\t\tIOptions"},{"start":3199,"end":3203,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":3203,"end":3212,"data":"0\t703\t734\t\toptions\t\tOptionsParser"},{"start":3217,"end":3224,"data":"0\t2967\t2983\t\tconfig\t\tOptionsParser.flag"},{"start":3285,"end":3297,"data":"0\t3278\t4660\t\tparseString\t\tOptionsParser"},{"start":3297,"end":3308,"data":"0\t3297\t3314\t\targString\t\tOptionsParser.parseString"},{"start":3327,"end":3342,"data":"0\t3327\t3344\t\tposition\t\tOptionsParser.parseString"},{"start":3343,"end":3344,"data":"0\t3327\t3344\t\tposition\t\tOptionsParser.parseString"},{"start":3354,"end":3367,"data":"0\t3354\t3401\t\ttokens\t\tOptionsParser.parseString"},{"start":3367,"end":3377,"data":"0\t3297\t3314\t\targString\t\tOptionsParser.parseString"},{"start":3400,"end":3401,"data":"0\t3354\t3401\t\ttokens\t\tOptionsParser.parseString"},{"start":3422,"end":3427,"data":"0\t3413\t3479\t\tpeek\t\tOptionsParser.parseString"},{"start":3451,"end":3458,"data":"0\t3354\t3401\t\ttokens\t\tOptionsParser.parseString"},{"start":3458,"end":3467,"data":"0\t3327\t3344\t\tposition\t\tOptionsParser.parseString"},{"start":3500,"end":3508,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":3532,"end":3539,"data":"0\t3354\t3401\t\ttokens\t\tOptionsParser.parseString"},{"start":3539,"end":3548,"data":"0\t3327\t3344\t\tposition\t\tOptionsParser.parseString"},{"start":3583,"end":3603,"data":"0\t3574\t3966\t\tconsumeQuotedString\t\tOptionsParser.parseString"},{"start":3620,"end":3632,"data":"0\t3620\t3635\t\tvalue\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3634,"end":3635,"data":"0\t3620\t3635\t\tvalue\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3649,"end":3657,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":3698,"end":3710,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3710,"end":3715,"data":"0\t3413\t3479\t\tpeek\t\tOptionsParser.parseString"},{"start":3716,"end":3717,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3740,"end":3746,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3749,"end":3755,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3783,"end":3791,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":3813,"end":3819,"data":"0\t3620\t3635\t\tvalue\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3822,"end":3828,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3848,"end":3854,"data":"0\t3698\t3717\t\ttoken\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3856,"end":3861,"data":"0\t3413\t3479\t\tpeek\t\tOptionsParser.parseString"},{"start":3894,"end":3902,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":3949,"end":3955,"data":"0\t3620\t3635\t\tvalue\t\tOptionsParser.parseString.consumeQuotedString"},{"start":3978,"end":3988,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":3996,"end":3999,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":4001,"end":4002,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":4012,"end":4029,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4031,"end":4032,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4051,"end":4060,"data":"0\t3327\t3344\t\tposition\t\tOptionsParser.parseString"},{"start":4062,"end":4069,"data":"0\t3354\t3401\t\ttokens\t\tOptionsParser.parseString"},{"start":4092,"end":4104,"data":"0\t4092\t4111\t\ttoken\t\tOptionsParser.parseString"},{"start":4104,"end":4109,"data":"0\t3413\t3479\t\tpeek\t\tOptionsParser.parseString"},{"start":4110,"end":4111,"data":"0\t4092\t4111\t\ttoken\t\tOptionsParser.parseString"},{"start":4131,"end":4137,"data":"0\t4092\t4111\t\ttoken\t\tOptionsParser.parseString"},{"start":4165,"end":4176,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4179,"end":4199,"data":"0\t3574\t3966\t\tconsumeQuotedString\t\tOptionsParser.parseString"},{"start":4226,"end":4232,"data":"0\t4092\t4111\t\ttoken\t\tOptionsParser.parseString"},{"start":4268,"end":4279,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4314,"end":4319,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":4324,"end":4335,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4358,"end":4369,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4413,"end":4421,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":4463,"end":4471,"data":"0\t3491\t3562\t\tconsume\t\tOptionsParser.parseString"},{"start":4491,"end":4502,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4505,"end":4511,"data":"0\t4092\t4111\t\ttoken\t\tOptionsParser.parseString"},{"start":4553,"end":4564,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4591,"end":4596,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":4601,"end":4612,"data":"0\t4012\t4032\t\tcurrentArg\t\tOptionsParser.parseString"},{"start":4636,"end":4640,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":4640,"end":4647,"data":"0\t4746\t5816\t\tparse\t\tOptionsParser"},{"start":4647,"end":4652,"data":"0\t3978\t4002\t\targs\t\tOptionsParser.parseString"},{"start":4753,"end":4759,"data":"0\t4746\t5816\t\tparse\t\tOptionsParser"},{"start":4759,"end":4765,"data":"0\t4759\t4773\t\targs\t\tOptionsParser.parse"},{"start":4786,"end":4801,"data":"0\t4786\t4803\t\tposition\t\tOptionsParser.parse"},{"start":4802,"end":4803,"data":"0\t4786\t4803\t\tposition\t\tOptionsParser.parse"},{"start":4824,"end":4832,"data":"0\t4815\t4884\t\tconsume\t\tOptionsParser.parse"},{"start":4856,"end":4861,"data":"0\t4759\t4773\t\targs\t\tOptionsParser.parse"},{"start":4861,"end":4870,"data":"0\t4786\t4803\t\tposition\t\tOptionsParser.parse"},{"start":4903,"end":4912,"data":"0\t4786\t4803\t\tposition\t\tOptionsParser.parse"},{"start":4914,"end":4919,"data":"0\t4759\t4773\t\targs\t\tOptionsParser.parse"},{"start":4942,"end":4956,"data":"0\t4942\t4966\t\tcurrent\t\tOptionsParser.parse"},{"start":4956,"end":4964,"data":"0\t4815\t4884\t\tconsume\t\tOptionsParser.parse"},{"start":4965,"end":4966,"data":"0\t4942\t4966\t\tcurrent\t\tOptionsParser.parse"},{"start":4980,"end":4992,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":4992,"end":5000,"data":"0\t4942\t4966\t\tcurrent\t\tOptionsParser.parse"},{"start":5024,"end":5025,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":5039,"end":5051,"data":"0\t5039\t5056\t\tvalue\t\tOptionsParser.parse"},{"start":5055,"end":5056,"data":"0\t5039\t5056\t\tvalue\t\tOptionsParser.parse"},{"start":5076,"end":5082,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":5106,"end":5112,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":5147,"end":5151,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":5151,"end":5164,"data":"0\t3278\t4660\t\tparseString\t\tOptionsParser"},{"start":5176,"end":5182,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":5235,"end":5245,"data":"0\t5235\t5254\t\targ\t\tOptionsParser.parse"},{"start":5245,"end":5251,"data":"0\t4980\t5025\t\tmatch\t\tOptionsParser.parse"},{"start":5253,"end":5254,"data":"0\t5235\t5254\t\targ\t\tOptionsParser.parse"},{"start":5276,"end":5289,"data":"0\t5276\t5310\t\toption\t\tOptionsParser.parse"},{"start":5289,"end":5293,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":5293,"end":5305,"data":"0\t383\t657\t\tfindOption\t\tOptionsParser"},{"start":5305,"end":5309,"data":"0\t5235\t5254\t\targ\t\tOptionsParser.parse"},{"start":5309,"end":5310,"data":"0\t5276\t5310\t\toption\t\tOptionsParser.parse"},{"start":5338,"end":5345,"data":"0\t5276\t5310\t\toption\t\tOptionsParser.parse"},{"start":5415,"end":5419,"data":"0\t5235\t5254\t\targ\t\tOptionsParser.parse"},{"start":5489,"end":5493,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":5493,"end":5505,"data":"0\t743\t2528\t\tprintUsage\t\tOptionsParser"},{"start":5568,"end":5575,"data":"0\t5276\t5310\t\toption\t\tOptionsParser.parse"},{"start":5575,"end":5580,"data":"0\t45\t56\t\tflag\t\tIOptions"},{"start":5610,"end":5616,"data":"0\t5039\t5056\t\tvalue\t\tOptionsParser.parse"},{"start":5618,"end":5626,"data":"0\t4815\t4884\t\tconsume\t\tOptionsParser.parse"},{"start":5656,"end":5663,"data":"0\t5276\t5310\t\toption\t\tOptionsParser.parse"},{"start":5663,"end":5667,"data":"0\t102\t127\t\tset\t\tIOptions"},{"start":5667,"end":5673,"data":"0\t5039\t5056\t\tvalue\t\tOptionsParser.parse"},{"start":5756,"end":5760,"data":"0\t260\t295\t\tOptionsParser\t\t__GLO"},{"start":5760,"end":5769,"data":"0\t665\t694\t\tunnamed\t\tOptionsParser"},{"start":5774,"end":5782,"data":"0\t4942\t4966\t\tcurrent\t\tOptionsParser.parse"}] \ No newline at end of file diff --git a/tests/cases/unittests/services/baselines/reference/optionsParser.str-members.json b/tests/cases/unittests/services/baselines/reference/optionsParser.str-members.json deleted file mode 100644 index 0788916ce55..00000000000 --- a/tests/cases/unittests/services/baselines/reference/optionsParser.str-members.json +++ /dev/null @@ -1 +0,0 @@ -[{"start":453,"end":454,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":508,"end":509,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":519,"end":520,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":541,"end":542,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":552,"end":553,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":589,"end":590,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1163,"end":1164,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1178,"end":1179,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1581,"end":1582,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1635,"end":1636,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1674,"end":1675,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":1775,"end":1776,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":1795,"end":1796,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":1846,"end":1847,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":1892,"end":1893,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":1920,"end":1921,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":1991,"end":1992,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":2018,"end":2019,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":2079,"end":2080,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":2765,"end":2766,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":2794,"end":2795,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":2825,"end":2826,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":2855,"end":2856,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":3116,"end":3117,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":3145,"end":3146,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":3176,"end":3177,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":3204,"end":3205,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":4641,"end":4642,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":5152,"end":5153,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":5294,"end":5295,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":5494,"end":5495,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"},{"start":5575,"end":5576,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":5663,"end":5664,"data":"name\tstring\nflag\tbool\nshort\tstring\nusage\tstring\nset\t(s: string) => void\ntype\tstring\n"},{"start":5761,"end":5762,"data":"unnamed\tstring[]\noptions\tIOptions[]\nprintUsage\t() => void\noption\t(name: string,config: IOptions): any; \nflag\t(name: string,config: IOptions): any; \nparseString\t(argString: string) => void\nparse\t(args: string[]) => void\nDEFAULT_SHORT_FLAG\tstring\nDEFAULT_LONG_FLAG\tstring\nhost\tany\nfindOption\t(arg: string) => IOptions\n"}] \ No newline at end of file diff --git a/tests/cases/unittests/services/baselines/reference/optionsParser.str-signatures.json b/tests/cases/unittests/services/baselines/reference/optionsParser.str-signatures.json deleted file mode 100644 index 4191964256a..00000000000 --- a/tests/cases/unittests/services/baselines/reference/optionsParser.str-signatures.json +++ /dev/null @@ -1,2 +0,0 @@ -[{"start":3649,"end":3659,"data":"consume(): any\n"},{"start":3710,"end":3716,"data":"peek(): any\n"},{"start":3783,"end":3793,"data":"consume(): any\n"},{"start":3856,"end":3862,"data":"peek(): any\n"},{"start":3894,"end":3904,"data":"consume(): any\n"},{"start":4104,"end":4110,"data":"peek(): any\n"},{"start":4179,"end":4200,"data":"consumeQuotedString(): string\n"},{"start":4413,"end":4423,"data":"consume(): any\n"},{"start":4463,"end":4473,"data":"consume(): any\n"},{"start":4636,"end":4653,"data":"parse(args: string[]): void\n"},{"start":4956,"end":4965,"data":"consume(): string\n"},{"start":5147,"end":5164,"data":"parseString(argString: string): void\n"},{"start":5185,"end":5187,"data":"parseString(argString: string): void\n"},{"start":5289,"end":5309,"data":"findOption(arg: string): IOptions\n"},{"start":5489,"end":5507,"data":"printUsage(): void\n"},{"start":5618,"end":5627,"data":"consume(): string\n"},{"start":5656,"end":5674,"data":"set(s: string): void\n"}] - diff --git a/tests/cases/unittests/services/baselines/reference/optionsParser.str-types.json b/tests/cases/unittests/services/baselines/reference/optionsParser.str-types.json deleted file mode 100644 index 65995dc49b1..00000000000 --- a/tests/cases/unittests/services/baselines/reference/optionsParser.str-types.json +++ /dev/null @@ -1 +0,0 @@ -[{"start":26,"end":39,"data":"string"},{"start":39,"end":45,"data":"IOptions"},{"start":45,"end":56,"data":"bool"},{"start":56,"end":62,"data":"IOptions"},{"start":62,"end":76,"data":"string"},{"start":76,"end":82,"data":"IOptions"},{"start":82,"end":96,"data":"string"},{"start":96,"end":102,"data":"IOptions"},{"start":102,"end":108,"data":"(s: string) => void"},{"start":108,"end":117,"data":"string"},{"start":117,"end":122,"data":"(s: string) => void"},{"start":122,"end":126,"data":"void"},{"start":126,"end":127,"data":"(s: string) => void"},{"start":127,"end":133,"data":"IOptions"},{"start":133,"end":146,"data":"string"},{"start":146,"end":149,"data":"IOptions"},{"start":153,"end":180,"data":"new(host: any) => OptionsParser"},{"start":180,"end":212,"data":"string"},{"start":212,"end":219,"data":"new(host: any) => OptionsParser"},{"start":219,"end":251,"data":"string"},{"start":251,"end":273,"data":"new(host: any) => OptionsParser"},{"start":273,"end":290,"data":"any"},{"start":290,"end":303,"data":"new(host: any) => OptionsParser"},{"start":378,"end":383,"data":"new(host: any) => OptionsParser"},{"start":383,"end":402,"data":"(arg: string) => IOptions"},{"start":402,"end":413,"data":"string"},{"start":413,"end":428,"data":"(arg: string) => IOptions"},{"start":428,"end":433,"data":"void"},{"start":433,"end":442,"data":"number"},{"start":442,"end":444,"data":"void"},{"start":444,"end":445,"data":"number"},{"start":445,"end":448,"data":"bool"},{"start":448,"end":452,"data":"OptionsParser"},{"start":452,"end":460,"data":"IOptions[]"},{"start":460,"end":467,"data":"any"},{"start":467,"end":469,"data":"void"},{"start":469,"end":472,"data":"number"},{"start":472,"end":495,"data":"void"},{"start":495,"end":498,"data":"string"},{"start":498,"end":503,"data":"bool"},{"start":503,"end":507,"data":"OptionsParser"},{"start":507,"end":515,"data":"IOptions[]"},{"start":515,"end":516,"data":"IOptions"},{"start":516,"end":517,"data":"number"},{"start":517,"end":518,"data":"IOptions"},{"start":518,"end":524,"data":"string"},{"start":524,"end":528,"data":"bool"},{"start":528,"end":531,"data":"string"},{"start":531,"end":536,"data":"bool"},{"start":536,"end":540,"data":"OptionsParser"},{"start":540,"end":548,"data":"IOptions[]"},{"start":548,"end":549,"data":"IOptions"},{"start":549,"end":550,"data":"number"},{"start":550,"end":551,"data":"IOptions"},{"start":551,"end":556,"data":"string"},{"start":556,"end":577,"data":"void"},{"start":577,"end":584,"data":"IOptions"},{"start":584,"end":588,"data":"OptionsParser"},{"start":588,"end":596,"data":"IOptions[]"},{"start":596,"end":597,"data":"IOptions"},{"start":597,"end":598,"data":"number"},{"start":598,"end":600,"data":"IOptions"},{"start":600,"end":626,"data":"void"},{"start":626,"end":638,"data":"(arg: string) => IOptions"},{"start":638,"end":650,"data":"any"},{"start":650,"end":657,"data":"(arg: string) => IOptions"},{"start":657,"end":665,"data":"new(host: any) => OptionsParser"},{"start":665,"end":681,"data":"string[]"},{"start":681,"end":687,"data":"string"},{"start":687,"end":694,"data":"string[]"},{"start":694,"end":703,"data":"new(host: any) => OptionsParser"},{"start":703,"end":719,"data":"IOptions[]"},{"start":719,"end":727,"data":"IOptions"},{"start":727,"end":734,"data":"IOptions[]"},{"start":734,"end":743,"data":"new(host: any) => OptionsParser"},{"start":743,"end":774,"data":"() => void"},{"start":774,"end":787,"data":"any"},{"start":787,"end":826,"data":"string"},{"start":826,"end":828,"data":"any"},{"start":828,"end":838,"data":"() => void"},{"start":838,"end":851,"data":"any"},{"start":851,"end":853,"data":"string"},{"start":853,"end":855,"data":"any"},{"start":855,"end":865,"data":"() => void"},{"start":865,"end":878,"data":"any"},{"start":878,"end":907,"data":"string"},{"start":907,"end":909,"data":"any"},{"start":909,"end":919,"data":"() => void"},{"start":919,"end":932,"data":"any"},{"start":932,"end":972,"data":"string"},{"start":972,"end":974,"data":"any"},{"start":974,"end":984,"data":"() => void"},{"start":984,"end":997,"data":"any"},{"start":997,"end":1026,"data":"string"},{"start":1026,"end":1028,"data":"any"},{"start":1028,"end":1038,"data":"() => void"},{"start":1038,"end":1051,"data":"any"},{"start":1051,"end":1053,"data":"string"},{"start":1053,"end":1055,"data":"any"},{"start":1055,"end":1065,"data":"() => void"},{"start":1065,"end":1078,"data":"any"},{"start":1078,"end":1088,"data":"string"},{"start":1088,"end":1090,"data":"any"},{"start":1090,"end":1102,"data":"() => void"},{"start":1102,"end":1118,"data":"any[]"},{"start":1118,"end":1128,"data":"() => void"},{"start":1128,"end":1146,"data":"number"},{"start":1146,"end":1158,"data":"() => void"},{"start":1158,"end":1162,"data":"OptionsParser"},{"start":1162,"end":1170,"data":"IOptions[]"},{"start":1170,"end":1173,"data":"any"},{"start":1173,"end":1177,"data":"OptionsParser"},{"start":1177,"end":1185,"data":"IOptions[]"},{"start":1185,"end":1190,"data":"any"},{"start":1190,"end":1191,"data":"IOptions[]"},{"start":1191,"end":1200,"data":"(a: any,b: any) => number"},{"start":1200,"end":1201,"data":"any"},{"start":1201,"end":1203,"data":"(a: any,b: any) => number"},{"start":1203,"end":1204,"data":"any"},{"start":1204,"end":1221,"data":"(a: any,b: any) => number"},{"start":1221,"end":1254,"data":"any"},{"start":1254,"end":1268,"data":"(a: any,b: any) => number"},{"start":1268,"end":1301,"data":"any"},{"start":1301,"end":1317,"data":"(a: any,b: any) => number"},{"start":1317,"end":1321,"data":"void"},{"start":1321,"end":1326,"data":"any"},{"start":1326,"end":1329,"data":"bool"},{"start":1329,"end":1334,"data":"any"},{"start":1334,"end":1355,"data":"void"},{"start":1355,"end":1364,"data":"number"},{"start":1364,"end":1389,"data":"void"},{"start":1389,"end":1394,"data":"any"},{"start":1394,"end":1397,"data":"bool"},{"start":1397,"end":1402,"data":"any"},{"start":1402,"end":1423,"data":"void"},{"start":1423,"end":1433,"data":"number"},{"start":1433,"end":1473,"data":"void"},{"start":1473,"end":1482,"data":"number"},{"start":1482,"end":1497,"data":"void"},{"start":1497,"end":1508,"data":"(a: any,b: any) => number"},{"start":1508,"end":1509,"data":"IOptions[]"},{"start":1509,"end":1510,"data":"any"},{"start":1510,"end":1522,"data":"() => void"},{"start":1547,"end":1556,"data":"() => void"},{"start":1556,"end":1561,"data":"void"},{"start":1561,"end":1570,"data":"number"},{"start":1570,"end":1572,"data":"void"},{"start":1572,"end":1573,"data":"number"},{"start":1573,"end":1576,"data":"bool"},{"start":1576,"end":1580,"data":"OptionsParser"},{"start":1580,"end":1588,"data":"IOptions[]"},{"start":1588,"end":1595,"data":"any"},{"start":1595,"end":1597,"data":"void"},{"start":1597,"end":1600,"data":"number"},{"start":1600,"end":1617,"data":"void"},{"start":1617,"end":1630,"data":"IOptions"},{"start":1630,"end":1634,"data":"OptionsParser"},{"start":1634,"end":1642,"data":"IOptions[]"},{"start":1642,"end":1643,"data":"IOptions"},{"start":1643,"end":1644,"data":"number"},{"start":1644,"end":1646,"data":"IOptions"},{"start":1646,"end":1666,"data":"void"},{"start":1666,"end":1667,"data":"bool"},{"start":1667,"end":1673,"data":"IOptions"},{"start":1673,"end":1679,"data":"string"},{"start":1679,"end":1720,"data":"void"},{"start":1720,"end":1743,"data":"string"},{"start":1743,"end":1757,"data":"void"},{"start":1757,"end":1768,"data":"string"},{"start":1768,"end":1774,"data":"IOptions"},{"start":1774,"end":1788,"data":"string"},{"start":1788,"end":1794,"data":"IOptions"},{"start":1794,"end":1799,"data":"string"},{"start":1799,"end":1813,"data":"any"},{"start":1813,"end":1819,"data":"string"},{"start":1819,"end":1839,"data":"void"},{"start":1839,"end":1845,"data":"IOptions"},{"start":1845,"end":1851,"data":"string"},{"start":1851,"end":1872,"data":"void"},{"start":1872,"end":1887,"data":"string"},{"start":1887,"end":1891,"data":"OptionsParser"},{"start":1891,"end":1913,"data":"string"},{"start":1913,"end":1919,"data":"IOptions"},{"start":1919,"end":1940,"data":"string"},{"start":1940,"end":1971,"data":"void"},{"start":1971,"end":1986,"data":"string"},{"start":1986,"end":1990,"data":"OptionsParser"},{"start":1990,"end":2011,"data":"string"},{"start":2011,"end":2017,"data":"IOptions"},{"start":2017,"end":2030,"data":"string"},{"start":2030,"end":2046,"data":"void"},{"start":2046,"end":2052,"data":"any[]"},{"start":2052,"end":2058,"data":"any"},{"start":2058,"end":2059,"data":"string[]"},{"start":2059,"end":2070,"data":"string"},{"start":2070,"end":2072,"data":"string[]"},{"start":2072,"end":2078,"data":"IOptions"},{"start":2078,"end":2084,"data":"string"},{"start":2084,"end":2085,"data":"string[]"},{"start":2085,"end":2087,"data":"any"},{"start":2087,"end":2107,"data":"void"},{"start":2107,"end":2118,"data":"string"},{"start":2118,"end":2125,"data":"any"},{"start":2125,"end":2128,"data":"bool"},{"start":2128,"end":2137,"data":"number"},{"start":2137,"end":2158,"data":"void"},{"start":2158,"end":2167,"data":"number"},{"start":2167,"end":2170,"data":"any"},{"start":2170,"end":2181,"data":"string"},{"start":2181,"end":2188,"data":"number"},{"start":2188,"end":2189,"data":"any"},{"start":2189,"end":2215,"data":"void"},{"start":2215,"end":2227,"data":"() => void"},{"start":2227,"end":2233,"data":"any[]"},{"start":2233,"end":2239,"data":"any"},{"start":2239,"end":2240,"data":"string[]"},{"start":2240,"end":2251,"data":"string"},{"start":2251,"end":2253,"data":"string[]"},{"start":2253,"end":2305,"data":"string"},{"start":2305,"end":2306,"data":"string[]"},{"start":2306,"end":2308,"data":"any"},{"start":2308,"end":2320,"data":"() => void"},{"start":2343,"end":2352,"data":"() => void"},{"start":2352,"end":2357,"data":"void"},{"start":2357,"end":2366,"data":"number"},{"start":2366,"end":2368,"data":"void"},{"start":2368,"end":2369,"data":"number"},{"start":2369,"end":2372,"data":"bool"},{"start":2372,"end":2378,"data":"any[]"},{"start":2378,"end":2385,"data":"any"},{"start":2385,"end":2387,"data":"void"},{"start":2387,"end":2390,"data":"number"},{"start":2390,"end":2407,"data":"void"},{"start":2407,"end":2420,"data":"any"},{"start":2420,"end":2426,"data":"any[]"},{"start":2426,"end":2427,"data":"any"},{"start":2427,"end":2428,"data":"number"},{"start":2428,"end":2430,"data":"any"},{"start":2430,"end":2431,"data":"number"},{"start":2431,"end":2446,"data":"any"},{"start":2446,"end":2455,"data":"number"},{"start":2455,"end":2458,"data":"any"},{"start":2458,"end":2464,"data":"any[]"},{"start":2464,"end":2465,"data":"any"},{"start":2465,"end":2466,"data":"number"},{"start":2466,"end":2468,"data":"any"},{"start":2468,"end":2469,"data":"number"},{"start":2469,"end":2480,"data":"any"},{"start":2480,"end":2481,"data":"number"},{"start":2481,"end":2489,"data":"any"},{"start":2489,"end":2492,"data":"string"},{"start":2492,"end":2496,"data":"any"},{"start":2496,"end":2502,"data":"any[]"},{"start":2502,"end":2503,"data":"any"},{"start":2503,"end":2504,"data":"number"},{"start":2504,"end":2506,"data":"any"},{"start":2506,"end":2507,"data":"number"},{"start":2507,"end":2510,"data":"any"},{"start":2510,"end":2521,"data":"void"},{"start":2521,"end":2528,"data":"() => void"},{"start":2528,"end":2536,"data":"new(host: any) => OptionsParser"},{"start":2536,"end":2550,"data":"(name: string,config: IOptions): any; "},{"start":2550,"end":2562,"data":"string"},{"start":2562,"end":2564,"data":"(name: string,config: IOptions): any; "},{"start":2564,"end":2580,"data":"IOptions"},{"start":2580,"end":2582,"data":"(name: string,config: IOptions): any; "},{"start":2582,"end":2588,"data":"new(host: any) => OptionsParser"},{"start":2588,"end":2602,"data":"(name: string,config: IOptions): any; "},{"start":2602,"end":2614,"data":"string"},{"start":2614,"end":2616,"data":"(name: string,config: IOptions): any; "},{"start":2616,"end":2632,"data":"IOptions"},{"start":2632,"end":2634,"data":"(name: string,config: IOptions): any; "},{"start":2634,"end":2647,"data":"string"},{"start":2647,"end":2660,"data":"(name: string,config: IOptions): any; "},{"start":2660,"end":2664,"data":"void"},{"start":2664,"end":2665,"data":"bool"},{"start":2665,"end":2671,"data":"IOptions"},{"start":2671,"end":2688,"data":"void"},{"start":2688,"end":2694,"data":"IOptions"},{"start":2694,"end":2697,"data":"any"},{"start":2697,"end":2698,"data":"IOptions"},{"start":2698,"end":2701,"data":"any"},{"start":2701,"end":2702,"data":"IOptions"},{"start":2702,"end":2707,"data":"string"},{"start":2707,"end":2708,"data":"any"},{"start":2708,"end":2722,"data":"void"},{"start":2722,"end":2727,"data":"string"},{"start":2727,"end":2730,"data":"any"},{"start":2730,"end":2734,"data":"string"},{"start":2734,"end":2735,"data":"any"},{"start":2735,"end":2746,"data":"void"},{"start":2746,"end":2758,"data":"(name: string,config: IOptions): any; "},{"start":2758,"end":2764,"data":"IOptions"},{"start":2764,"end":2777,"data":"string"},{"start":2777,"end":2787,"data":"(name: string,config: IOptions): any; "},{"start":2787,"end":2793,"data":"IOptions"},{"start":2793,"end":2808,"data":"string"},{"start":2808,"end":2818,"data":"(name: string,config: IOptions): any; "},{"start":2818,"end":2824,"data":"IOptions"},{"start":2824,"end":2838,"data":"bool"},{"start":2838,"end":2850,"data":"(name: string,config: IOptions): any; "},{"start":2850,"end":2854,"data":"OptionsParser"},{"start":2854,"end":2862,"data":"IOptions[]"},{"start":2862,"end":2868,"data":"any"},{"start":2868,"end":2874,"data":"IOptions"},{"start":2874,"end":2876,"data":"any"},{"start":2876,"end":2883,"data":"(name: string,config: IOptions): any; "},{"start":2883,"end":2891,"data":"new(host: any) => OptionsParser"},{"start":2891,"end":2903,"data":"(name: string,config: IOptions): any; "},{"start":2903,"end":2915,"data":"string"},{"start":2915,"end":2917,"data":"(name: string,config: IOptions): any; "},{"start":2917,"end":2933,"data":"IOptions"},{"start":2933,"end":2935,"data":"(name: string,config: IOptions): any; "},{"start":2935,"end":2941,"data":"new(host: any) => OptionsParser"},{"start":2941,"end":2953,"data":"(name: string,config: IOptions): any; "},{"start":2953,"end":2965,"data":"string"},{"start":2965,"end":2967,"data":"(name: string,config: IOptions): any; "},{"start":2967,"end":2983,"data":"IOptions"},{"start":2983,"end":2985,"data":"(name: string,config: IOptions): any; "},{"start":2985,"end":2998,"data":"string"},{"start":2998,"end":3011,"data":"(name: string,config: IOptions): any; "},{"start":3011,"end":3015,"data":"void"},{"start":3015,"end":3016,"data":"bool"},{"start":3016,"end":3022,"data":"IOptions"},{"start":3022,"end":3039,"data":"void"},{"start":3039,"end":3045,"data":"IOptions"},{"start":3045,"end":3048,"data":"any"},{"start":3048,"end":3049,"data":"IOptions"},{"start":3049,"end":3052,"data":"any"},{"start":3052,"end":3053,"data":"IOptions"},{"start":3053,"end":3058,"data":"string"},{"start":3058,"end":3059,"data":"any"},{"start":3059,"end":3073,"data":"void"},{"start":3073,"end":3078,"data":"string"},{"start":3078,"end":3081,"data":"any"},{"start":3081,"end":3085,"data":"string"},{"start":3085,"end":3086,"data":"any"},{"start":3086,"end":3097,"data":"void"},{"start":3097,"end":3109,"data":"(name: string,config: IOptions): any; "},{"start":3109,"end":3115,"data":"IOptions"},{"start":3115,"end":3128,"data":"string"},{"start":3128,"end":3138,"data":"(name: string,config: IOptions): any; "},{"start":3138,"end":3144,"data":"IOptions"},{"start":3144,"end":3159,"data":"string"},{"start":3159,"end":3169,"data":"(name: string,config: IOptions): any; "},{"start":3169,"end":3175,"data":"IOptions"},{"start":3175,"end":3187,"data":"bool"},{"start":3187,"end":3199,"data":"(name: string,config: IOptions): any; "},{"start":3199,"end":3203,"data":"OptionsParser"},{"start":3203,"end":3211,"data":"IOptions[]"},{"start":3211,"end":3217,"data":"any"},{"start":3217,"end":3223,"data":"IOptions"},{"start":3223,"end":3225,"data":"any"},{"start":3225,"end":3232,"data":"(name: string,config: IOptions): any; "},{"start":3232,"end":3244,"data":"new(host: any) => OptionsParser"},{"start":3273,"end":3278,"data":"new(host: any) => OptionsParser"},{"start":3278,"end":3297,"data":"(argString: string) => void"},{"start":3297,"end":3314,"data":"string"},{"start":3314,"end":3327,"data":"(argString: string) => void"},{"start":3327,"end":3344,"data":"number"},{"start":3344,"end":3354,"data":"(argString: string) => void"},{"start":3354,"end":3367,"data":"any"},{"start":3367,"end":3376,"data":"string"},{"start":3376,"end":3401,"data":"any"},{"start":3401,"end":3413,"data":"(argString: string) => void"},{"start":3413,"end":3444,"data":"() => any"},{"start":3444,"end":3458,"data":"any"},{"start":3458,"end":3466,"data":"number"},{"start":3466,"end":3468,"data":"any"},{"start":3468,"end":3479,"data":"() => any"},{"start":3479,"end":3491,"data":"(argString: string) => void"},{"start":3491,"end":3525,"data":"() => any"},{"start":3525,"end":3539,"data":"any"},{"start":3539,"end":3549,"data":"number"},{"start":3549,"end":3551,"data":"any"},{"start":3551,"end":3562,"data":"() => any"},{"start":3562,"end":3574,"data":"(argString: string) => void"},{"start":3574,"end":3620,"data":"() => string"},{"start":3620,"end":3635,"data":"string"},{"start":3635,"end":3649,"data":"() => string"},{"start":3649,"end":3656,"data":"() => any"},{"start":3656,"end":3659,"data":"any"},{"start":3659,"end":3660,"data":"() => string"},{"start":3683,"end":3698,"data":"() => string"},{"start":3698,"end":3710,"data":"any"},{"start":3710,"end":3714,"data":"() => any"},{"start":3714,"end":3717,"data":"any"},{"start":3717,"end":3733,"data":"() => string"},{"start":3733,"end":3740,"data":"void"},{"start":3740,"end":3745,"data":"any"},{"start":3745,"end":3749,"data":"bool"},{"start":3749,"end":3754,"data":"any"},{"start":3754,"end":3759,"data":"bool"},{"start":3759,"end":3762,"data":"string"},{"start":3762,"end":3783,"data":"void"},{"start":3783,"end":3790,"data":"() => any"},{"start":3790,"end":3793,"data":"any"},{"start":3793,"end":3813,"data":"void"},{"start":3813,"end":3822,"data":"string"},{"start":3822,"end":3827,"data":"any"},{"start":3827,"end":3828,"data":"string"},{"start":3828,"end":3848,"data":"void"},{"start":3848,"end":3856,"data":"any"},{"start":3856,"end":3860,"data":"() => any"},{"start":3860,"end":3863,"data":"any"},{"start":3863,"end":3878,"data":"void"},{"start":3878,"end":3894,"data":"() => string"},{"start":3894,"end":3901,"data":"() => any"},{"start":3901,"end":3904,"data":"any"},{"start":3904,"end":3905,"data":"() => string"},{"start":3927,"end":3942,"data":"() => string"},{"start":3942,"end":3955,"data":"string"},{"start":3955,"end":3966,"data":"() => string"},{"start":3966,"end":3978,"data":"(argString: string) => void"},{"start":3978,"end":3988,"data":"string[]"},{"start":3988,"end":3994,"data":"string"},{"start":3994,"end":4002,"data":"string[]"},{"start":4002,"end":4012,"data":"(argString: string) => void"},{"start":4012,"end":4032,"data":"string"},{"start":4032,"end":4044,"data":"(argString: string) => void"},{"start":4044,"end":4051,"data":"void"},{"start":4051,"end":4059,"data":"number"},{"start":4059,"end":4062,"data":"bool"},{"start":4062,"end":4075,"data":"any"},{"start":4075,"end":4092,"data":"void"},{"start":4092,"end":4104,"data":"any"},{"start":4104,"end":4108,"data":"() => any"},{"start":4108,"end":4111,"data":"any"},{"start":4111,"end":4131,"data":"void"},{"start":4131,"end":4136,"data":"any"},{"start":4136,"end":4141,"data":"bool"},{"start":4141,"end":4144,"data":"string"},{"start":4144,"end":4165,"data":"void"},{"start":4165,"end":4179,"data":"string"},{"start":4179,"end":4198,"data":"() => string"},{"start":4198,"end":4201,"data":"string"},{"start":4201,"end":4226,"data":"void"},{"start":4226,"end":4243,"data":"any"},{"start":4243,"end":4268,"data":"void"},{"start":4268,"end":4278,"data":"string"},{"start":4278,"end":4285,"data":"any"},{"start":4285,"end":4288,"data":"bool"},{"start":4288,"end":4289,"data":"number"},{"start":4289,"end":4314,"data":"void"},{"start":4314,"end":4318,"data":"string[]"},{"start":4318,"end":4324,"data":"any"},{"start":4324,"end":4334,"data":"string"},{"start":4334,"end":4336,"data":"any"},{"start":4336,"end":4358,"data":"void"},{"start":4358,"end":4374,"data":"string"},{"start":4374,"end":4413,"data":"void"},{"start":4413,"end":4420,"data":"() => any"},{"start":4420,"end":4423,"data":"any"},{"start":4423,"end":4463,"data":"void"},{"start":4463,"end":4470,"data":"() => any"},{"start":4470,"end":4473,"data":"any"},{"start":4473,"end":4491,"data":"void"},{"start":4491,"end":4505,"data":"string"},{"start":4505,"end":4510,"data":"any"},{"start":4510,"end":4511,"data":"string"},{"start":4511,"end":4537,"data":"void"},{"start":4537,"end":4549,"data":"(argString: string) => void"},{"start":4549,"end":4553,"data":"void"},{"start":4553,"end":4563,"data":"string"},{"start":4563,"end":4570,"data":"any"},{"start":4570,"end":4573,"data":"bool"},{"start":4573,"end":4574,"data":"number"},{"start":4574,"end":4591,"data":"void"},{"start":4591,"end":4595,"data":"string[]"},{"start":4595,"end":4601,"data":"any"},{"start":4601,"end":4611,"data":"string"},{"start":4611,"end":4613,"data":"any"},{"start":4613,"end":4624,"data":"void"},{"start":4624,"end":4636,"data":"(argString: string) => void"},{"start":4636,"end":4640,"data":"OptionsParser"},{"start":4640,"end":4646,"data":"(args: string[]) => void"},{"start":4646,"end":4647,"data":"void"},{"start":4647,"end":4651,"data":"string[]"},{"start":4651,"end":4653,"data":"void"},{"start":4653,"end":4660,"data":"(argString: string) => void"},{"start":4660,"end":4668,"data":"new(host: any) => OptionsParser"},{"start":4741,"end":4746,"data":"new(host: any) => OptionsParser"},{"start":4746,"end":4759,"data":"(args: string[]) => void"},{"start":4759,"end":4765,"data":"string[]"},{"start":4765,"end":4771,"data":"string"},{"start":4771,"end":4773,"data":"string[]"},{"start":4773,"end":4786,"data":"(args: string[]) => void"},{"start":4786,"end":4803,"data":"number"},{"start":4803,"end":4815,"data":"(args: string[]) => void"},{"start":4815,"end":4849,"data":"() => string"},{"start":4849,"end":4856,"data":"string"},{"start":4856,"end":4860,"data":"string[]"},{"start":4860,"end":4861,"data":"string"},{"start":4861,"end":4871,"data":"number"},{"start":4871,"end":4873,"data":"string"},{"start":4873,"end":4884,"data":"() => string"},{"start":4884,"end":4896,"data":"(args: string[]) => void"},{"start":4896,"end":4903,"data":"void"},{"start":4903,"end":4911,"data":"number"},{"start":4911,"end":4914,"data":"bool"},{"start":4914,"end":4918,"data":"string[]"},{"start":4918,"end":4925,"data":"any"},{"start":4925,"end":4942,"data":"void"},{"start":4942,"end":4956,"data":"string"},{"start":4956,"end":4963,"data":"() => string"},{"start":4963,"end":4966,"data":"string"},{"start":4966,"end":4980,"data":"void"},{"start":4980,"end":4992,"data":"any"},{"start":4992,"end":4999,"data":"string"},{"start":4999,"end":5025,"data":"any"},{"start":5025,"end":5039,"data":"void"},{"start":5039,"end":5056,"data":"any"},{"start":5056,"end":5076,"data":"void"},{"start":5076,"end":5081,"data":"any"},{"start":5081,"end":5106,"data":"void"},{"start":5106,"end":5112,"data":"any"},{"start":5112,"end":5113,"data":"number"},{"start":5113,"end":5114,"data":"any"},{"start":5114,"end":5119,"data":"bool"},{"start":5119,"end":5122,"data":"string"},{"start":5122,"end":5147,"data":"void"},{"start":5147,"end":5151,"data":"OptionsParser"},{"start":5151,"end":5163,"data":"(argString: string) => void"},{"start":5163,"end":5164,"data":"void"},{"start":5164,"end":5182,"data":"any"},{"start":5182,"end":5183,"data":"number"},{"start":5183,"end":5185,"data":"any"},{"start":5185,"end":5235,"data":"void"},{"start":5235,"end":5251,"data":"any"},{"start":5251,"end":5252,"data":"number"},{"start":5252,"end":5254,"data":"any"},{"start":5254,"end":5276,"data":"void"},{"start":5276,"end":5289,"data":"IOptions"},{"start":5289,"end":5293,"data":"OptionsParser"},{"start":5293,"end":5304,"data":"(arg: string) => IOptions"},{"start":5304,"end":5305,"data":"IOptions"},{"start":5305,"end":5308,"data":"any"},{"start":5308,"end":5310,"data":"IOptions"},{"start":5310,"end":5338,"data":"void"},{"start":5338,"end":5344,"data":"IOptions"},{"start":5344,"end":5349,"data":"bool"},{"start":5349,"end":5353,"data":"any"},{"start":5353,"end":5382,"data":"void"},{"start":5382,"end":5395,"data":"any"},{"start":5395,"end":5415,"data":"string"},{"start":5415,"end":5420,"data":"any"},{"start":5420,"end":5446,"data":"void"},{"start":5446,"end":5459,"data":"any"},{"start":5459,"end":5461,"data":"string"},{"start":5461,"end":5463,"data":"any"},{"start":5463,"end":5489,"data":"void"},{"start":5489,"end":5493,"data":"OptionsParser"},{"start":5493,"end":5504,"data":"() => void"},{"start":5504,"end":5567,"data":"void"},{"start":5567,"end":5568,"data":"bool"},{"start":5568,"end":5574,"data":"IOptions"},{"start":5574,"end":5579,"data":"bool"},{"start":5579,"end":5610,"data":"void"},{"start":5610,"end":5615,"data":"any"},{"start":5615,"end":5618,"data":"string"},{"start":5618,"end":5625,"data":"() => string"},{"start":5625,"end":5627,"data":"any"},{"start":5627,"end":5628,"data":"string"},{"start":5628,"end":5656,"data":"void"},{"start":5656,"end":5662,"data":"IOptions"},{"start":5662,"end":5666,"data":"(s: string) => void"},{"start":5666,"end":5667,"data":"void"},{"start":5667,"end":5672,"data":"any"},{"start":5672,"end":5756,"data":"void"},{"start":5756,"end":5760,"data":"OptionsParser"},{"start":5760,"end":5768,"data":"string[]"},{"start":5768,"end":5774,"data":"any"},{"start":5774,"end":5781,"data":"string"},{"start":5781,"end":5783,"data":"any"},{"start":5783,"end":5809,"data":"void"},{"start":5809,"end":5816,"data":"(args: string[]) => void"}] \ No newline at end of file diff --git a/tests/cases/unittests/services/dumpAST.ts b/tests/cases/unittests/services/dumpAST.ts deleted file mode 100644 index b8db724c1d3..00000000000 --- a/tests/cases/unittests/services/dumpAST.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// - -DumpAST.compareDumpFilesWithBaseline(); diff --git a/tests/cases/unittests/services/dumpAST/baseline-create.ts b/tests/cases/unittests/services/dumpAST/baseline-create.ts deleted file mode 100644 index 26649664545..00000000000 --- a/tests/cases/unittests/services/dumpAST/baseline-create.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -describe('dumpAST-create-baselines', function() { - describe("create test baseline files for AST source locations", function() { - it("create baseline files", function() { - DumpAST.generateBaselineFiles(); - }); - }); -}); diff --git a/tests/cases/unittests/services/getCompletionsAtPosition.ts b/tests/cases/unittests/services/getCompletionsAtPosition.ts deleted file mode 100644 index aa3e771919f..00000000000 --- a/tests/cases/unittests/services/getCompletionsAtPosition.ts +++ /dev/null @@ -1,220 +0,0 @@ -/// - -debugger; - -describe('getCompletionsAtPosition', function () { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition1.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition2.ts'; - var fileName3 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition3.ts'; - var fileName4 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition4.ts'; - var fileName5 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition5.ts'; - var fileName6 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition6.ts'; - var fileName7 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition7.ts'; - var fileName8 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition8.ts'; - var fileName9 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition9.ts'; - var fileName10 = 'tests/cases/unittests/services/testCode/getCompletionsAtPosition10.ts'; - var fileNameBugFixes = 'tests/cases/unittests/services/testCode/getCompletionsAtPositionBugFixes.ts'; - - typescriptLS.addFile(fileName); - typescriptLS.addFile(fileName2); - typescriptLS.addFile(fileName3); - typescriptLS.addFile(fileName4); - typescriptLS.addFile(fileName5); - typescriptLS.addFile(fileName6); - typescriptLS.addFile(fileName7); - typescriptLS.addFile(fileName8); - typescriptLS.addFile(fileName9); - typescriptLS.addFile(fileName10); - typescriptLS.addFile(fileNameBugFixes); - - var ls = typescriptLS.getLanguageService(); - - // - // line and column are 1-based - // - function lineColToPosition(fileName: string, line: number, col: number): number { - var script = ls.languageService.getScriptAST(fileName); - assert.notNull(script); - - var lineMap = script.locationInfo.lineMap; - - assert.is(line >= 1); - assert.is(col >= 1); - assert.is(line <= lineMap.length); - var offset = lineMap[line - 1] + (col - 1); - - assert.is(offset < script.limChar); - return offset; - } - - // - // line and column are 1-based - // - function getCompletionList(fileName, line, column, isMemberCompletion) { - var position = lineColToPosition(fileName, line, column); - return ls.languageService.getCompletionsAtPosition(fileName, position, isMemberCompletion); - } - - describe("test cases for completion list", function () { - - //it("contains a private variable defined in a module", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName, 45, false); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "testing" && x.type == "string"); - //}); - - //it("'this.' member completion for class containing privates", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName, 85, true); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "privMeth" && x.type == "() => void"); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "pubMeth" && x.type == "() => void"); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "pubProp" && x.type == "number"); - //}); - - //it("member completion for class containing privates, outside of class scope", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName, 203, true); - - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "pubMeth" && x.type == "() => void"); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "pubProp" && x.type == "number"); - //}); - - //it("member completion for module-exported class containing privates, outside of class and module scopes", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName, 343, true); - // assert.notNull(result); - // assert.notNull(result.entries); - // assert.equal(true, result.isMemberCompletion); - // assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "pub" && x.type == "number"); - - //}); - - //it("member completion for dotted typeref works", function () { - // assert.equal(125, lineColToPosition(fileName2, 12, 11)); - // var result = getCompletionList(fileName2, 12, 11, true); - // assert.notEqual(null, result); - // assert.notEqual(null, result.entries); - // assert.equal(true, result.isMemberCompletion); - // assert.equal(2, result.entries.length); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Bar"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Blah"; }); - //}); - - // Negative Cases - it("doesnt return anything from a comment-1", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName, lineColToPosition(fileName, 23, 5), true); - assert.equal(result.isMemberCompletion, true); - assert.equal(result.entries.length, 0); - }); - - it("doesnt return anything from a comment-2", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName, lineColToPosition(fileName, 23, 5), false); - assert.equal(result.isMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - it("doesnt return anything from a comment-3", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName, lineColToPosition(fileName, 23, 6), true); - assert.equal(result.isMemberCompletion, true); - assert.equal(result.entries.length, 0); - }); - - it("doesnt return anything from a comment-4", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName, lineColToPosition(fileName, 23, 6), false); - assert.equal(result.isMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - it("checks for completion in comment", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName3, lineColToPosition(fileName3, 1, 4), false); - assert.equal(result.isMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - /* - it("checks for completion in var decl", function() { - var result = ls.languageService.getCompletionsAtPosition(fileName3, lineColToPosition(fileName3, 2, 5), false); - assert.equal(result.wasMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - - it("checks for completion in class decl", function() { - var result = ls.languageService.getCompletionsAtPosition(fileName4, lineColToPosition(fileName4, 1, 7), false); - assert.equal(result.wasMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - - it("checks for completion in module decl", function() { - var result = ls.languageService.getCompletionsAtPosition(fileName5, lineColToPosition(fileName5, 1, 7), false); - assert.equal(result.wasMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - it("checks for completion in interface decl", function() { - var result = ls.languageService.getCompletionsAtPosition(fileName6, lineColToPosition(fileName6, 1, 11), false); - assert.equal(result.wasMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - - - it("checks for completion in function decl", function() { - var result = ls.languageService.getCompletionsAtPosition(fileName7, lineColToPosition(fileName7, 1, 10), false); - assert.equal(result.wasMemberCompletion, false); - assert.equal(result.entries.length, 0); - }); - */ - - it("checks for completion after single dot", function () { - var result = ls.languageService.getCompletionsAtPosition(fileName8, lineColToPosition(fileName8, 1, 1), true); - assert.equal(result.isMemberCompletion, true); - assert.equal(result.entries.length, 0); - }); - - //it("checks for completion at declaration of parameter type", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName9, lineColToPosition(fileName9, 9, 17), false); - // assert.equal(result.isMemberCompletion, false); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Bar"; }); - //}); - - //it("checks for completion after class extends", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName9, lineColToPosition(fileName9, 5, 30), false); - // assert.equal(result.isMemberCompletion, false); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Bar"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Bleah"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "Foo"; }); - //}); - - //it("checks for completion at reference to function parameter", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileName10, lineColToPosition(fileName10, 4, 31), true); - // assert.equal(result.isMemberCompletion, true); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "charAt"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "charCodeAt"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "length"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "concat"; }); - //}); - - //it("checks for completion at enum", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileNameBugFixes, lineColToPosition(fileNameBugFixes, 7, 22), true); - // assert.equal(result.isMemberCompletion, true); - // assert.equal(result.entries.length, 2); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "bar"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "baz"; }); - //}); - - //it("checks for completion at imported enum", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileNameBugFixes, lineColToPosition(fileNameBugFixes, 10, 9), true); - // assert.equal(result.isMemberCompletion, true); - // assert.equal(result.entries.length, 2); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "bar"; }); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "baz"; }); - //}); - - //it("checks for completion inside target typed function", function () { - // var result = ls.languageService.getCompletionsAtPosition(fileNameBugFixes, lineColToPosition(fileNameBugFixes, 15, 40), false); - // assert.equal(result.isMemberCompletion, false); - // assert.arrayContainsOnce(result.entries, function (item: Services.CompletionEntry) { return item.name === "elem" && item.type === "string"; }); - //}); - }); -}); diff --git a/tests/cases/unittests/services/getCompletionsAtPositionAfterEdits.ts b/tests/cases/unittests/services/getCompletionsAtPositionAfterEdits.ts deleted file mode 100644 index e79de723081..00000000000 --- a/tests/cases/unittests/services/getCompletionsAtPositionAfterEdits.ts +++ /dev/null @@ -1,55 +0,0 @@ -/// - -describe('getCompletionsAtPositionAfterEdits', function () { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getCompletionsAtPositionAfterEdits.ts'; - var fileName2 = 'otherScript.ts'; - - typescriptLS.addFile(fileName); - typescriptLS.addScript(fileName2, typescriptLS.getScriptContent(1)); - - var ls = typescriptLS.getLanguageService(); - - // - // line and column are 1-based - // - function getCompletionList(fileName: string, position: number, isMemberCompletion: boolean): Services.CompletionInfo { - return ls.languageService.getCompletionsAtPosition(fileName, position, isMemberCompletion); - } - - function typeCharacters(fileName: string, line: number, column: number, text: string): number { - var pos = typescriptLS.lineColToPosition(fileName, line, column); - for (var i = 0; i < text.length; i++) { - typescriptLS.editScript(fileName, pos, pos, text.charAt(i)); - pos++; - } - return pos; - } - - describe("test cases for completion list after edits inside source file", function () { - - it("verify function arguments are available after edits at end of function", function () { - // Apply edit - var pos = typescriptLS.lineColToPosition(fileName, 5, 13); - var text = "this.children = ch"; - typescriptLS.editScript(fileName, pos, pos, text); - var result = getCompletionList(fileName, pos + text.length - 2 /*ch*/, false); - var entry = result.entries.filter(x => x.name == "children"); - assert.notNull(entry); - assert.equal(1, entry.length); - }); - - it("verify function arguments are available after edits at end of function after multiple edits", function () { - // Apply edit - var text = "this.children = ch"; - var pos = typeCharacters(fileName2, 5, 13, text); - var result = getCompletionList(fileName2, pos - 2 /*ch*/, false); - var entry = result.entries.filter(x => x.name == "children"); - assert.notNull(entry); - assert.equal(1, entry.length); - }); - }); -}); diff --git a/tests/cases/unittests/services/getCompletionsAtPositionObjectLiterals.ts b/tests/cases/unittests/services/getCompletionsAtPositionObjectLiterals.ts deleted file mode 100644 index 4e1a35b81c2..00000000000 --- a/tests/cases/unittests/services/getCompletionsAtPositionObjectLiterals.ts +++ /dev/null @@ -1,100 +0,0 @@ -///// - -//describe('getCompletionsAtPositionObjectLiterals', function () { -// var typescriptls = new Harness.TypeScriptLS(); - -// typescriptls.addDefaultLibrary(); - -// var fileNameObjectLiterals = 'tests/cases/unittests/services/testCode/getCompletionsAtPositionObjectLiterals.ts'; - -// typescriptls.addFile(fileNameObjectLiterals); - -// var ls = typescriptls.getLanguageService(); - -// // -// // line and column are 1-based -// // -// function getCompletionList(fileName: string, line: number, column: number, isMemberCompletion: boolean): Services.CompletionInfo { -// var position = typescriptls.lineColToPosition(fileName, line, column); -// return ls.languageService.getCompletionsAtPosition(fileName, position, isMemberCompletion); -// } - -// function assertIsMemberCompletions(result: Services.CompletionInfo) { -// assert.notNull(result); -// assert.is(result.isMemberCompletion, "isMemberCompletion should be set"); -// assert.is(!result.maybeInaccurate, "CompletionInfo should be accurate"); -// assert.is(result.entries.length == 2, "Completion should contain only 2 members of object literal"); -// assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "x1" && x.type == "number"); -// assert.arrayContainsOnce(result.entries, (x: Services.CompletionEntry) => x.name == "y1" && x.type == "number"); -// } - -// function assertIsGlobalCompletions(result: Services.CompletionInfo) { -// assert.notNull(result); -// assert.is(!result.isMemberCompletion, "isMemberCompletion should be not be set"); -// assert.is(!result.maybeInaccurate, "CompletionInfo should be accurate"); -// assert.is(result.entries.length >= 10, "Completion should be global completion set"); -// } - -// function assertIsNoCompletions(result: Services.CompletionInfo) { -// assert.notNull(result); -// assert.is(result.entries.length == 0, "Completion should be empty (i.e. no completion)"); -// } - -// describe("test cases for completion list inside object literals", function () { -// it("Literal member completion inside empty literal", function () { -// var result = getCompletionList(fileNameObjectLiterals, 8, 9, false); -// assertIsMemberCompletions(result); -// }); - -// it("Literal member completion for 2nd member name", function () { -// var result = getCompletionList(fileNameObjectLiterals, 13, 9, false); -// assertIsMemberCompletions(result); -// }); - -// it("Literal member completion at existing member name location", function () { -// var result = getCompletionList(fileNameObjectLiterals, 17, 9, false); -// assertIsMemberCompletions(result); -// }); - -// it("Literal member completion after existing member name location", function () { -// var result = getCompletionList(fileNameObjectLiterals, 17, 12, false); -// assertIsMemberCompletions(result); -// }); - -// }); - -// describe("test cases for global completion list inside object literals", function () { -// it("Literal member completion after member name with empty member expression and missing colon", function () { -// var result = getCompletionList(fileNameObjectLiterals, 27, 13, false); -// assertIsGlobalCompletions(result); - -// var result = getCompletionList(fileNameObjectLiterals, 28, 5, false); -// assertIsGlobalCompletions(result); -// }); - -// it("Literal member completion after member name with empty member expression", function () { -// var result = getCompletionList(fileNameObjectLiterals, 31, 13, false); -// assertIsGlobalCompletions(result); - -// var result = getCompletionList(fileNameObjectLiterals, 31, 22, false); -// assertIsGlobalCompletions(result); -// }); - -// it("No completion on '{' location", function () { -// var result = getCompletionList(fileNameObjectLiterals, 7, 23, false); -// assertIsGlobalCompletions(result); -// }); -// }); - -// describe("test cases for no completion list inside object literals", function () { -// it("No completion on comments (1)", function () { -// var result = getCompletionList(fileNameObjectLiterals, 8, 12, false); -// assertIsNoCompletions(result); -// }); - -// it("No completion on comments (2)", function () { -// var result = getCompletionList(fileNameObjectLiterals, 8, 18, false); -// assertIsNoCompletions(result); -// }); -// }); -//}); diff --git a/tests/cases/unittests/services/getDefinitionPositionAtPosition.ts b/tests/cases/unittests/services/getDefinitionPositionAtPosition.ts deleted file mode 100644 index d9291ed821f..00000000000 --- a/tests/cases/unittests/services/getDefinitionPositionAtPosition.ts +++ /dev/null @@ -1,193 +0,0 @@ -/// - -describe('getDefinitionPositionAtPosition', function() { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getDefinitionsAtPosition.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/getDefinitionsAtPosition2.ts'; - var fileName3 = 'tests/cases/unittests/services/testCode/getDefinitionsAtPosition3.ts'; - - typescriptLS.addFile(fileName); - typescriptLS.addFile(fileName2); - typescriptLS.addFile(fileName3); - - var ls = typescriptLS.getLanguageService(); - - function lineToOffset(line: number, col = 0, sFile?) { - var script: TypeScript.Script; - if (sFile) { - if (sFile === 1){ - script = ls.languageService.getScriptAST(fileName); - } else if (sFile === 2) { - script = ls.languageService.getScriptAST(fileName2); - } else if (sFile === 3){ - script = ls.languageService.getScriptAST(fileName3); - } - } - else { - script = ls.languageService.getScriptAST(fileName); - } - return script.locationInfo.lineMap[line - 1] + col; - } - - function definitionAtPos(line: number, col: number) { - var result = ls.getDefinitionAtPosition(fileName, lineToOffset(line, col)); - if (result.substr(0,9) === "##ERROR##") { - return null; - } - var parts = result.split('\t'); - var defScriptIndex = parts[0]; - var defPosition = parts[1]; - return { index : defScriptIndex, pos : defPosition } - } - - function verifyDefinition(indexAndPos: {index: string; pos: string;}, line: number, col: number, fileNum: number) { - if (indexAndPos.index !== fileNum.toString()) { - throw new Error("Expected file index to be " + fileNum + " but it was " + indexAndPos.index + " instead."); - } - if (indexAndPos.pos!== lineToOffset(line, col, fileNum).toString()) { - throw new Error("Expected offset to be " + lineToOffset(line, col, fileNum).toString() + " but it was " + indexAndPos.pos + " instead."); - } - } - - describe('GoTo Definition', function() { - /* - LOCAL - */ - - it("A variable that is defined in the same file", function() { - var indexAndPos = definitionAtPos(8, 0); - verifyDefinition(indexAndPos, 2, 0, 1); - }); - - it("A function that is defined in the same file", function() { - var indexAndPos = definitionAtPos(9, 0); - verifyDefinition(indexAndPos, 3, 0, 1); - }); - - it("A class that is defined in the same file", function() { - var indexAndPos = definitionAtPos(10, 16); - verifyDefinition(indexAndPos, 4, 0, 1); - }); - - it("An interface that is defined in the same file", function() { - var indexAndPos = definitionAtPos(11, 26); - verifyDefinition(indexAndPos, 5, 0, 1); - }); - - it("A module that is defined in the same file", function() { - var indexAndPos = definitionAtPos(12, 15); - verifyDefinition(indexAndPos, 6, 0, 1); - }); - - /* - REMOTE - */ - - it("A variable that is defined in a remote file", function() { - var indexAndPos = definitionAtPos(14, 0); - verifyDefinition(indexAndPos, 2, 0, 2); - }); - - it("A function that is defined in a remote file", function() { - var indexAndPos = definitionAtPos(15, 0); - verifyDefinition(indexAndPos, 3, 0, 2); - }); - - it("A class that is defined in a remote file", function() { - var indexAndPos = definitionAtPos(16, 19); - verifyDefinition(indexAndPos, 4, 0, 2); - }); - - it("An interface that is defined in a remote file", function() { - var indexAndPos = definitionAtPos(17, 29); - verifyDefinition(indexAndPos, 5, 0, 2); - }); - - it("A module that is defined in a remote file", function() { - var indexAndPos = definitionAtPos(18, 18); - verifyDefinition(indexAndPos, 6, 0, 2); - }); - - /* - REMOTE -> REMOTE - */ - - it("A variable that is defined in a remote file that is referenced from a remote file", function() { - var indexAndPos = definitionAtPos(20, 0); - verifyDefinition(indexAndPos, 1, 0, 3); - }); - - it("A function that is defined in a remote file that is referenced from a remote file", function() { - var indexAndPos = definitionAtPos(21, 0); - verifyDefinition(indexAndPos, 2, 0, 3); - }); - - it("A class that is defined in a remote file that is referenced from a remote file", function() { - var indexAndPos = definitionAtPos(22, 19); - verifyDefinition(indexAndPos, 3, 0, 3); - }); - - it("An interface that is defined in a remote file that is referenced from a remote file", function() { - var indexAndPos = definitionAtPos(23, 29); - verifyDefinition(indexAndPos, 4, 0, 3); - }); - - it("A module that is defined in a remote file that is referenced from a remote file", function() { - var indexAndPos = definitionAtPos(24, 18); - verifyDefinition(indexAndPos, 5, 0, 3); - }); - - /* - Others - */ - - it("A shadowed variable inside a module", function() { - var indexAndPos = definitionAtPos(29, 6); - verifyDefinition(indexAndPos, 28, 4, 1); - }); - - it("A function being overloaded on global - 1", function() { - var indexAndPos = definitionAtPos(32, 9); - verifyDefinition(indexAndPos, 34, 0, 1); - }); - - it("A function being overloaded on global - 2", function() { - var indexAndPos = definitionAtPos(36, 0); - verifyDefinition(indexAndPos, 34, 0, 1); - }); - - it("Constructor being overloaded in class", function() { - var indexAndPos = definitionAtPos(40, 4); - verifyDefinition(indexAndPos, 42, 4, 1); - }); - - it("A function being overloaded in class - 1", function() { - var indexAndPos = definitionAtPos(52, 11); - verifyDefinition(indexAndPos, 54, 4, 1); - }); - - it("A static function being overloaded in class - 1", function() { - var indexAndPos = definitionAtPos(50, 11); - verifyDefinition(indexAndPos, 51, 4, 1); - }); - - it("Calling a static function of a class", function() { - var indexAndPos = definitionAtPos(63, 19); - verifyDefinition(indexAndPos, 51, 4, 1); - }); - - it("A class implementing an interface", function() { - var indexAndPos = definitionAtPos(83, 24); - verifyDefinition(indexAndPos, 78, 0, 1); - }); - - it("An ambient variable", function() { - var indexAndPos = definitionAtPos(91, 0); - verifyDefinition(indexAndPos, 89, 0, 1); - }); - }); -}); - diff --git a/tests/cases/unittests/services/getDefinitionPositionAtPositionPartialInterface.ts b/tests/cases/unittests/services/getDefinitionPositionAtPositionPartialInterface.ts deleted file mode 100644 index ca22c326aab..00000000000 --- a/tests/cases/unittests/services/getDefinitionPositionAtPositionPartialInterface.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// - -describe('getDefinitionPositionAtPositionPartialInterface', function() { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface1.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface2.ts'; - - typescriptLS.addFile(fileName); - typescriptLS.addFile(fileName2); - - var ls = typescriptLS.getLanguageService() - function definitionAtPos(fileName:string, line: number, col: number) { - return ls.languageService.getDefinitionAtPosition(fileName, typescriptLS.lineColToPosition(fileName, line, col)); - } - - describe('GoTo Definition', function() { - it("returns the location of the first part of a partial interface", function() { - var def = definitionAtPos(fileName2, 8, 13); - assert.notNull(def); - assert.equal(def.unitIndex, 1); - assert.equal(typescriptLS.positionToZeroBasedLineCol(fileName, def.minChar).line + 1, 2); - assert.equal(typescriptLS.positionToZeroBasedLineCol(fileName, def.minChar).col + 1, 5); - }); - }); -}); - diff --git a/tests/cases/unittests/services/getImplementorsAtPosition.ts b/tests/cases/unittests/services/getImplementorsAtPosition.ts deleted file mode 100644 index 748e1f6f1f9..00000000000 --- a/tests/cases/unittests/services/getImplementorsAtPosition.ts +++ /dev/null @@ -1,73 +0,0 @@ -/// - -describe('getImplementorsAtPosition', function () { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getImplementorsAtPosition.ts'; - - typescriptLS.addFile(fileName); - - var ls = typescriptLS.getLanguageService(); - - - function getImplementorsAtPos(fileName:string, line: number, col: number): Services.ReferenceEntry[] { - var pos = typescriptLS.lineColToPosition(fileName, line, col); - - return ls.languageService.getImplementorsAtPosition(fileName, pos); - } - - describe('Get Implementors At Position Simple Tests', function () { - it("Find derived class from base class", function() { - var result = getImplementorsAtPos(fileName, 2, 12); - assert.notNull(result); - assert.equal(2, result.length); - }); - - it("Should not find base class from derived class", function() { - var result = getImplementorsAtPos(fileName, 6, 12); - assert.notNull(result); - assert.equal(1, result.length); - }); - - it("Find derived interface from base interface", function() { - var result = getImplementorsAtPos(fileName, 13, 16); - assert.notNull(result); - assert.equal(2, result.length); - }); - - it("Should not find base interface from derived interface", function() { - var result = getImplementorsAtPos(fileName, 16, 16); - assert.notNull(result); - assert.equal(1, result.length); - }); - - it("Find dervied class from base interface", function() { - var result = getImplementorsAtPos(fileName, 22, 16); - assert.notNull(result); - assert.equal(2, result.length); - }); - - it("Should not find base interface from derived class", function() { - var result = getImplementorsAtPos(fileName, 25, 12); - assert.notNull(result); - assert.equal(1, result.length); - }); - }); - - describe('Get Implementors At Position Complex Tests', function () { - it("Find derived classes and interfaces from top level interface", function() { - var result = getImplementorsAtPos(fileName, 32, 17); - assert.notNull(result); - assert.equal(6, result.length); - }); - - it("Find derived classes and interfaces from middle interface", function() { - var result = getImplementorsAtPos(fileName, 41, 18); - assert.notNull(result); - assert.equal(4, result.length); - }); - }); -}); - diff --git a/tests/cases/unittests/services/getReferencesAtPosition.ts b/tests/cases/unittests/services/getReferencesAtPosition.ts deleted file mode 100644 index 1f3645c2046..00000000000 --- a/tests/cases/unittests/services/getReferencesAtPosition.ts +++ /dev/null @@ -1,188 +0,0 @@ -/// - -debugger; - -describe('getReferencesAtPosition', function() { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName1 = 'tests/cases/unittests/services/testCode/getReferencesAtPositionTest.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/getReferencesAtPositionTest2.ts'; - var fileName3 = 'tests/cases/unittests/services/testCode/getReferencesAtPositionTest3.ts'; - var fileName4 = 'tests/cases/unittests/services/testCode/getReferencesAtPositionTest4.ts'; - - typescriptLS.addFile(fileName1); - typescriptLS.addFile(fileName2); - typescriptLS.addFile(fileName3); - typescriptLS.addFile(fileName4); - - var ls = typescriptLS.getLanguageService(); - - // Returns the offset corresponding to the line + column given - function lineToOffset(line: number, col = 0, fileName?: string = fileName1) { - var script: TypeScript.Script = ls.languageService.getScriptAST(fileName); - return script.locationInfo.lineMap[line - 1] + col; - } - - describe("local get references", function() { - - it("finds references to comment", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(2, 25)); - assert.equal(1, result.split("\n").length); - }); - - it("find references to type", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(3, 15)); - var count = 0; - // Filter out the lib.d.ts - var items = result.split("\n"); - for (var i = 0; i < items.length; i++) { - if (items[i].split(" ")[0] !== "0") { - count++; - } - } - assert.equal(10, count); - }); - - it("find references to a variable declared in global", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(3, 4)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to a variable declared in a class", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(8, 8)); - assert.equal(3, result.split("\n").length); - }); - - it("find references to static variable declared in a class", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(6, 16)); - assert.equal(7, result.split("\n").length); - }); - - it("find references to a variable declared in a function", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(22, 8)); - assert.equal(3, result.split("\n").length); - }); - - it("find references to a class parameter", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(15, 17)); - assert.equal(2, result.split("\n").length); - }); - - it("find references to a function parameter", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(20, 14)); - assert.equal(3, result.split("\n").length); - }); - - it("find references to a function argument", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(66, 8)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to a class argument", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(65, 29)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to illegal assignment", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(75, 0)); - assert.equal(8, result.split("\n").length); - }); - - it("find references to unresolved symbol", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(76, 0)); - assert.equal(1, result.split("\n").length); - }); - - it("find references to no context", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(77, 0)); - assert.equal(1, result.split("\n").length); - }); - - it("find references to shadowed function parameter", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(79, 20)); - assert.equal(4, result.split("\n").length); - }); - - it("find reference misses function parameter", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(115, 11)); - assert.equal(3, result.split("\n").length); - }); - }); - - describe("remote get references", function() { - it("find references to a variable declared in global", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(96, 0)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to a type", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(87, 23)); - assert.equal(9, result.split("\n").length); - }); - - it("find references to a function argument", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(91, 19)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to a class argument", function() { - var result = ls.getReferencesAtPosition(fileName1, lineToOffset(90, 43)); - assert.equal(12, result.split("\n").length); - }); - - it("find references to a variable declared in a class", function() { - var result = ls.getReferencesAtPosition(fileName2, lineToOffset(5, 8, fileName2)); - assert.equal(3, result.split("\n").length); - }); - - it("find references to static variable declared in a class", function() { - var result = ls.getReferencesAtPosition(fileName2, lineToOffset(6, 11, fileName2)); - assert.equal(7, result.split("\n").length); - }); - }); - - describe("get references for overrides", function() { - it("find references to a field declared in a base class", function() { - var result = ls.languageService.getReferencesAtPosition(fileName3, lineToOffset(62, 11, fileName3)); - assert.equal(3, result.length); - }); - - it("find references to a field declared in a base interface", function() { - var result = ls.languageService.getReferencesAtPosition(fileName3, lineToOffset(65, 11, fileName3)); - assert.equal(3, result.length); - }); - - it("find references to a field declared in a chain of base class and interfaces", function() { - var result = ls.languageService.getReferencesAtPosition(fileName3, lineToOffset(68, 11, fileName3)); - assert.equal(6, result.length); - }); - }); - - describe("get references for statics with same names as members", function() { - it("find references to a member method with the same name as a static", function() { - /* public foo(): void */ - var result = ls.languageService.getReferencesAtPosition(fileName4, lineToOffset(7, 21, fileName4)); - assert.equal(3, result.length); - }); - - it("find references to a static method with the same name as a member", function() { - /* public static foo(): void */ - var result = ls.languageService.getReferencesAtPosition(fileName4, lineToOffset(9, 28, fileName4)); - assert.equal(2, result.length); - }); - - it("find references to a member property with the same name as a static", function() { - /* bar: Foo */ - var result = ls.languageService.getReferencesAtPosition(fileName4, lineToOffset(4, 14, fileName4)); - assert.equal(3, result.length); - }); - - it("find references to a static property with the same name as a member", function() { - /* static bar: Foo */ - var result = ls.languageService.getReferencesAtPosition(fileName4, lineToOffset(5, 21, fileName4)); - assert.equal(2, result.length); - }); - }); -}); diff --git a/tests/cases/unittests/services/getReferencesAtPosition2.ts b/tests/cases/unittests/services/getReferencesAtPosition2.ts deleted file mode 100644 index 4a0eb2ab1ac..00000000000 --- a/tests/cases/unittests/services/getReferencesAtPosition2.ts +++ /dev/null @@ -1,235 +0,0 @@ -/// - -function testFileForReferenceHighlighting(filename: string, expectedMissingCount ?= 0, expectedExtraCount ?= 0) { - describe( - 'The file ' + filename + ' has ' + expectedMissingCount + ' missing reference highlights and ' + expectedExtraCount + ' extra reference highlights', - function(filename: string, expectedMissingCount: number, expectedExtraCount: number) { - return function() { - validateReferencesFile(filename, expectedMissingCount, expectedExtraCount); - } - }(filename, expectedMissingCount, expectedExtraCount) - ); -} - -function validateReferencesFile(filename: string, expectedMissingCount: number, expectedExtraCount: number) { - var __typescriptLS = new Harness.TypeScriptLS(); - - // Read the input file and split it apart into sub-files - var testFile = IO.readFile(filename); - var testFileParts = splitFile(testFile); - - var testFileNames: string[] = []; - var testFileContents: string[] = []; - - // For each sub-file, add it to the project and collect its spans - var spans: Span[] = []; - var caretPositions: Span[] = []; - var i; - for(i = 0; i < testFileParts.length; i++) { - var partSpans: Span[] = []; - var partCarets: Span[] = []; - var transformedCode = extractCodeSpans(testFileParts[i], partSpans, partCarets); - - partSpans.forEach(function(sp) { - sp.fileIndex = i; - spans.push(sp); - }); - - partCarets.forEach(function(sp) { - sp.fileIndex = i; - caretPositions.push(sp); - }); - - var tempFilename = 'tempFile' + i + '.ts'; - testFileNames.push(tempFilename); - testFileContents.push(transformedCode); - __typescriptLS.addScript(tempFilename , transformedCode); - } - - // Be sure to do this last so file indices don't get off-by-n'd by the default library - __typescriptLS.addDefaultLibrary(); - testFileContents.push(Harness.Compiler.libText); - - // If there's no caret position, someone screwed up the test authoring - if(caretPositions.length === 0) { - throw new Error('No caret positions in ' + filename + ' - did you forget to add some?'); - } - - var __ls = __typescriptLS.getLanguageService(); - - for(var caretIndex = 0; caretIndex < caretPositions.length; caretIndex++) { - var caret = caretPositions[caretIndex]; - describe('Returns the correct references at caret position = ' + caret, function() { - var references = __ls.getReferencesAtPosition(testFileNames[caret.fileIndex], caret.start); - var referencesList = Span.fromReferenceLines(references); - referencesList.forEach(function(rf) { rf.getContent(testFileContents); }); - - var diff = diffLists(spans, referencesList, function(s1, s2) { return s1.equals(s2); }); - if(expectedExtraCount === 0) { - it('Has no extra highlights', function() { - assert.equal('', diff.extraItems.join(', ')); - }); - } else { - it('Has ' + expectedExtraCount + ' extra highlights', function() { - assert.equal(expectedExtraCount, diff.extraItems.length); - }); - } - - if(expectedMissingCount === 0) { - it('Has no missing highlights', function() { - assert.equal('', diff.missingItems.join(', ')); - }); - } else { - it('Has ' + expectedMissingCount + ' missing highlights', function() { - assert.equal(expectedMissingCount, diff.missingItems.length); - }); - } - }); - } -} - -interface ListDiffResult { - areIdentical: boolean; - extraItems: any[]; - missingItems: any[]; -} - -function diffLists(expected: any[], actual: any[], equals: (expct: any, actl: any) => boolean) : ListDiffResult { - var result = { areIdentical: false, extraItems: actual.slice(0), missingItems: expected.slice(0) }; - - var i, j; - for(i = 0; i < result.extraItems.length; i++) { - for(j = 0; j < result.missingItems.length; j++) { - if(equals(result.missingItems[j], result.extraItems[i])) { - result.extraItems.splice(i, 1); - result.missingItems.splice(j, 1); - i--; - break; - } - } - } - - result.areIdentical = result.extraItems.length === 0 && result.missingItems.length === 0; - return result; -} - -class Span { - constructor (public start: number, public length: number, public content: string) { } - - public fileIndex: number = null; - - public getContent(fileContents: string[]) { - this.content = fileContents[this.fileIndex].substr(this.start, this.length); - } - - static fromReferenceLine(line: string): Span { - var parts = line.split(' '); - var fileNumber = parseInt(parts[0]); - var start = parseInt(parts[1]); - var end = parseInt(parts[2]); - - var result = new Span(start, end - start, ""); - result.fileIndex = fileNumber; - return result; - } - - static fromReferenceLines(lines: string): Span[] { - var result: Span[] = []; - lines.split('\n').forEach(function(ln: string) { - if(ln) { - result.push(fromReferenceLine(ln)); - } - }); - return result; - } - - public toString(): string { - return '[File = ' + this.fileIndex + ', Start = ' + this.start + ', Length = ' + this.length + ', Content = "' + this.content + '"]'; - } - - public equals(other: Span) { - if(!other) return false; - // Don't check 'content' as that won't be populated in all cases (it's only for diagnostic purposes) - return other.start === this.start && - other.length === this.length && - other.fileIndex === this.fileIndex; - } -} - -function splitFile(contents: string): string[] { - var delimiterChar = '='; - var delimiterStr = delimiterChar + delimiterChar + delimiterChar + delimiterChar; - - var result: string[] = []; - - while(true) { - var delimIndex = contents.indexOf(delimiterStr); - if(delimIndex === -1) { - result.push(contents); - break; - } else { - result.push(contents.substr(0, delimIndex - 1)); - while(contents.charAt(delimIndex) === delimiterChar) { - delimIndex++; - } - contents = contents.substr(delimIndex); - } - } - - return result; -} - -function extractCodeSpans(code: string, outputSpans: Span[], caretPositions: Span[]): string { - var startTag = '[|'; - var endTag = '|]'; - var caretMarker = '^^'; - var result = code; - while(true) { - var caretIndex = result.indexOf(caretMarker); - var tagStartIndex = result.indexOf(startTag); - if(tagStartIndex === -1 && caretIndex === -1) break; // No more matches - - if(tagStartIndex != -1 && ((tagStartIndex < caretIndex) || (caretIndex === -1))) { - // Tag series is first - var tagEndIndex = result.indexOf(endTag, tagStartIndex + tagStartIndex.length); - if(tagEndIndex === -1) throw new Error('Unbalanced ' + startTag + '/' + endTag + ' pairs - expected to find a ' + startTag); - - var interiorStart = tagStartIndex + startTag.length; - var content = result.substr(interiorStart, tagEndIndex - interiorStart); - var contentCaretIndex = content.indexOf(caretMarker); - // Need to handle the case where there are caret[s] inside the tag markers - while(contentCaretIndex != -1) { - caretPositions.push(new Span(contentCaretIndex + tagStartIndex, 0, '')); - content = content.substring(0, contentCaretIndex) + content.substring(contentCaretIndex + caretMarker.length); - contentCaretIndex = content.indexOf(caretMarker); - } - - outputSpans.push(new Span(tagStartIndex, content.length, content)); - result = result.substr(0, tagStartIndex) + content + result.substr(tagEndIndex + endTag.length); - } else { - // Cursor marker is first - caretPositions.push(new Span(caretIndex, 0, '')); - result = result.substr(0, caretIndex) + result.substr(caretIndex + caretMarker.length); - } - } - - return result; -} - -var refFile = function(fn) { return Harness.userSpecifiedroot + 'tests/cases/unittests/services/testCode/references/' + fn; }; - -testFileForReferenceHighlighting(refFile('classLocal.ts')); - -testFileForReferenceHighlighting(refFile('classParameter.ts')); - -testFileForReferenceHighlighting(refFile('comment.ts')); - -testFileForReferenceHighlighting(refFile('functionOverloads.ts')); -testFileForReferenceHighlighting(refFile('functionParameter.ts')); - -testFileForReferenceHighlighting(refFile('illegalAssignment1.ts')); -testFileForReferenceHighlighting(refFile('illegalAssignment2.ts')); - -testFileForReferenceHighlighting(refFile('noContext.ts')); -testFileForReferenceHighlighting(refFile('referenceToClass.ts')); -testFileForReferenceHighlighting(refFile('static.ts')); diff --git a/tests/cases/unittests/services/getScriptLexicalStructure.ts b/tests/cases/unittests/services/getScriptLexicalStructure.ts deleted file mode 100644 index a9a449d6bf0..00000000000 --- a/tests/cases/unittests/services/getScriptLexicalStructure.ts +++ /dev/null @@ -1,904 +0,0 @@ -/// -describe('getScriptLexicalStructure', function () { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getScriptLexicalStructure.ts'; - - typescriptLS.addFile(fileName); - - var __ls = typescriptLS.getLanguageService(); - - - function getScriptLexicalStructure(fileName: string): Services.NavigateToItem[] { - return __ls.languageService.getScriptLexicalStructure(fileName); - } - - describe('Get script lexical structure', function () { - it("Cover all kinds of structure elements", function () { - var result = getScriptLexicalStructure(fileName); - - // Note: This baseline can be easily regenerated by taking the output of the test - // resulting from the call to "assert.equal" below. - var baseline = -[ - { - "name": "Bar", - "kind": "module", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 0, - "limChar": 1501, - "containerName": "", - "containerKind": "" - }, - { - "name": "x", - "kind": "var", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 47, - "limChar": 61, - "containerName": "Bar", - "containerKind": "module" - }, - { - "name": "f", - "kind": "function", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 92, - "limChar": 114, - "containerName": "Bar", - "containerKind": "module" - }, - { - "name": "IFoo", - "kind": "interface", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 139, - "limChar": 411, - "containerName": "Bar", - "containerKind": "module" - }, - { - "name": "()", - "kind": "call", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 165, - "limChar": 183, - "containerName": "Bar.IFoo", - "containerKind": "interface" - }, - { - "name": "new()", - "kind": "construct", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 212, - "limChar": 225, - "containerName": "Bar.IFoo", - "containerKind": "interface" - }, - { - "name": "[]", - "kind": "index", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 264, - "limChar": 284, - "containerName": "Bar.IFoo", - "containerKind": "interface" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 312, - "limChar": 324, - "containerName": "Bar.IFoo", - "containerKind": "interface" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 363, - "limChar": 375, - "containerName": "Bar.IFoo", - "containerKind": "interface" - }, - { - "name": "Blah", - "kind": "enum", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 419, - "limChar": 491, - "containerName": "Bar", - "containerKind": "module" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 440, - "limChar": 447, - "containerName": "Bar.Blah", - "containerKind": "enum" - }, - { - "name": "Bar", - "kind": "class", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 499, - "limChar": 1498, - "containerName": "Bar", - "containerKind": "module" - }, - { - "name": "constructor", - "kind": "constructor", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 520, - "limChar": 556, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "barVar", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 532, - "limChar": 551, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "barProp", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 597, - "limChar": 620, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "barPropFunc", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 672, - "limChar": 702, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "getter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 747, - "limChar": 775, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "setter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 822, - "limChar": 844, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "barPropP", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 899, - "limChar": 924, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "barPropFuncP", - "kind": "method", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 974, - "limChar": 1006, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "getter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1049, - "limChar": 1079, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "setter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1124, - "limChar": 1148, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1201, - "limChar": 1220, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1276, - "limChar": 1298, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "getter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1351, - "limChar": 1378, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "setter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1426, - "limChar": 1447, - "containerName": "Bar.Bar", - "containerKind": "class" - }, - { - "name": "Bar2", - "kind": "module", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1505, - "limChar": 3051, - "containerName": "", - "containerKind": "" - }, - { - "name": "x", - "kind": "var", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1560, - "limChar": 1581, - "containerName": "Bar2", - "containerKind": "module" - }, - { - "name": "f", - "kind": "function", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1613, - "limChar": 1642, - "containerName": "Bar2", - "containerKind": "module" - }, - { - "name": "IFoo", - "kind": "interface", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1668, - "limChar": 1947, - "containerName": "Bar2", - "containerKind": "module" - }, - { - "name": "()", - "kind": "call", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1701, - "limChar": 1719, - "containerName": "Bar2.IFoo", - "containerKind": "interface" - }, - { - "name": "new()", - "kind": "construct", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1748, - "limChar": 1761, - "containerName": "Bar2.IFoo", - "containerKind": "interface" - }, - { - "name": "[]", - "kind": "index", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1800, - "limChar": 1820, - "containerName": "Bar2.IFoo", - "containerKind": "interface" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1848, - "limChar": 1860, - "containerName": "Bar2.IFoo", - "containerKind": "interface" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1899, - "limChar": 1911, - "containerName": "Bar2.IFoo", - "containerKind": "interface" - }, - { - "name": "Blah", - "kind": "enum", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1955, - "limChar": 2034, - "containerName": "Bar2", - "containerKind": "module" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 1983, - "limChar": 1990, - "containerName": "Bar2.Blah", - "containerKind": "enum" - }, - { - "name": "Bar", - "kind": "class", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2042, - "limChar": 3048, - "containerName": "Bar2", - "containerKind": "module" - }, - { - "name": "constructor", - "kind": "constructor", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2070, - "limChar": 2106, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "barVar", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2082, - "limChar": 2101, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "barProp", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2147, - "limChar": 2170, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "barPropFunc", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2222, - "limChar": 2252, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "getter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2297, - "limChar": 2325, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "setter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2372, - "limChar": 2394, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "barPropP", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2449, - "limChar": 2474, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "barPropFuncP", - "kind": "method", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2524, - "limChar": 2556, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "getter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2599, - "limChar": 2629, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "setter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2674, - "limChar": 2698, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2751, - "limChar": 2770, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2826, - "limChar": 2848, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "getter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2901, - "limChar": 2928, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "setter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 2976, - "limChar": 2997, - "containerName": "Bar2.Bar", - "containerKind": "class" - }, - { - "name": "Bar3", - "kind": "module", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3057, - "limChar": 3083, - "containerName": "", - "containerKind": "" - }, - { - "name": "Bar4", - "kind": "module", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3087, - "limChar": 4611, - "containerName": "", - "containerKind": "" - }, - { - "name": "x", - "kind": "var", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3134, - "limChar": 3156, - "containerName": "Bar4", - "containerKind": "module" - }, - { - "name": "f", - "kind": "function", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3179, - "limChar": 3206, - "containerName": "Bar4", - "containerKind": "module" - }, - { - "name": "IFoo", - "kind": "interface", - "kindModifiers": "", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3226, - "limChar": 3506, - "containerName": "Bar4", - "containerKind": "module" - }, - { - "name": "()", - "kind": "call", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3260, - "limChar": 3278, - "containerName": "Bar4.IFoo", - "containerKind": "interface" - }, - { - "name": "new()", - "kind": "construct", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3307, - "limChar": 3320, - "containerName": "Bar4.IFoo", - "containerKind": "interface" - }, - { - "name": "[]", - "kind": "index", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3359, - "limChar": 3379, - "containerName": "Bar4.IFoo", - "containerKind": "interface" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3407, - "limChar": 3419, - "containerName": "Bar4.IFoo", - "containerKind": "interface" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3458, - "limChar": 3470, - "containerName": "Bar4.IFoo", - "containerKind": "interface" - }, - { - "name": "Blah", - "kind": "enum", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3514, - "limChar": 3594, - "containerName": "Bar4", - "containerKind": "module" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "export", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3543, - "limChar": 3550, - "containerName": "Bar4.Blah", - "containerKind": "enum" - }, - { - "name": "Bar", - "kind": "class", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3602, - "limChar": 4608, - "containerName": "Bar4", - "containerKind": "module" - }, - { - "name": "constructor", - "kind": "constructor", - "kindModifiers": "declare", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3631, - "limChar": 3665, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "barVar", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3644, - "limChar": 3663, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "barProp", - "kind": "property", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3707, - "limChar": 3730, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "barPropFunc", - "kind": "method", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3782, - "limChar": 3809, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "getter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3857, - "limChar": 3882, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "prop1", - "kind": "setter", - "kindModifiers": "public", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 3932, - "limChar": 3951, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "barPropP", - "kind": "property", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4009, - "limChar": 4034, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "barPropFuncP", - "kind": "method", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4084, - "limChar": 4113, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "getter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4159, - "limChar": 4186, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "prop1P", - "kind": "setter", - "kindModifiers": "private", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4234, - "limChar": 4255, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "foo", - "kind": "property", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4311, - "limChar": 4330, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "bar", - "kind": "method", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4386, - "limChar": 4405, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "getter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4461, - "limChar": 4485, - "containerName": "Bar4.Bar", - "containerKind": "class" - }, - { - "name": "foo2", - "kind": "setter", - "kindModifiers": "public,static", - "matchKind": "exact", - "unitIndex": 1, - "minChar": 4536, - "limChar": 4554, - "containerName": "Bar4.Bar", - "containerKind": "class" - } -]; - var baselineText = JSON.stringify(baseline, null, " "); - var resultText = JSON.stringify(result, null, " "); - assert.notNull(result); - assert.equal(79, result.length); - assert.equal(baselineText, resultText); - }); - }); -}); - diff --git a/tests/cases/unittests/services/getSignatureAtPosition.ts b/tests/cases/unittests/services/getSignatureAtPosition.ts deleted file mode 100644 index 72bbf8ba657..00000000000 --- a/tests/cases/unittests/services/getSignatureAtPosition.ts +++ /dev/null @@ -1,493 +0,0 @@ -/// - -describe('getSignatureAtPosition', function () { - var mytypescriptLS = new Harness.TypeScriptLS(); - - mytypescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/getSignatureAtPositionTest.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/getSignatureAtPositionTestEOF.ts'; - - mytypescriptLS.addFile(fileName); - mytypescriptLS.addFile(fileName2); - - var myls = mytypescriptLS.getLanguageService(); - - function singatureAtPos(line: number, col: number): Services.SignatureInfo { - return myls.languageService.getSignatureAtPosition(fileName, mytypescriptLS.lineColToPosition(fileName, line, col)); - } - - function singatureAtPos2(line: number, col: number): Services.SignatureInfo { - return myls.languageService.getSignatureAtPosition(fileName2, mytypescriptLS.lineColToPosition(fileName2, line, col)); - } - - describe('Get signatures from position', function () { - it("Comment", function () { - var result = singatureAtPos(1, 4); - assert.equal(null, result); - }); - - it("No Context", function () { - var result = singatureAtPos(2, 1); - assert.equal(null, result); - }); - - it("Construct expression", function () { - var result = singatureAtPos(3, 23); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("sampleCls", formal.name); - assert.equal(1, formal.signatureGroup.length); - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("str", formal.signatureGroup[0].parameters[0].name); - assert.equal("string", formal.signatureGroup[0].parameters[0].type); - assert.equal("num", formal.signatureGroup[0].parameters[1].name); - assert.equal("number", formal.signatureGroup[0].parameters[1].type); - assert.equal("sampleCls", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 22), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 29), actual.closeParenLimChar); - assert.equal(2, actual.parameters.length); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 23), actual.parameters[0].minChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 25), actual.parameters[0].limChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 27), actual.parameters[1].minChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 3, 28), actual.parameters[1].limChar); - - assert.equal(0, result.activeFormal); - }); - - it("Wrong context", function () { - var result = singatureAtPos(4, 11); - assert.equal(null, result); - }); - - it("Call expression", function () { - var result = singatureAtPos(7, 8); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("fnTest", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("str", formal.signatureGroup[0].parameters[0].name); - assert.equal("string", formal.signatureGroup[0].parameters[0].type); - assert.equal("num", formal.signatureGroup[0].parameters[1].name); - assert.equal("number", formal.signatureGroup[0].parameters[1].type); - assert.equal("void", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 7, 7), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 7, 9), actual.closeParenLimChar); - assert.equal(0, actual.parameters.length); - - assert.equal(-1, result.activeFormal); - }); - - it("Overloaded function", function () { - var result = singatureAtPos(11, 12); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("fnOverload", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(0, formal.signatureGroup[0].parameters.length); - assert.equal("any", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("test", formal.signatureGroup[1].parameters[0].name); - assert.equal("string", formal.signatureGroup[1].parameters[0].type); - assert.equal("any", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 11, 11), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 11, 13), actual.closeParenLimChar); - assert.equal(0, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Overloaded function 2", function () { - var result = singatureAtPos(12, 12); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("fnOverload", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(0, formal.signatureGroup[0].parameters.length); - assert.equal("any", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("test", formal.signatureGroup[1].parameters[0].name); - assert.equal("string", formal.signatureGroup[1].parameters[0].type); - assert.equal("any", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 12, 11), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 12, 15), actual.closeParenLimChar); - assert.equal(1, actual.parameters.length); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 12, 12), actual.parameters[0].minChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 12, 14), actual.parameters[0].limChar); - - assert.equal(1, result.activeFormal); - }); - - it("Overloaded construct - before open paren", function () { - var result = singatureAtPos(15, 24); - assert.equal(null, result); - }); - - it("Overloaded construct - after close paren", function () { - var result = singatureAtPos(15, 26); - assert.equal(null, result); - }); - - it("Overloaded construct", function () { - var result = singatureAtPos(15, 25); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("clsOverload", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(0, formal.signatureGroup[0].parameters.length); - assert.equal("clsOverload", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("test", formal.signatureGroup[1].parameters[0].name); - assert.equal("string", formal.signatureGroup[1].parameters[0].type); - assert.equal("clsOverload", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 15, 24), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 15, 26), actual.closeParenLimChar); - - assert.equal(0, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Overloaded construct: call second overload", function () { - var result = singatureAtPos(16, 25); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("clsOverload", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(0, formal.signatureGroup[0].parameters.length); - assert.equal("clsOverload", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("test", formal.signatureGroup[1].parameters[0].name); - assert.equal("string", formal.signatureGroup[1].parameters[0].type); - assert.equal("clsOverload", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 16, 24), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 16, 28), actual.closeParenLimChar); - - assert.equal(1, actual.parameters.length); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 16, 25), actual.parameters[0].minChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 16, 27), actual.parameters[0].limChar); - - assert.equal(1, result.activeFormal); - }); - - it("Incomplete call (with statements after the incomple call)", function () { - var result = singatureAtPos(31, 14); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("f1", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(0, formal.signatureGroup[0].parameters.length); - assert.equal("void", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 31, 13), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 34, 10), actual.closeParenLimChar); - - assert.equal(1, actual.parameters.length); - - assert.equal(-1, result.activeFormal); - }); - - it("Incomplete call 2 (inside another incomplete call)", function () { - var result = singatureAtPos(32, 14); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("f2", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(1, formal.signatureGroup[0].parameters.length); - assert.equal("n", formal.signatureGroup[0].parameters[0].name); - assert.equal("number", formal.signatureGroup[0].parameters[0].type); - assert.equal("void", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 32, 13), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 34, 10), actual.closeParenLimChar); - - assert.equal(2, actual.parameters.length); - - assert.equal(-1, result.activeFormal); - }); - - it("Incomplete call 3 (close curly after incomplete call)", function () { - var result = singatureAtPos(33, 14); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("f3", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("n", formal.signatureGroup[0].parameters[0].name); - assert.equal("number", formal.signatureGroup[0].parameters[0].type); - assert.equal("s", formal.signatureGroup[0].parameters[1].name); - assert.equal("string", formal.signatureGroup[0].parameters[1].type); - assert.equal("void", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 33, 13), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 34, 10), actual.closeParenLimChar); - - assert.equal(2, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Calling off a parameter function", function () { - var result = singatureAtPos(44, 22); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("callback", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("a", formal.signatureGroup[0].parameters[0].name); - assert.equal("number", formal.signatureGroup[0].parameters[0].type); - assert.equal("b", formal.signatureGroup[0].parameters[1].name); - assert.equal("string", formal.signatureGroup[0].parameters[1].type); - assert.equal("string", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 44, 21), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 44, 28), actual.closeParenLimChar); - - assert.equal(2, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Calling off a returned function", function () { - var result = singatureAtPos(53, 15); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("a", formal.signatureGroup[0].parameters[0].name); - assert.equal("number", formal.signatureGroup[0].parameters[0].type); - assert.equal("b", formal.signatureGroup[0].parameters[1].name); - assert.equal("string", formal.signatureGroup[0].parameters[1].type); - assert.equal("string", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 53, 14), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 53, 21), actual.closeParenLimChar); - - assert.equal(2, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Calling off a object literal property function", function () { - var result = singatureAtPos(58, 9); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("f", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("a", formal.signatureGroup[0].parameters[0].name); - assert.equal("number", formal.signatureGroup[0].parameters[0].type); - assert.equal("b", formal.signatureGroup[0].parameters[1].name); - assert.equal("string", formal.signatureGroup[0].parameters[1].type); - assert.equal("string", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 58, 8), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 58, 15), actual.closeParenLimChar); - - assert.equal(2, actual.parameters.length); - - assert.equal(0, result.activeFormal); - }); - - it("Calling off super constructor", function() { - var result = singatureAtPos(69, 19); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("base", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(1, formal.signatureGroup[0].parameters.length); - assert.equal("s", formal.signatureGroup[0].parameters[0].name); - assert.equal("string", formal.signatureGroup[0].parameters[0].type); - assert.equal("base", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("n", formal.signatureGroup[1].parameters[0].name); - assert.equal("number", formal.signatureGroup[1].parameters[0].type); - assert.equal("base", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 69, 18), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 69, 22), actual.closeParenLimChar); - - assert.equal(1, actual.parameters.length); - assert.equal(0, result.activeFormal); - }); - - it("Calling off super of super constructor", function() { - var result = singatureAtPos(79, 19); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("B2", formal.name); - assert.equal(2, formal.signatureGroup.length); - - assert.equal(1, formal.signatureGroup[0].parameters.length); - assert.equal("s", formal.signatureGroup[0].parameters[0].name); - assert.equal("string", formal.signatureGroup[0].parameters[0].type); - assert.equal("B2", formal.signatureGroup[0].returnType); - - assert.equal(1, formal.signatureGroup[1].parameters.length); - assert.equal("n", formal.signatureGroup[1].parameters[0].name); - assert.equal("number", formal.signatureGroup[1].parameters[0].type); - assert.equal("B2", formal.signatureGroup[1].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName, 79, 18), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName, 79, 22), actual.closeParenLimChar); - - assert.equal(1, actual.parameters.length); - assert.equal(0, result.activeFormal); - }); - }); - - describe('Get signatures at EOF', function () { - it("Function signature at EOF", function () { - var result = singatureAtPos2(5, 5); - assert.notNull(result); - - var formal = result.formal; - assert.notNull(formal); - - assert.equal(false, formal.isNew); - assert.equal("Foo", formal.name); - assert.equal(1, formal.signatureGroup.length); - - assert.equal(2, formal.signatureGroup[0].parameters.length); - assert.equal("arg1", formal.signatureGroup[0].parameters[0].name); - assert.equal("string", formal.signatureGroup[0].parameters[0].type); - assert.equal("arg2", formal.signatureGroup[0].parameters[1].name); - assert.equal("string", formal.signatureGroup[0].parameters[1].type); - assert.equal("void", formal.signatureGroup[0].returnType); - - var actual = result.actual; - assert.notNull(actual); - - assert.equal(mytypescriptLS.lineColToPosition(fileName2, 5, 4), actual.openParenMinChar); - assert.equal(mytypescriptLS.lineColToPosition(fileName2, 5, 5), actual.closeParenLimChar); - assert.equal(0, actual.currentParameter); - - assert.equal(1, actual.parameters.length); - - assert.equal(-1, result.activeFormal); - }); - }); -}); \ No newline at end of file diff --git a/tests/cases/unittests/services/incrementalParser.ts b/tests/cases/unittests/services/incrementalParser.ts deleted file mode 100644 index 2cb20b0c9f2..00000000000 --- a/tests/cases/unittests/services/incrementalParser.ts +++ /dev/null @@ -1,103 +0,0 @@ -/// - -module IncrementalParserTest { - export class State { - private fileName: string; - private typescriptLS: Harness.TypeScriptLS; - private ls: Services.ILanguageServiceShim; - private logger: TypeScript.BufferedLogger; - private parser: TypeScript.IncrementalParser; - private script: TypeScript.Script; - private newSourceText: TypeScript.IScriptSnapshot; - - public applyEditInRange(fileName, startLine, startCol, endLine, endCol, newText) { - this.initFileName(fileName); - - var result = this.applyIncrementalParser(startLine, startCol, endLine, endCol, newText); - if (result === null) { - var sep = "\r\n | "; - throw new Error("Incremental parser should not have bailed out:" + sep + this.logger.logContents.join(sep)); - } - - this.assertTreesAreEqual(result); - } - - public assertBailout(fileName, startLine, startCol, endLine, endCol, newText) { - this.initFileName(fileName); - var result = this.applyIncrementalParser(startLine, startCol, endLine, endCol, newText); - assert.is(result == null, "Incremental parser should have bailed out"); - } - - private applyIncrementalParser(startLine, startCol, endLine, endCol, newText): TypeScript.UpdateUnitResult { - var fileName = this.fileName; - var offset1 = this.typescriptLS.lineColToPosition(fileName, startLine, startCol); - var offset2 = this.typescriptLS.lineColToPosition(fileName, endLine, endCol); - var textEdit = new Services.TextEdit(offset1, offset2, newText); - var newContent = this.typescriptLS.applyEdits(this.typescriptLS.getScriptContent(1), [textEdit]); - this.newSourceText = new TypeScript.StringScriptSnapshot(newContent); - - var result = this.parser.attemptIncrementalUpdateUnit(this.script, fileName, this.newSourceText, - new TypeScript.TextChangeRange(TypeScript.TextSpan.fromBounds(offset1, offset2), newText.length)); - return result; - } - - private initFileName(fileName: string) { - this.fileName = fileName; - this.typescriptLS = this.createLS(fileName); - this.ls = this.typescriptLS.getLanguageService(); - this.logger = new TypeScript.BufferedLogger(); - this.parser = new TypeScript.IncrementalParser(this.logger); - this.script = this.ls.languageService.getScriptAST(fileName); - assert.notNull(this.script); - } - - private assertTreesAreEqual(result: TypeScript.UpdateUnitResult) { - assert.notNull(result); - this.parser.mergeTrees(result); - - var finalScript = result.script1; - var nonIncrementalScript = this.typescriptLS.parseSourceText(this.fileName, this.newSourceText); - - var logger1 = new TypeScript.BufferedLogger(); - var astLogger1 = new TypeScript.AstLogger(logger1); - astLogger1.logScript(finalScript); - - var logger2 = new TypeScript.BufferedLogger(); - var astLogger2 = new TypeScript.AstLogger(logger2); - astLogger2.logScript(nonIncrementalScript); - - var log1 = logger1.logContents.join("\r\n"); - var log2 = logger2.logContents.join("\r\n"); - - assert.noDiff(log1, log2); - } - - private createLS(fileName: string): Harness.TypeScriptLS { - var typescriptLS = new Harness.TypeScriptLS(); - typescriptLS.addDefaultLibrary(); - typescriptLS.addFile(fileName); - return typescriptLS; - } - } -} - -describe('incrementalParser tests', function () { - var fileName = 'tests/cases/unittests/services/testCode/incrementalParser.ts'; - var fileName2 = 'tests/cases/unittests/services/testCode/incrementalParser2.ts'; - - - describe('Incremental edits to unit', function () { - it("Simple delete inside a function should be incremental", function () { - new IncrementalParserTest.State().applyEditInRange(fileName, 10, 5, 10, 39, ""); - }); - it("Simple insert inside a function should be incremental", function () { - new IncrementalParserTest.State().applyEditInRange(fileName, 10, 5, 10, 6, "test-test-test"); - }); - }); - - describe('Bail out tests', function () { - it("Adding semicolon at end of interface function should force bailout", function () { - new IncrementalParserTest.State().assertBailout(fileName2, 4, 16, 4, 16, ";"); - }); - }); -}); \ No newline at end of file diff --git a/tests/cases/unittests/services/overridesCollector.ts b/tests/cases/unittests/services/overridesCollector.ts deleted file mode 100644 index 13251f5df66..00000000000 --- a/tests/cases/unittests/services/overridesCollector.ts +++ /dev/null @@ -1,82 +0,0 @@ -/// - -describe('overridesCollector', function () { - var typescriptLS = new Harness.TypeScriptLS(); - - typescriptLS.addDefaultLibrary(); - - var fileName = 'tests/cases/unittests/services/testCode/overridesCollector.ts'; - - typescriptLS.addFile(fileName); - - var ls = typescriptLS.getLanguageService(); - - - function getOverridesAtPos(fileName:string, line: number, col: number): Services.SymbolSet { - var pos = typescriptLS.lineColToPosition(fileName, line, col); - - var script = ls.languageService.getScriptAST(fileName); - assert.notNull(script); - - var sym = ls.languageService.getSymbolAtPosition(script, pos); - assert.notNull(sym); - - var symbolTree = ls.languageService.getSymbolTree(); - assert.notNull(symbolTree); - - var collector = new Services.OverridesCollector(symbolTree); - return collector.findMemberOverrides(sym); - } - - describe('Overrides Collector Simple Tests', function () { - it("Find method override from base class", function() { - var result = getOverridesAtPos(fileName, 3, 17); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - - it("Find method override from derived class", function() { - var result = getOverridesAtPos(fileName, 7, 17); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - - it("Find method override from derived interface", function() { - var result = getOverridesAtPos(fileName, 17, 10); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - - it("Find method override from base interface", function() { - var result = getOverridesAtPos(fileName, 14, 10); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - - it("Find interface method override from derived class", function() { - var result = getOverridesAtPos(fileName, 26, 17); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - - it("Find interface method override from base interface", function() { - var result = getOverridesAtPos(fileName, 23, 11); - assert.notNull(result); - assert.equal(2, result.getAll().length); - }); - }); - describe('Overrides Collector Complex Tests', function () { - it("Find field override in deep hierarchy", function() { - var result = getOverridesAtPos(fileName, 42, 12); - assert.notNull(result); - assert.equal(5, result.getAll().length); - }); - - it("Find method override in deep hierarchy", function() { - var result = getOverridesAtPos(fileName, 46, 13); - assert.notNull(result); - assert.equal(3, result.getAll().length); - }); - }); -}); - diff --git a/tests/cases/unittests/services/testCode/getBraceMatchingAtPosition.ts b/tests/cases/unittests/services/testCode/getBraceMatchingAtPosition.ts deleted file mode 100644 index 92be52aa947..00000000000 --- a/tests/cases/unittests/services/testCode/getBraceMatchingAtPosition.ts +++ /dev/null @@ -1,27 +0,0 @@ -module Foo { - class Bar { - private f() { - var a:any[] = [[1, 2], [3, 4], 5]; - return ((1 + 1)); - } - - private f2() { - if(true) { }{ }; - } - } -} - - -// { } -// ( ) -// [ ] -// < > - -class TemplateTest { - public foo(a, b) { - return a; - } - public bar(a, b) { - return a < b || a > b; - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition1.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition1.ts deleted file mode 100644 index 41e46ea0628..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition1.ts +++ /dev/null @@ -1,23 +0,0 @@ -module Foo { var testing = ""; test } - -class C1 { - public pubMeth() {this.} // test on 'this.' - private privMeth() {} - public pubProp = 0; - private privProp = 0; -} - -var f = new C1(); -f. // test on F. -module M { - export class C { public pub = 0; private priv = 1; } - export var V = 0; -} - - -var c = new M.C(); - -c. // test on c. - -//Test for comment -//c. \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition10.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition10.ts deleted file mode 100644 index 478027ee2ca..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition10.ts +++ /dev/null @@ -1,5 +0,0 @@ -module Test10 -{ - var x: string[] = []; - x.forEach(function(y) { y. }); -} diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition2.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition2.ts deleted file mode 100644 index 9cad47b6d6e..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition2.ts +++ /dev/null @@ -1,12 +0,0 @@ -module Foo { - export class Bar { - - } - - - export module Blah { - - } -} - -var x:Foo. diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition3.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition3.ts deleted file mode 100644 index d1416fad86f..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition3.ts +++ /dev/null @@ -1,2 +0,0 @@ -// -var \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition4.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition4.ts deleted file mode 100644 index 56150d40069..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition4.ts +++ /dev/null @@ -1,4 +0,0 @@ -class -{ - -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition5.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition5.ts deleted file mode 100644 index a5a89ed024d..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition5.ts +++ /dev/null @@ -1,3 +0,0 @@ -module -{ -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition6.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition6.ts deleted file mode 100644 index 29a9a9d3b14..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition6.ts +++ /dev/null @@ -1 +0,0 @@ -interface \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition7.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition7.ts deleted file mode 100644 index fe6292bfdbb..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition7.ts +++ /dev/null @@ -1 +0,0 @@ -function \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition8.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition8.ts deleted file mode 100644 index 5109df29b73..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition8.ts +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPosition9.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPosition9.ts deleted file mode 100644 index 37369dc33fb..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPosition9.ts +++ /dev/null @@ -1,10 +0,0 @@ -module Bar -{ - export class Bleah { - } - export class Foo extends Bleah { - } -} - -function Blah(x:Bar.Bleah) { -} diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPositionAfterEdits.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPositionAfterEdits.ts deleted file mode 100644 index 9cc47b34ee6..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPositionAfterEdits.ts +++ /dev/null @@ -1,8 +0,0 @@ -module Test1 { - class Person { - children: string[]; - constructor (public name:string, children:string[]) { - - } - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPositionBugFixes.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPositionBugFixes.ts deleted file mode 100644 index 08d056b6b6e..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPositionBugFixes.ts +++ /dev/null @@ -1,16 +0,0 @@ -module BugFixes { - enum Foo { - bar, - baz - } - - var f: Foo = Foo./*here*/; - - import foo f = Foo; - foo./*here*/; -} - -module BugFix2 { - interface iFace { (event: string); } - var foo: iFace = function (elem) { /*here*/ } -} diff --git a/tests/cases/unittests/services/testCode/getCompletionsAtPositionObjectLiterals.ts b/tests/cases/unittests/services/testCode/getCompletionsAtPositionObjectLiterals.ts deleted file mode 100644 index d127a8a34bd..00000000000 --- a/tests/cases/unittests/services/testCode/getCompletionsAtPositionObjectLiterals.ts +++ /dev/null @@ -1,33 +0,0 @@ -module ObjectLiterals { - interface MyPoint { - x1: number; - y1: number; - } - - var p1: MyPoint = { - /*here*/ - }; - - var p2: MyPoint = { - x1: 5, - /*here*/ - }; - - var p3: MyPoint = { - x1 /*here*/ - }; - - var p4: MyPoint = { - x1: 5, - y1 /*here*/ : 6 - }; - - // Negative cases (global completion) - var n4: MyPoint = { - x1: /*here*/ - }; - - var n2: MyPoint = { - x1: /*here*/, - }; -} diff --git a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition.ts b/tests/cases/unittests/services/testCode/getDefinitionsAtPosition.ts deleted file mode 100644 index 5228083a667..00000000000 --- a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition.ts +++ /dev/null @@ -1,91 +0,0 @@ -/// -var locVar; -function locFn() { } -class locCls { } -interface locInt{ } -module locMod{ export var foo = 1;} - -locVar = 1; -locFn(); -var foo = new locCls(); -class fooCls implements locInt { } -var fooVar = locMod.foo; - -remVar = 1; -remFn(); -var remfoo = new remCls(); -class remfooCls implements remInt { } -var remfooVar = remMod.foo; - -rem2Var = 1; -rem2Fn(); -var rem2foo = new rem2Cls(); -class rem2fooCls implements rem2Int { } -var rem2fooVar = rem2Mod.foo; - -var shdVar = "foo"; -module shdModule { - var shdVar; - shdVar = 1; -} - -function fnOverload( ); -function fnOverload(foo: string); -function fnOverload(foo: any) { }; - -fnOverload(); -fnOverload("test"); - -class clsOverload { - constructor (); - constructor (foo: string); - constructor (foo: any) { } -}; - -var clsOverloadVar = new clsOverload(); -clsOverloadVar = new clsOverload("test"); - -class clsInOverload { - static fnOverload( ); - static fnOverload(foo: string); - static fnOverload(foo: any) { }; - public fnOverload():any; - public fnOverload(foo: string); - public fnOverload(foo: any) { return "foo" }; - public fnOverload1():any; - public fnOverload1(foo: string); - public fnOverload1(foo: any) { return "foo" }; - - constructor () { } -} - -clsInOverload.fnOverload(); -clsInOverload.fnOverload("test"); - -var clsInOverloadVar = new clsInOverload(); -var foo3 = clsInOverloadVar.fnOverload(); -foo3 = clsInOverloadVar.fnOverload("test"); - -function fnInOverload() { - static fnOverload():any; - static fnOverload(foo: string); - static fnOverload(foo: any){ return "foo" }; -} - -fnInOverload.fnOverload(); -fnInOverload.fnOverload("test"); - -interface sInt { - sVar: number; - sFn: () => void; -} - -class iClass implements sInt { - public sVar = 1; - public sFn() { - } -} - -declare var ambientVar; - -ambientVar = 1; \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition2.ts b/tests/cases/unittests/services/testCode/getDefinitionsAtPosition2.ts deleted file mode 100644 index ebee920b984..00000000000 --- a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition2.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -var remVar; -function remFn() { } -class remCls { } -interface remInt{ } -module remMod{ export var foo;} diff --git a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition3.ts b/tests/cases/unittests/services/testCode/getDefinitionsAtPosition3.ts deleted file mode 100644 index 23005628529..00000000000 --- a/tests/cases/unittests/services/testCode/getDefinitionsAtPosition3.ts +++ /dev/null @@ -1,5 +0,0 @@ -var rem2Var; -function rem2Fn() { } -class rem2Cls { } -interface rem2Int{ } -module rem2Mod{ export var foo; } diff --git a/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface1.ts b/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface1.ts deleted file mode 100644 index f251b2c5b0a..00000000000 --- a/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface1.ts +++ /dev/null @@ -1,5 +0,0 @@ -module A { - export interface IA { - y: string; - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface2.ts b/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface2.ts deleted file mode 100644 index 39a1e7fbf46..00000000000 --- a/tests/cases/unittests/services/testCode/getDefinitionsAtPositionPartialInterface2.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -module A { - export interface IA { - x: number; - } - - var x: IA; -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getImplementorsAtPosition.ts b/tests/cases/unittests/services/testCode/getImplementorsAtPosition.ts deleted file mode 100644 index 1791e1395f4..00000000000 --- a/tests/cases/unittests/services/testCode/getImplementorsAtPosition.ts +++ /dev/null @@ -1,57 +0,0 @@ -module SimpleClassTest { - class Foo { - public foo(): void { - } - } - class Bar extends Foo { - public foo(): void { - } - } -} - -module SimpleInterfaceTest { - interface IFoo { - foo(): void; - } - interface IBar extends IFoo { - foo(): void; - } -} - -module SimpleClassInterfaceTest { - interface IFoo { - foo(): void; - } - class Bar implements IFoo { - public foo(): void { - } - } -} - -module Test { - interface IBase { - field: string; - method(): void; - } - - interface IBlah extends IBase { - field: string; - } - - interface IBlah2 extends IBlah { - field: string; - } - - interface IDerived extends IBlah2 { - method(): void; - } - - class Bar implements IDerived { - public field: string; - public method(): void { } - } - - class BarBlah extends Bar { - public field: string; - } -} diff --git a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest.ts b/tests/cases/unittests/services/testCode/getReferencesAtPositionTest.ts deleted file mode 100644 index 4014f438809..00000000000 --- a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest.ts +++ /dev/null @@ -1,117 +0,0 @@ -/// -// Comment Refence Test: globalVar -var globalVar: number = 2; - -class fooCls { - static clsSVar = 1; - //Declare - clsVar = 1; - - constructor (public clsParam: number) { - //Increments - globalVar++; - this.clsVar++; - fooCls.clsSVar++; - this.clsParam++; - modTest.modVar++; - } -} - -function foo(x: number) { - //Declare - var fnVar = 1; - - //Increments - fooCls.clsSVar++; - globalVar++; - modTest.modVar++; - fnVar++; - - //Return - return x++; -} - -module modTest { - //Declare - export var modVar:number; - - //Increments - globalVar++; - fooCls.clsSVar++; - modVar++; - - class testCls { - static boo = foo; - } - - function testFn(){ - static boo = foo; - - //Increments - globalVar++; - fooCls.clsSVar++; - modVar++; - } - - module testMod { - var boo = foo; - } -} - -//Type test -var clsTest: fooCls; - -//Arguments -clsTest = new fooCls(globalVar); -foo(globalVar); - -//Increments -fooCls.clsSVar++; -modTest.modVar++; -globalVar = globalVar + globalVar; - -//ETC - Other cases -globalVar = 3; -foo = foo + 1; -err = err++; - -//Shadowed fn Parameter -function shdw(globalVar: number) { - //Increments - globalVar++; - return globalVar; -} - -//Remotes -//Type test -var remoteclsTest: remotefooCls; - -//Arguments -remoteclsTest = new remotefooCls(remoteglobalVar); -remotefoo(remoteglobalVar); - -//Increments -remotefooCls.remoteclsSVar++; -remotemodTest.remotemodVar++; -remoteglobalVar = remoteglobalVar + remoteglobalVar; - -//ETC - Other cases -remoteglobalVar = 3; - -//Find References misses method param -var - - - - array = ["f", "o", "o"]; - -array.forEach( - - -function(str) { - - - - return str + " "; - -}); diff --git a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest2.ts b/tests/cases/unittests/services/testCode/getReferencesAtPositionTest2.ts deleted file mode 100644 index 67aa438a639..00000000000 --- a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest2.ts +++ /dev/null @@ -1,59 +0,0 @@ -var remoteglobalVar: number = 2; - -class remotefooCls { - //Declare - remoteclsVar = 1; - static remoteclsSVar = 1; - - constructor (public remoteclsParam: number) { - //Increments - remoteglobalVar++; - this.remoteclsVar++; - remotefooCls.remoteclsSVar++; - this.remoteclsParam++; - remotemodTest.remotemodVar++; - } -} - -function remotefoo(remotex: number) { - //Declare - var remotefnVar = 1; - - //Increments - remotefooCls.remoteclsSVar++; - remoteglobalVar++; - remotemodTest.remotemodVar++; - remotefnVar++; - - //Return - return remotex++; -} - -module remotemodTest { - //Declare - export var remotemodVar:number; - - //Increments - remoteglobalVar++; - remotefooCls.remoteclsSVar++; - remotemodVar++; - - class remotetestCls { - static remoteboo = remotefoo; - } - - function remotetestFn(){ - static remoteboo = remotefoo; - - //Increments - remoteglobalVar++; - remotefooCls.remoteclsSVar++; - remotemodVar++; - } - - module remotetestMod { - var remoteboo = remotefoo; - } -} - - diff --git a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest3.ts b/tests/cases/unittests/services/testCode/getReferencesAtPositionTest3.ts deleted file mode 100644 index 4dd668b29b1..00000000000 --- a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest3.ts +++ /dev/null @@ -1,70 +0,0 @@ -module FindRef3 { - module SimpleClassTest { - export class Foo { - public foo(): void { - } - } - export class Bar extends Foo { - public foo(): void { - } - } - } - - module SimpleInterfaceTest { - export interface IFoo { - foo(): void; - } - export interface IBar extends IFoo { - foo(): void; - } - } - - module SimpleClassInterfaceTest { - export interface IFoo { - foo(): void; - } - export class Bar implements IFoo { - public foo(): void { - } - } - } - - module Test { - export interface IBase { - field: string; - method(): void; - } - - export interface IBlah extends IBase { - field: string; - } - - export interface IBlah2 extends IBlah { - field: string; - } - - export interface IDerived extends IBlah2 { - method(): void; - } - - export class Bar implements IDerived { - public field: string; - public method(): void { } - } - - export class BarBlah extends Bar { - public field: string; - } - } - - function test() { - var x = new SimpleClassTest.Bar(); - x.foo(); - - var y: SimpleInterfaceTest.IBar = null; - y.foo(); - - var z = new Test.BarBlah(); - z.field = ""; - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest4.ts b/tests/cases/unittests/services/testCode/getReferencesAtPositionTest4.ts deleted file mode 100644 index 4f705e721e8..00000000000 --- a/tests/cases/unittests/services/testCode/getReferencesAtPositionTest4.ts +++ /dev/null @@ -1,28 +0,0 @@ -module FindRef4 { - module MixedStaticsClassTest { - export class Foo { - bar: Foo; - static bar: Foo; - - public foo(): void { - } - public static foo(): void { - } - } - } - - function test() { - // instance function - var x = new MixedStaticsClassTest.Foo(); - x.foo(); - x.bar; - - var y = new MixedStaticsClassTest.Foo(); - y.foo(); - y.bar; - - // static function - MixedStaticsClassTest.Foo.foo(); - MixedStaticsClassTest.Foo.bar; - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getScriptLexicalStructure.ts b/tests/cases/unittests/services/testCode/getScriptLexicalStructure.ts deleted file mode 100644 index afac9249cc0..00000000000 --- a/tests/cases/unittests/services/testCode/getScriptLexicalStructure.ts +++ /dev/null @@ -1,112 +0,0 @@ -module Bar { // Module - var x: number; // Variable - function f(): void { } // Function - - interface IFoo { - (i: number): IFoo; // CallSignature - new (): IFoo; // ConstructSignature - [i: number]: number; // IndexSignature - foo: number; // PropertySignature - bar(): void; // FunctionSignature - } - - enum Blah { - foo = 2 // EnumMemberDeclaration - } - - class Bar { - constructor(private barVar: Bar) { } // ConstructorImplementation - - public barProp: number; // MemberVariableDeclaration - public barPropFunc(): void { } // MemberFunctionDeclaration - public get prop1(): void { } // MemberAccessorDeclaration - public set prop1() { } // MemberAccessorDeclaration - - private barPropP: number; // MemberVariableDeclaration - private barPropFuncP(): void { } // MemberFunctionDeclaration - private get prop1P(): void { } // MemberAccessorDeclaration - private set prop1P() { } // MemberAccessorDeclaration - - static foo: number; // StaticVariableDeclaration - static bar(): void { } // StaticFunctionDeclaration - static get foo2(): void { } // StaticAccessorDeclaration - static set foo2() { } // StaticAccessorDeclaration - } -} - -module Bar2 { // Module - export var x: number; // Variable - export function f(): void { } // Function - - export interface IFoo { - (i: number): IFoo; // CallSignature - new (): IFoo; // ConstructSignature - [i: number]: number; // IndexSignature - foo: number; // PropertySignature - bar(): void; // FunctionSignature - } - - export enum Blah { - foo = 2 // EnumMemberDeclaration - } - - export class Bar { - constructor(private barVar: Bar) { } // ConstructorImplementation - - public barProp: number; // MemberVariableDeclaration - public barPropFunc(): void { } // MemberFunctionDeclaration - public get prop1(): void { } // MemberAccessorDeclaration - public set prop1() { } // MemberAccessorDeclaration - - private barPropP: number; // MemberVariableDeclaration - private barPropFuncP(): void { } // MemberFunctionDeclaration - private get prop1P(): void { } // MemberAccessorDeclaration - private set prop1P() { } // MemberAccessorDeclaration - - static foo: number; // StaticVariableDeclaration - static bar(): void { } // StaticFunctionDeclaration - static get foo2(): void { } // StaticAccessorDeclaration - static set foo2() { } // StaticAccessorDeclaration - } -} - - -declare module Bar3 { - -} - -module Bar4 { // Module - declare var x: number; // Variable - declare function f(): void; // Function - - declare interface IFoo { - (i: number): IFoo; // CallSignature - new (): IFoo; // ConstructSignature - [i: number]: number; // IndexSignature - foo: number; // PropertySignature - bar(): void; // FunctionSignature - } - - declare enum Blah { - foo = 2 // EnumMemberDeclaration - } - - declare class Bar { - constructor (private barVar: Bar); // ConstructorImplementation - - public barProp: number; // MemberVariableDeclaration - public barPropFunc(): void; // MemberFunctionDeclaration - public get prop1(): void; // MemberAccessorDeclaration - public set prop1(); // MemberAccessorDeclaration - - private barPropP: number; // MemberVariableDeclaration - private barPropFuncP(): void; // MemberFunctionDeclaration - private get prop1P(): void; // MemberAccessorDeclaration - private set prop1P(); // MemberAccessorDeclaration - - static foo: number; // StaticVariableDeclaration - static bar(): void; // StaticFunctionDeclaration - static get foo2(): void; // StaticAccessorDeclaration - static set foo2(); // StaticAccessorDeclaration - } -} diff --git a/tests/cases/unittests/services/testCode/getSignatureAtPositionTest.ts b/tests/cases/unittests/services/testCode/getSignatureAtPositionTest.ts deleted file mode 100644 index 882216cb88d..00000000000 --- a/tests/cases/unittests/services/testCode/getSignatureAtPositionTest.ts +++ /dev/null @@ -1,85 +0,0 @@ -//Comment -class sampleCls { constructor (str: string, num: number) { } } -var x = new sampleCls("", 5); // new() test -sampleCls(); // negative test - -function fnTest(str: string, num: number) { } -fnTest(); // simple function test - -function fnOverload(); -function fnOverload(test: string); function fnOverload(test: string) { } -fnOverload() -fnOverload("") - -class clsOverload { constructor (); constructor (test: string); constructor (test?: string) { } } -var x = new clsOverload(); -var x = new clsOverload(""); - -module SimpleTests { - module CallExpressions { - class Foo { - public f1() { } - public f2(n: number) { } - public f3(n: number, s: string) { } - - } - - var x = new Foo(); - x.f1(); - x.f2(5); - x.f3(5, ""); - x.f1( - x.f2(5, - x.f3(5, - } - - module NewExpressions { - - } -} - -module OverloadTests { - module CallExpressions { - function foo(callback: (a: number, b: string) => string) { - callback(5, ""); - } - } -} - -module AnonymousFunctionTest { - var x2 = function (n: number, s: string): (a: number, b: string) => string { - return null; - } - x2(5, "")(1, ""); -} - -module ObjectLiteralTest { - var x = { n: 5, s: "", f: (a: number, b: string) => "" }; - x.f(4, ""); -} - -module SuperCallTest { - class base { - constructor(s: string); - constructor(n: number); - constructor(a: any) { } - } - class A extends base { - constructor() { - super(""); - } - } - - class B extends base { - } - class B2 extends B { - } - class B3 extends B2 { - constructor() { - super(""); - } - } - -} - - diff --git a/tests/cases/unittests/services/testCode/getSignatureAtPositionTestEOF.ts b/tests/cases/unittests/services/testCode/getSignatureAtPositionTestEOF.ts deleted file mode 100644 index 562fd566ce2..00000000000 --- a/tests/cases/unittests/services/testCode/getSignatureAtPositionTestEOF.ts +++ /dev/null @@ -1,5 +0,0 @@ -function Foo(arg1: string, arg2: string) { - -} - -Foo( \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber.ts b/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber.ts deleted file mode 100644 index 2649484f465..00000000000 --- a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber.ts +++ /dev/null @@ -1,132 +0,0 @@ -module Foo { - - class Bar { - - private foo:string = ""; - - private f() { - var a:any[] = [[1, 2], [3, 4], 5]; - - return ((1 + 1)); - } - - private f2() { - if(true) { }{ }; - } - } - - interface Foo { - - x:number; - - foo():number; - - } - - module Foo2 { - - function f() { - } - - var x: number; - - } - - enum Foo3 { - - val1, - - val2, - - } - -} - -function foo(bar, - blah, - -); - - -function test() { - for (var i = 0; i < 10; i++) { - - } - - for (var e in foo.bar) { - - } - - with (foo.bar) { - - } - - switch(foo.bar) { - - } - - switch (foo.bar) { - - case 1: - - break; - - } - -} - -function tryCatch() { - - try { - - } - - catch(err) { - - } - -} - - -function tryFinally() { - - try { - - } - - finally { - - } - -} - -function tryCatchFinally() { - - try { - - } - - catch(err) { - - } - - finally { - - } - -} - - -module SwitchTest { - var a = 3; - - if (a == 5) { - switch (a) { - case 1: - if (a == 5) { - - } - break; - } - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber2.ts b/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber2.ts deleted file mode 100644 index d4ab3136565..00000000000 --- a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber2.ts +++ /dev/null @@ -1,8 +0,0 @@ -// -// Note: Do not add more tests at the end of this file, as -// the purpose of this test is to verity smart indent -// works for unterminated function arguments at the end of a file. -// - -function foo(a, - diff --git a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber3.ts b/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber3.ts deleted file mode 100644 index 8122651914b..00000000000 --- a/tests/cases/unittests/services/testCode/getSmartIndentAtLineNumber3.ts +++ /dev/null @@ -1,6 +0,0 @@ -// -// Note: Do not add more tests at the end of this file, as -// the purpose of this test is to verity smart indent -// works for unterminated if statements at the end of a file. -// -if (true) diff --git a/tests/cases/unittests/services/testCode/incrementalParser.ts b/tests/cases/unittests/services/testCode/incrementalParser.ts deleted file mode 100644 index f5290476b80..00000000000 --- a/tests/cases/unittests/services/testCode/incrementalParser.ts +++ /dev/null @@ -1,24 +0,0 @@ -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds -// djf dasjkfh asdkfjhsa dfjhgsdfhjdfg dasfg asdjfhg asdfjga sfjhgdf jhfg asfsadfhg afjh gfjds - -function tryCatchFinally() { - addsdfsdafsdafsdfdsfdsfsfsaafdsddfsdaf; - try { - - } - - catch(err) { - - } - - finally { - - } - -} - diff --git a/tests/cases/unittests/services/testCode/incrementalParser2.ts b/tests/cases/unittests/services/testCode/incrementalParser2.ts deleted file mode 100644 index 86ec00ebd65..00000000000 --- a/tests/cases/unittests/services/testCode/incrementalParser2.ts +++ /dev/null @@ -1,5 +0,0 @@ -interface bah { - (y: number); - x: number; - (z: string) -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/overridesCollector.ts b/tests/cases/unittests/services/testCode/overridesCollector.ts deleted file mode 100644 index 1791e1395f4..00000000000 --- a/tests/cases/unittests/services/testCode/overridesCollector.ts +++ /dev/null @@ -1,57 +0,0 @@ -module SimpleClassTest { - class Foo { - public foo(): void { - } - } - class Bar extends Foo { - public foo(): void { - } - } -} - -module SimpleInterfaceTest { - interface IFoo { - foo(): void; - } - interface IBar extends IFoo { - foo(): void; - } -} - -module SimpleClassInterfaceTest { - interface IFoo { - foo(): void; - } - class Bar implements IFoo { - public foo(): void { - } - } -} - -module Test { - interface IBase { - field: string; - method(): void; - } - - interface IBlah extends IBase { - field: string; - } - - interface IBlah2 extends IBlah { - field: string; - } - - interface IDerived extends IBlah2 { - method(): void; - } - - class Bar implements IDerived { - public field: string; - public method(): void { } - } - - class BarBlah extends Bar { - public field: string; - } -} diff --git a/tests/cases/unittests/services/testCode/references/classLocal.ts b/tests/cases/unittests/services/testCode/references/classLocal.ts deleted file mode 100644 index 34eda48baee..00000000000 --- a/tests/cases/unittests/services/testCode/references/classLocal.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Local inside a class - -var n = 14; - -class foo { - private ^^[|n|] = 0; - - public bar() { - this.[|n|] = 9; - } - - constructor() { - this.[|n|]^^ = 4; - } - - public bar2() { - var n = 12; - } -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/classParameter.ts b/tests/cases/unittests/services/testCode/references/classParameter.ts deleted file mode 100644 index fad418de765..00000000000 --- a/tests/cases/unittests/services/testCode/references/classParameter.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Reference to a class parameter - -var p = 2; - -class p { } - -class foo { - constructor (public p: any) { - } - - public f(p) { - this.^^[|p|] = p; - } - -} - -var n = new foo(undefined); -n.^^[|p|] = null; \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/comment.ts b/tests/cases/unittests/services/testCode/references/comment.ts deleted file mode 100644 index e6b8edaa015..00000000000 --- a/tests/cases/unittests/services/testCode/references/comment.ts +++ /dev/null @@ -1,4 +0,0 @@ -// References to ^^foo or b^^ar -/* in comments should not find fo^^o or bar^^ */ -class foo { } -var bar = 0; \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/functionOverloads.ts b/tests/cases/unittests/services/testCode/references/functionOverloads.ts deleted file mode 100644 index d382f8818fa..00000000000 --- a/tests/cases/unittests/services/testCode/references/functionOverloads.ts +++ /dev/null @@ -1,6 +0,0 @@ -// function overloads should be highlighted together - -function [|^^foo|](x: string); -function [|^^foo|](x: string, y: number) { - [|^^foo|]('', 43); -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/functionParameter.ts b/tests/cases/unittests/services/testCode/references/functionParameter.ts deleted file mode 100644 index 67f63c35e72..00000000000 --- a/tests/cases/unittests/services/testCode/references/functionParameter.ts +++ /dev/null @@ -1,7 +0,0 @@ -var x; -var n; - -function n(x: number, [|n|]^^: number) { - ^^[|n|] = 32; - x = [|n|]; -} \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/globals.ts b/tests/cases/unittests/services/testCode/references/globals.ts deleted file mode 100644 index 1ebef4e885e..00000000000 --- a/tests/cases/unittests/services/testCode/references/globals.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Global variable reference - -var ^^global = 2; - -class foo { - constructor (public global) { } - public f(global) { } - public f2(global) { } -} - -class bar { - constructor () { - var n = [|global|]; - - var f = new foo(''); - f.global = ''; - } -} - -var k = [|global|]; - -================ -var m = [|global|]; \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/illegalAssignment1.ts b/tests/cases/unittests/services/testCode/references/illegalAssignment1.ts deleted file mode 100644 index d1837f12555..00000000000 --- a/tests/cases/unittests/services/testCode/references/illegalAssignment1.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Neither should cause highlighting to occur -f^^oo = fo^^o; diff --git a/tests/cases/unittests/services/testCode/references/illegalAssignment2.ts b/tests/cases/unittests/services/testCode/references/illegalAssignment2.ts deleted file mode 100644 index 7ea1545517e..00000000000 --- a/tests/cases/unittests/services/testCode/references/illegalAssignment2.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Should still highlight even though it's invalid assignment -var ^^[|foo|] = function() { }; - -[|fo^^o|] = [|f^^oo|] + 1; \ No newline at end of file diff --git a/tests/cases/unittests/services/testCode/references/noContext.ts b/tests/cases/unittests/services/testCode/references/noContext.ts deleted file mode 100644 index fd1ef87c783..00000000000 --- a/tests/cases/unittests/services/testCode/references/noContext.ts +++ /dev/null @@ -1,20 +0,0 @@ -module modTest { - //Declare - export var modVar:number; - ^^ - - //Increments - modVar++; - - class testCls{ - ^^ - } - - function testFn(){ - //Increments - modVar++; - } ^^ -^^ - module testMod { - } -} diff --git a/tests/cases/unittests/services/testCode/references/referenceToClass.ts b/tests/cases/unittests/services/testCode/references/referenceToClass.ts deleted file mode 100644 index 28c6ca509db..00000000000 --- a/tests/cases/unittests/services/testCode/references/referenceToClass.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Class references should work across file and not find local variables -class [|foo|]^^ { - public n: ^^[|foo|]; - public foo: number; -} - -class bar { - public n: [|f^^o^^o|]; - public k = new [|foo|](); -} - -module mod { - var k: [|foo|] = null; -} - -=================== -var k: ^^[|foo|]; diff --git a/tests/cases/unittests/services/testCode/references/static.ts b/tests/cases/unittests/services/testCode/references/static.ts deleted file mode 100644 index 68fa11cd4a5..00000000000 --- a/tests/cases/unittests/services/testCode/references/static.ts +++ /dev/null @@ -1,28 +0,0 @@ -// reference a class static - -var n = 43; - -class foo { - static [|n|] = ''; - - public bar() { - foo.^^[|n|] = "'"; - if(foo.[|n|]) { - var x = foo.[|n|]; - } - } -} - -class foo2 { - private x = foo.[|n|]^^; - constructor() { - foo.^^[|n|] = x; - } - - function b(n) { - n = foo.[|n|]; - } -} - -================= -var q = foo.[|n|]; \ No newline at end of file From d502ae20e5da7b9cdb0c9463088b715e17aa6153 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 22:35:27 -0700 Subject: [PATCH 010/106] move formatting unit tests to a diffrent folder --- .../{ls => services}/documentRegistry.ts | 0 .../documentFormattingTests.json | 0 .../{ => formatting}/formatDiffTemplate.html | 0 .../getFormattingEditsForRange.ts | 0 .../getSmartIndentAtLineNumber.ts | 0 .../importedJavaScriptFormatting.ts | 0 .../{ => formatting}/ruleFormattingTests.json | 0 .../testCode/formatting/classes.ts | 0 .../testCode/formatting/classesBaseline.ts | 0 .../testCode/formatting/colonAndQMark.ts | 0 .../formatting/colonAndQMarkBaseline.ts | 0 .../formatting/documentReadyFunction.ts | 0 .../documentReadyFunctionBaseLine.ts | 0 .../testCode/formatting/emptyBlock.ts | 0 .../testCode/formatting/emptyBlockBaseline.ts | 0 .../formatting/emptyInterfaceLiteral.ts | 0 .../emptyInterfaceLiteralBaseLine.ts | 0 .../testCode/formatting/fatArrowFunctions.ts | 0 .../formatting/fatArrowFunctionsBaseline.ts | 0 .../formatting/formatDebuggerStatement.ts | 0 .../formatDebuggerStatementBaseline.ts | 0 .../formatvariableDeclarationList.ts | 0 .../formatvariableDeclarationListBaseline.ts | 0 .../testCode/formatting/implicitModule.ts | 0 .../formatting/implicitModuleBaseline.ts | 0 .../testCode/formatting/importDeclaration.ts | 0 .../formatting/importDeclarationBaseline.ts | 0 .../testCode/formatting/main.ts | 0 .../testCode/formatting/mainBaseline.ts | 0 .../testCode/formatting/moduleIndentation.ts | 0 .../formatting/moduleIndentationBaseline.ts | 0 .../testCode/formatting/modules.ts | 0 .../testCode/formatting/modulesBaseline.ts | 0 .../testCode/formatting/objectLiteral.ts | 0 .../formatting/objectLiteralBaseline.ts | 0 .../testCode/formatting/onClosingBracket.ts | 0 .../formatting/onClosingBracketBaseLine.ts | 0 .../testCode/formatting/onSemiColon.ts | 0 .../formatting/onSemiColonBaseline.ts | 0 .../formatting/spaceAfterConstructor.ts | 0 .../spaceAfterConstructorBaseline.ts | 0 .../testCode/formatting/tabAfterCloseCurly.ts | 0 .../formatting/tabAfterCloseCurlyBaseline.ts | 0 .../formatting/typescriptConstructs.ts | 0 .../typescriptConstructsBaseline.ts | 0 .../testCode/formatting/various.ts | 0 .../testCode/formatting/variousBaseline.ts | 0 .../testCode/formatting/withStatement.ts | 0 .../formatting/withStatementBaseline.ts | 0 .../testCode/testCode/formatting/classes.ts | 79 ++++++++++++ .../testCode/formatting/classesBaseline.ts | 79 ++++++++++++ .../testCode/formatting/colonAndQMark.ts | 4 + .../formatting/colonAndQMarkBaseline.ts | 4 + .../formatting/documentReadyFunction.ts | 3 + .../documentReadyFunctionBaseLine.ts | 3 + .../testCode/formatting/emptyBlock.ts | 1 + .../testCode/formatting/emptyBlockBaseline.ts | 1 + .../formatting/emptyInterfaceLiteral.ts | 10 ++ .../emptyInterfaceLiteralBaseLine.ts | 10 ++ .../testCode/formatting/fatArrowFunctions.ts | 112 ++++++++++++++++++ .../formatting/fatArrowFunctionsBaseline.ts | 112 ++++++++++++++++++ .../formatting/formatDebuggerStatement.ts | 2 + .../formatDebuggerStatementBaseline.ts | 2 + .../formatvariableDeclarationList.ts | 13 ++ .../formatvariableDeclarationListBaseline.ts | 13 ++ .../testCode/formatting/implicitModule.ts | 3 + .../formatting/implicitModuleBaseline.ts | 3 + .../testCode/formatting/importDeclaration.ts | 6 + .../formatting/importDeclarationBaseline.ts | 6 + .../testCode/testCode/formatting/main.ts | 95 +++++++++++++++ .../testCode/formatting/mainBaseline.ts | 98 +++++++++++++++ .../testCode/formatting/moduleIndentation.ts | 3 + .../formatting/moduleIndentationBaseline.ts | 3 + .../testCode/testCode/formatting/modules.ts | 76 ++++++++++++ .../testCode/formatting/modulesBaseline.ts | 76 ++++++++++++ .../testCode/formatting/objectLiteral.ts | 27 +++++ .../formatting/objectLiteralBaseline.ts | 31 +++++ .../testCode/formatting/onClosingBracket.ts | 32 +++++ .../formatting/onClosingBracketBaseLine.ts | 28 +++++ .../testCode/formatting/onSemiColon.ts | 1 + .../formatting/onSemiColonBaseline.ts | 1 + .../formatting/spaceAfterConstructor.ts | 1 + .../spaceAfterConstructorBaseline.ts | 1 + .../testCode/formatting/tabAfterCloseCurly.ts | 10 ++ .../formatting/tabAfterCloseCurlyBaseline.ts | 9 ++ .../formatting/typescriptConstructs.ts | 65 ++++++++++ .../typescriptConstructsBaseline.ts | 58 +++++++++ .../testCode/testCode/formatting/various.ts | 17 +++ .../testCode/formatting/variousBaseline.ts | 17 +++ .../testCode/formatting/withStatement.ts | 9 ++ .../formatting/withStatementBaseline.ts | 6 + 91 files changed, 1130 insertions(+) rename tests/cases/unittests/{ls => services}/documentRegistry.ts (100%) rename tests/cases/unittests/services/{ => formatting}/documentFormattingTests.json (100%) rename tests/cases/unittests/services/{ => formatting}/formatDiffTemplate.html (100%) rename tests/cases/unittests/services/{ => formatting}/getFormattingEditsForRange.ts (100%) rename tests/cases/unittests/services/{ => formatting}/getSmartIndentAtLineNumber.ts (100%) rename tests/cases/unittests/services/{ => formatting}/importedJavaScriptFormatting.ts (100%) rename tests/cases/unittests/services/{ => formatting}/ruleFormattingTests.json (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/classes.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/classesBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/colonAndQMark.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/colonAndQMarkBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/documentReadyFunction.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/documentReadyFunctionBaseLine.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/emptyBlock.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/emptyBlockBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/emptyInterfaceLiteral.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/emptyInterfaceLiteralBaseLine.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/fatArrowFunctions.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/fatArrowFunctionsBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/formatDebuggerStatement.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/formatDebuggerStatementBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/formatvariableDeclarationList.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/formatvariableDeclarationListBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/implicitModule.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/implicitModuleBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/importDeclaration.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/importDeclarationBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/main.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/mainBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/moduleIndentation.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/moduleIndentationBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/modules.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/modulesBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/objectLiteral.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/objectLiteralBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/onClosingBracket.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/onClosingBracketBaseLine.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/onSemiColon.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/onSemiColonBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/spaceAfterConstructor.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/spaceAfterConstructorBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/tabAfterCloseCurly.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/tabAfterCloseCurlyBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/typescriptConstructs.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/typescriptConstructsBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/various.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/variousBaseline.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/withStatement.ts (100%) rename tests/cases/unittests/services/{ => formatting}/testCode/formatting/withStatementBaseline.ts (100%) create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/classes.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/classesBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMark.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMarkBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunction.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunctionBaseLine.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlock.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlockBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteral.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteralBaseLine.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctions.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctionsBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatement.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatementBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationList.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationListBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModule.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModuleBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclaration.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclarationBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/main.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/mainBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentation.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentationBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/modules.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/modulesBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteral.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteralBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracket.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracketBaseLine.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColon.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColonBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructor.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructorBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurly.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurlyBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructs.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructsBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/various.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/variousBaseline.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatement.ts create mode 100644 tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatementBaseline.ts diff --git a/tests/cases/unittests/ls/documentRegistry.ts b/tests/cases/unittests/services/documentRegistry.ts similarity index 100% rename from tests/cases/unittests/ls/documentRegistry.ts rename to tests/cases/unittests/services/documentRegistry.ts diff --git a/tests/cases/unittests/services/documentFormattingTests.json b/tests/cases/unittests/services/formatting/documentFormattingTests.json similarity index 100% rename from tests/cases/unittests/services/documentFormattingTests.json rename to tests/cases/unittests/services/formatting/documentFormattingTests.json diff --git a/tests/cases/unittests/services/formatDiffTemplate.html b/tests/cases/unittests/services/formatting/formatDiffTemplate.html similarity index 100% rename from tests/cases/unittests/services/formatDiffTemplate.html rename to tests/cases/unittests/services/formatting/formatDiffTemplate.html diff --git a/tests/cases/unittests/services/getFormattingEditsForRange.ts b/tests/cases/unittests/services/formatting/getFormattingEditsForRange.ts similarity index 100% rename from tests/cases/unittests/services/getFormattingEditsForRange.ts rename to tests/cases/unittests/services/formatting/getFormattingEditsForRange.ts diff --git a/tests/cases/unittests/services/getSmartIndentAtLineNumber.ts b/tests/cases/unittests/services/formatting/getSmartIndentAtLineNumber.ts similarity index 100% rename from tests/cases/unittests/services/getSmartIndentAtLineNumber.ts rename to tests/cases/unittests/services/formatting/getSmartIndentAtLineNumber.ts diff --git a/tests/cases/unittests/services/importedJavaScriptFormatting.ts b/tests/cases/unittests/services/formatting/importedJavaScriptFormatting.ts similarity index 100% rename from tests/cases/unittests/services/importedJavaScriptFormatting.ts rename to tests/cases/unittests/services/formatting/importedJavaScriptFormatting.ts diff --git a/tests/cases/unittests/services/ruleFormattingTests.json b/tests/cases/unittests/services/formatting/ruleFormattingTests.json similarity index 100% rename from tests/cases/unittests/services/ruleFormattingTests.json rename to tests/cases/unittests/services/formatting/ruleFormattingTests.json diff --git a/tests/cases/unittests/services/testCode/formatting/classes.ts b/tests/cases/unittests/services/formatting/testCode/formatting/classes.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/classes.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/classes.ts diff --git a/tests/cases/unittests/services/testCode/formatting/classesBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/classesBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/classesBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/classesBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/colonAndQMark.ts b/tests/cases/unittests/services/formatting/testCode/formatting/colonAndQMark.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/colonAndQMark.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/colonAndQMark.ts diff --git a/tests/cases/unittests/services/testCode/formatting/colonAndQMarkBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/colonAndQMarkBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/colonAndQMarkBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/colonAndQMarkBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/documentReadyFunction.ts b/tests/cases/unittests/services/formatting/testCode/formatting/documentReadyFunction.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/documentReadyFunction.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/documentReadyFunction.ts diff --git a/tests/cases/unittests/services/testCode/formatting/documentReadyFunctionBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/formatting/documentReadyFunctionBaseLine.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/documentReadyFunctionBaseLine.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/documentReadyFunctionBaseLine.ts diff --git a/tests/cases/unittests/services/testCode/formatting/emptyBlock.ts b/tests/cases/unittests/services/formatting/testCode/formatting/emptyBlock.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/emptyBlock.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/emptyBlock.ts diff --git a/tests/cases/unittests/services/testCode/formatting/emptyBlockBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/emptyBlockBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/emptyBlockBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/emptyBlockBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/emptyInterfaceLiteral.ts b/tests/cases/unittests/services/formatting/testCode/formatting/emptyInterfaceLiteral.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/emptyInterfaceLiteral.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/emptyInterfaceLiteral.ts diff --git a/tests/cases/unittests/services/testCode/formatting/emptyInterfaceLiteralBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/formatting/emptyInterfaceLiteralBaseLine.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/emptyInterfaceLiteralBaseLine.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/emptyInterfaceLiteralBaseLine.ts diff --git a/tests/cases/unittests/services/testCode/formatting/fatArrowFunctions.ts b/tests/cases/unittests/services/formatting/testCode/formatting/fatArrowFunctions.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/fatArrowFunctions.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/fatArrowFunctions.ts diff --git a/tests/cases/unittests/services/testCode/formatting/fatArrowFunctionsBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/fatArrowFunctionsBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/fatArrowFunctionsBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/fatArrowFunctionsBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/formatDebuggerStatement.ts b/tests/cases/unittests/services/formatting/testCode/formatting/formatDebuggerStatement.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/formatDebuggerStatement.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/formatDebuggerStatement.ts diff --git a/tests/cases/unittests/services/testCode/formatting/formatDebuggerStatementBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/formatDebuggerStatementBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/formatDebuggerStatementBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/formatDebuggerStatementBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/formatvariableDeclarationList.ts b/tests/cases/unittests/services/formatting/testCode/formatting/formatvariableDeclarationList.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/formatvariableDeclarationList.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/formatvariableDeclarationList.ts diff --git a/tests/cases/unittests/services/testCode/formatting/formatvariableDeclarationListBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/formatvariableDeclarationListBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/formatvariableDeclarationListBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/formatvariableDeclarationListBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/implicitModule.ts b/tests/cases/unittests/services/formatting/testCode/formatting/implicitModule.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/implicitModule.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/implicitModule.ts diff --git a/tests/cases/unittests/services/testCode/formatting/implicitModuleBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/implicitModuleBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/implicitModuleBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/implicitModuleBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/importDeclaration.ts b/tests/cases/unittests/services/formatting/testCode/formatting/importDeclaration.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/importDeclaration.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/importDeclaration.ts diff --git a/tests/cases/unittests/services/testCode/formatting/importDeclarationBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/importDeclarationBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/importDeclarationBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/importDeclarationBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/main.ts b/tests/cases/unittests/services/formatting/testCode/formatting/main.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/main.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/main.ts diff --git a/tests/cases/unittests/services/testCode/formatting/mainBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/mainBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/mainBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/mainBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/moduleIndentation.ts b/tests/cases/unittests/services/formatting/testCode/formatting/moduleIndentation.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/moduleIndentation.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/moduleIndentation.ts diff --git a/tests/cases/unittests/services/testCode/formatting/moduleIndentationBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/moduleIndentationBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/moduleIndentationBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/moduleIndentationBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/modules.ts b/tests/cases/unittests/services/formatting/testCode/formatting/modules.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/modules.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/modules.ts diff --git a/tests/cases/unittests/services/testCode/formatting/modulesBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/modulesBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/modulesBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/modulesBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/objectLiteral.ts b/tests/cases/unittests/services/formatting/testCode/formatting/objectLiteral.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/objectLiteral.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/objectLiteral.ts diff --git a/tests/cases/unittests/services/testCode/formatting/objectLiteralBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/objectLiteralBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/objectLiteralBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/objectLiteralBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/onClosingBracket.ts b/tests/cases/unittests/services/formatting/testCode/formatting/onClosingBracket.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/onClosingBracket.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/onClosingBracket.ts diff --git a/tests/cases/unittests/services/testCode/formatting/onClosingBracketBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/formatting/onClosingBracketBaseLine.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/onClosingBracketBaseLine.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/onClosingBracketBaseLine.ts diff --git a/tests/cases/unittests/services/testCode/formatting/onSemiColon.ts b/tests/cases/unittests/services/formatting/testCode/formatting/onSemiColon.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/onSemiColon.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/onSemiColon.ts diff --git a/tests/cases/unittests/services/testCode/formatting/onSemiColonBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/onSemiColonBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/onSemiColonBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/onSemiColonBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/spaceAfterConstructor.ts b/tests/cases/unittests/services/formatting/testCode/formatting/spaceAfterConstructor.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/spaceAfterConstructor.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/spaceAfterConstructor.ts diff --git a/tests/cases/unittests/services/testCode/formatting/spaceAfterConstructorBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/spaceAfterConstructorBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/spaceAfterConstructorBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/spaceAfterConstructorBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/tabAfterCloseCurly.ts b/tests/cases/unittests/services/formatting/testCode/formatting/tabAfterCloseCurly.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/tabAfterCloseCurly.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/tabAfterCloseCurly.ts diff --git a/tests/cases/unittests/services/testCode/formatting/tabAfterCloseCurlyBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/tabAfterCloseCurlyBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/tabAfterCloseCurlyBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/tabAfterCloseCurlyBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/typescriptConstructs.ts b/tests/cases/unittests/services/formatting/testCode/formatting/typescriptConstructs.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/typescriptConstructs.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/typescriptConstructs.ts diff --git a/tests/cases/unittests/services/testCode/formatting/typescriptConstructsBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/typescriptConstructsBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/typescriptConstructsBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/typescriptConstructsBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/various.ts b/tests/cases/unittests/services/formatting/testCode/formatting/various.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/various.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/various.ts diff --git a/tests/cases/unittests/services/testCode/formatting/variousBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/variousBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/variousBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/variousBaseline.ts diff --git a/tests/cases/unittests/services/testCode/formatting/withStatement.ts b/tests/cases/unittests/services/formatting/testCode/formatting/withStatement.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/withStatement.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/withStatement.ts diff --git a/tests/cases/unittests/services/testCode/formatting/withStatementBaseline.ts b/tests/cases/unittests/services/formatting/testCode/formatting/withStatementBaseline.ts similarity index 100% rename from tests/cases/unittests/services/testCode/formatting/withStatementBaseline.ts rename to tests/cases/unittests/services/formatting/testCode/formatting/withStatementBaseline.ts diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classes.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classes.ts new file mode 100644 index 00000000000..e779f69810f --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classes.ts @@ -0,0 +1,79 @@ + class a { + constructor ( n : number ) ; + constructor ( s : string ) ; + constructor ( ns : any ) { + + } + + public pgF ( ) { } ; + + public pv ; + public get d ( ) { + return 30 ; + } + public set d ( ) { + } + + public static get p2 ( ) { + return { x : 30 , y : 40 } ; + } + + private static d2 ( ) { + } + private static get p3 ( ) { + return "string" ; + } + private pv3 ; + + private foo ( n : number ) : string ; + private foo ( s : string ) : string ; + private foo ( ns : any ) { + return ns.toString ( ) ; + } +} + + class b extends a { +} + + class m1b { + +} + + interface m1ib { + + } + class c extends m1b { +} + + class ib2 implements m1ib { +} + + declare class aAmbient { + constructor ( n : number ) ; + constructor ( s : string ) ; + public pgF ( ) : void ; + public pv ; + public d : number ; + static p2 : { x : number ; y : number ; } ; + static d2 ( ) ; + static p3 ; + private pv3 ; + private foo ( s ) ; +} + + class d { + private foo ( n : number ) : string ; + private foo ( ns : any ) { + return ns.toString ( ) ; + } + private foo ( s : string ) : string ; +} + + class e { + private foo ( ns : any ) { + return ns.toString ( ) ; + } + private foo ( s : string ) : string ; + private foo ( n : number ) : string ; +} + diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classesBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classesBaseline.ts new file mode 100644 index 00000000000..e7e69b44125 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/classesBaseline.ts @@ -0,0 +1,79 @@ +class a { + constructor(n: number); + constructor(s: string); + constructor(ns: any) { + + } + + public pgF() { }; + + public pv; + public get d() { + return 30; + } + public set d() { + } + + public static get p2() { + return { x: 30, y: 40 }; + } + + private static d2() { + } + private static get p3() { + return "string"; + } + private pv3; + + private foo(n: number): string; + private foo(s: string): string; + private foo(ns: any) { + return ns.toString(); + } +} + +class b extends a { +} + +class m1b { + +} + +interface m1ib { + +} +class c extends m1b { +} + +class ib2 implements m1ib { +} + +declare class aAmbient { + constructor(n: number); + constructor(s: string); + public pgF(): void; + public pv; + public d: number; + static p2: { x: number; y: number; }; + static d2(); + static p3; + private pv3; + private foo(s); +} + +class d { + private foo(n: number): string; + private foo(ns: any) { + return ns.toString(); + } + private foo(s: string): string; +} + +class e { + private foo(ns: any) { + return ns.toString(); + } + private foo(s: string): string; + private foo(n: number): string; +} + diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMark.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMark.ts new file mode 100644 index 00000000000..5562e142046 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMark.ts @@ -0,0 +1,4 @@ +class foo { + constructor (n?: number, m? = 5, o?: string = "") { } + x:number = 1?2:3; +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMarkBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMarkBaseline.ts new file mode 100644 index 00000000000..52bbe56251d --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/colonAndQMarkBaseline.ts @@ -0,0 +1,4 @@ +class foo { + constructor(n?: number, m? = 5, o?: string = "") { } + x: number = 1 ? 2 : 3; +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunction.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunction.ts new file mode 100644 index 00000000000..35daa4d895c --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunction.ts @@ -0,0 +1,3 @@ +$ ( document ) . ready ( function ( ) { + alert ( 'i am ready' ) ; + } ); \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunctionBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunctionBaseLine.ts new file mode 100644 index 00000000000..838ef682207 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/documentReadyFunctionBaseLine.ts @@ -0,0 +1,3 @@ +$(document).ready(function() { + alert('i am ready'); +}); \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlock.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlock.ts new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlock.ts @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlockBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlockBaseline.ts new file mode 100644 index 00000000000..6f31cf5a2e6 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyBlockBaseline.ts @@ -0,0 +1 @@ +{ } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteral.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteral.ts new file mode 100644 index 00000000000..1feec453d03 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteral.ts @@ -0,0 +1,10 @@ + function foo ( x : { } ) { } + +foo ( { } ) ; + + + + interface bar { + x : { } ; + y : ( ) => { } ; + } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteralBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteralBaseLine.ts new file mode 100644 index 00000000000..04f3c0bc9b9 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/emptyInterfaceLiteralBaseLine.ts @@ -0,0 +1,10 @@ +function foo(x: {}) { } + +foo({}); + + + +interface bar { + x: {}; + y: () => {}; +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctions.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctions.ts new file mode 100644 index 00000000000..ebbf54557fa --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctions.ts @@ -0,0 +1,112 @@ +// valid + ( ) => 1 ; + ( arg ) => 2 ; + arg => 2 ; + ( arg = 1 ) => 3 ; + ( arg ? ) => 4 ; + ( arg : number ) => 5 ; + ( arg : number = 0 ) => 6 ; + ( arg ? : number ) => 7 ; + ( ... arg : number [ ] ) => 8 ; + ( arg1 , arg2 ) => 12 ; + ( arg1 = 1 , arg2 =3 ) => 13 ; + ( arg1 ? , arg2 ? ) => 14 ; + ( arg1 : number , arg2 : number ) => 15 ; + ( arg1 : number = 0 , arg2 : number = 1 ) => 16 ; + ( arg1 ? : number , arg2 ? : number ) => 17 ; + ( arg1 , ... arg2 : number [ ] ) => 18 ; + ( arg1 , arg2 ? : number ) => 19 ; + +// in paren + ( ( ) => 21 ) ; + ( ( arg ) => 22 ) ; + ( ( arg = 1 ) => 23 ) ; + ( ( arg ? ) => 24 ) ; + ( ( arg : number ) => 25 ) ; + ( ( arg : number = 0 ) => 26 ) ; + ( ( arg ? : number ) => 27 ) ; + ( ( ... arg : number [ ] ) => 28 ) ; + +// in multiple paren + ( ( ( ( ( arg ) => { return 32 ; } ) ) ) ) ; + +// in ternary exression + false ? ( ) => 41 : null ; + false ? ( arg ) => 42 : null ; + false ? ( arg = 1 ) => 43 : null ; + false ? ( arg ? ) => 44 : null ; + false ? ( arg : number ) => 45 : null ; + false ? ( arg ? : number ) => 46 : null ; + false ? ( arg ? : number = 0 ) => 47 : null ; + false ? ( ... arg : number [ ] ) => 48 : null ; + +// in ternary exression within paren + false ? ( ( ) => 51 ) : null ; + false ? ( ( arg ) => 52 ) : null ; + false ? ( ( arg = 1 ) => 53 ) : null ; + false ? ( ( arg ? ) => 54 ) : null ; + false ? ( ( arg : number ) => 55 ) : null ; + false ? ( ( arg ? : number ) => 56 ) : null ; + false ? ( ( arg ? : number = 0 ) => 57 ) : null ; + false ? ( ( ... arg : number [ ] ) => 58 ) : null ; + +// ternary exression's else clause + false ? null : ( ) => 61 ; + false ? null : ( arg ) => 62 ; + false ? null : ( arg = 1 ) => 63 ; + false ? null : ( arg ? ) => 64 ; + false ? null : ( arg : number ) => 65 ; + false ? null : ( arg ? : number ) => 66 ; + false ? null : ( arg ? : number = 0 ) => 67 ; + false ? null : ( ... arg : number [ ] ) => 68 ; + + +// nested ternary expressions + ( a ? ) => { return a ; } ? ( b ? ) => { return b ; } : ( c ? ) => { return c ; } ; + +//multiple levels + ( a ? ) => { return a ; } ? ( b ) => ( c ) => 81 : ( c ) => ( d ) => 82 ; + + +// In Expressions + ( ( arg ) => 90 ) instanceof Function ; + ( ( arg = 1 ) => 91 ) instanceof Function ; + ( ( arg ? ) => 92 ) instanceof Function ; + ( ( arg : number ) => 93 ) instanceof Function ; + ( ( arg : number = 1 ) => 94 ) instanceof Function ; + ( ( arg ? : number ) => 95 ) instanceof Function ; + ( ( ... arg : number [ ] ) => 96 ) instanceof Function ; + +'' + ( arg ) => 100 ; + ( ( arg ) => 0 ) + '' + ( arg ) => 101 ; + ( ( arg = 1 ) => 0 ) + '' + ( arg = 2 ) => 102 ; + ( ( arg ? ) => 0 ) + '' + ( arg ? ) => 103 ; + ( ( arg : number ) => 0 ) + '' + ( arg : number ) => 104 ; + ( ( arg : number = 1 ) => 0 ) + '' + ( arg : number = 2 ) => 105 ; + ( ( arg ? : number = 1 ) => 0 ) + '' + ( arg ? : number = 2 ) => 106 ; + ( ( ... arg : number [ ] ) => 0 ) + '' + ( ... arg : number [ ] ) => 107 ; + ( ( arg1 , arg2 ? ) => 0 ) + '' + ( arg1 , arg2 ? ) => 108 ; + ( ( arg1 , ... arg2 : number [ ] ) => 0 ) + '' + ( arg1 , ... arg2 : number [ ] ) => 108 ; + + +// Function Parameters +function foo ( ... arg : any [ ] ) { } + +foo ( + ( a ) => 110 , + ( ( a ) => 111 ) , + ( a ) => { + return 112 ; + } , + ( a ? ) => 113 , + ( a , b ? ) => 114 , + ( a : number ) => 115 , + ( a : number = 0 ) => 116 , + ( a = 0 ) => 117 , + ( a ? : number = 0 ) => 118 , + ( a ? , b ? : number = 0 ) => 118 , + ( ... a : number [ ] ) => 119 , + ( a , b ? = 0 , ... c : number [ ] ) => 120 , + ( a ) => ( b ) => ( c ) => 121 , + false ? ( a ) => 0 : ( b ) => 122 + ) ; \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctionsBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctionsBaseline.ts new file mode 100644 index 00000000000..7a1ef86f5af --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/fatArrowFunctionsBaseline.ts @@ -0,0 +1,112 @@ +// valid +() => 1; +(arg) => 2; +arg => 2; +(arg = 1) => 3; +(arg?) => 4; +(arg: number) => 5; +(arg: number = 0) => 6; +(arg?: number) => 7; +(...arg: number[]) => 8; +(arg1, arg2) => 12; +(arg1 = 1, arg2 = 3) => 13; +(arg1?, arg2?) => 14; +(arg1: number, arg2: number) => 15; +(arg1: number = 0, arg2: number = 1) => 16; +(arg1?: number, arg2?: number) => 17; +(arg1, ...arg2: number[]) => 18; +(arg1, arg2?: number) => 19; + +// in paren +(() => 21); +((arg) => 22); +((arg = 1) => 23); +((arg?) => 24); +((arg: number) => 25); +((arg: number = 0) => 26); +((arg?: number) => 27); +((...arg: number[]) => 28); + +// in multiple paren +(((((arg) => { return 32; })))); + +// in ternary exression +false ? () => 41 : null; +false ? (arg) => 42 : null; +false ? (arg = 1) => 43 : null; +false ? (arg?) => 44 : null; +false ? (arg: number) => 45 : null; +false ? (arg?: number) => 46 : null; +false ? (arg?: number = 0) => 47 : null; +false ? (...arg: number[]) => 48 : null; + +// in ternary exression within paren +false ? (() => 51) : null; +false ? ((arg) => 52) : null; +false ? ((arg = 1) => 53) : null; +false ? ((arg?) => 54) : null; +false ? ((arg: number) => 55) : null; +false ? ((arg?: number) => 56) : null; +false ? ((arg?: number = 0) => 57) : null; +false ? ((...arg: number[]) => 58) : null; + +// ternary exression's else clause +false ? null : () => 61; +false ? null : (arg) => 62; +false ? null : (arg = 1) => 63; +false ? null : (arg?) => 64; +false ? null : (arg: number) => 65; +false ? null : (arg?: number) => 66; +false ? null : (arg?: number = 0) => 67; +false ? null : (...arg: number[]) => 68; + + +// nested ternary expressions +(a?) => { return a; } ? (b?) => { return b; } : (c?) => { return c; }; + +//multiple levels +(a?) => { return a; } ? (b) => (c) => 81 : (c) => (d) => 82; + + +// In Expressions +((arg) => 90) instanceof Function; +((arg = 1) => 91) instanceof Function; +((arg?) => 92) instanceof Function; +((arg: number) => 93) instanceof Function; +((arg: number = 1) => 94) instanceof Function; +((arg?: number) => 95) instanceof Function; +((...arg: number[]) => 96) instanceof Function; + +'' + (arg) => 100; +((arg) => 0) + '' + (arg) => 101; +((arg = 1) => 0) + '' + (arg = 2) => 102; +((arg?) => 0) + '' + (arg?) => 103; +((arg: number) => 0) + '' + (arg: number) => 104; +((arg: number = 1) => 0) + '' + (arg: number = 2) => 105; +((arg?: number = 1) => 0) + '' + (arg?: number = 2) => 106; +((...arg: number[]) => 0) + '' + (...arg: number[]) => 107; +((arg1, arg2?) => 0) + '' + (arg1, arg2?) => 108; +((arg1, ...arg2: number[]) => 0) + '' + (arg1, ...arg2: number[]) => 108; + + +// Function Parameters +function foo(...arg: any[]) { } + +foo( + (a) => 110, + ((a) => 111), + (a) => { + return 112; + }, + (a?) => 113, + (a, b?) => 114, + (a: number) => 115, + (a: number = 0) => 116, + (a = 0) => 117, + (a?: number = 0) => 118, + (a?, b?: number = 0) => 118, + (...a: number[]) => 119, + (a, b? = 0, ...c: number[]) => 120, + (a) => (b) => (c) => 121, + false ? (a) => 0 : (b) => 122 + ); \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatement.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatement.ts new file mode 100644 index 00000000000..314cd416a81 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatement.ts @@ -0,0 +1,2 @@ +if(false){debugger;} + if ( false ) { debugger ; } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatementBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatementBaseline.ts new file mode 100644 index 00000000000..c03acf91ecf --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatDebuggerStatementBaseline.ts @@ -0,0 +1,2 @@ +if (false) { debugger; } +if (false) { debugger; } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationList.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationList.ts new file mode 100644 index 00000000000..956309d2c4d --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationList.ts @@ -0,0 +1,13 @@ +var fun1 = function ( ) { + var x = 'foo' , + z = 'bar' ; + return x ; +}, + +fun2 = ( function ( f ) { + var fun = function ( ) { + console . log ( f ( ) ) ; + }, + x = 'Foo' ; + return fun ; +} ( fun1 ) ) ; diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationListBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationListBaseline.ts new file mode 100644 index 00000000000..f1d32283fd7 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/formatvariableDeclarationListBaseline.ts @@ -0,0 +1,13 @@ +var fun1 = function() { + var x = 'foo', + z = 'bar'; + return x; +}, + +fun2 = (function(f) { + var fun = function() { + console.log(f()); + }, + x = 'Foo'; + return fun; +} (fun1)); diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModule.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModule.ts new file mode 100644 index 00000000000..352a252593b --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModule.ts @@ -0,0 +1,3 @@ + export class A { + + } diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModuleBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModuleBaseline.ts new file mode 100644 index 00000000000..df93540466f --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/implicitModuleBaseline.ts @@ -0,0 +1,3 @@ +export class A { + +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclaration.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclaration.ts new file mode 100644 index 00000000000..afd010fe8b7 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclaration.ts @@ -0,0 +1,6 @@ +module Foo { +} + +import bar = Foo; + +import bar2=Foo; diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclarationBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclarationBaseline.ts new file mode 100644 index 00000000000..d0a4e190d95 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/importDeclarationBaseline.ts @@ -0,0 +1,6 @@ +module Foo { +} + +import bar = Foo; + +import bar2 = Foo; diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/main.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/main.ts new file mode 100644 index 00000000000..7640013af8b --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/main.ts @@ -0,0 +1,95 @@ + +var a;var c , b;var $d +var $e +var f +a++;b++; + +function f ( ) { + for (i = 0; i < 10; i++) { + k = abc + 123 ^ d; + a = XYZ[m (a[b[c][d]])]; + break; + + switch ( variable){ + case 1: abc += 425; +break; +case 404 : a [x--/2]%=3 ; + break ; + case vari : v[--x ] *=++y*( m + n / k[z]); + for (a in b){ + for (a = 0; a < 10; ++a) { + a++;--a; + if (a == b) { + a++;b--; + } +else +if (a == c){ +++a; +(--c)+=d; +$c = $a + --$b; +} +if (a == b) +if (a != b) { + if (a !== b) + if (a === b) + --a; + else + --a; + else { + a--;++b; +a++ + } + } + } + for (x in y) { +m-=m; +k=1+2+3+4; +} +} + break; + + } + } + var a ={b:function(){}}; + return {a:1,b:2} +} + +var z = 1; + for (i = 0; i < 10; i++) + for (j = 0; j < 10; j++) +for (k = 0; k < 10; ++k) { +z++; +} + +for (k = 0; k < 10; k += 2) { +z++; +} + + $(document).ready (); + + + function pageLoad() { + $('#TextBox1' ) . unbind ( ) ; +$('#TextBox1' ) . datepicker ( ) ; +} + + function pageLoad ( ) { + var webclass=[ + { 'student' : + { 'id': '1', 'name': 'Linda Jones', 'legacySkill': 'Access, VB 5.0' } + } , +{ 'student': +{'id':'2','name':'Adam Davidson','legacySkill':'Cobol,MainFrame'} +} , + { 'student': +{ 'id':'3','name':'Charles Boyer' ,'legacySkill':'HTML, XML'} +} + ]; + +$create(Sys.UI.DataView,{data:webclass},null,null,$get('SList')); + +} + +$( document ).ready(function(){ +alert('hello'); + } ) ; diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/mainBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/mainBaseline.ts new file mode 100644 index 00000000000..30756f547ca --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/mainBaseline.ts @@ -0,0 +1,98 @@ + +var a; var c, b; var $d +var $e +var f +a++; b++; + +function f() { + for (i = 0; i < 10; i++) { + k = abc + 123 ^ d; + a = XYZ[m(a[b[c][d]])]; + break; + + switch (variable) { + case 1: abc += 425; + break; + case 404: a[x-- / 2] %= 3; + break; + case vari: v[--x] *= ++y * (m + n / k[z]); + for (a in b) { + for (a = 0; a < 10; ++a) { + a++; --a; + if (a == b) { + a++; b--; + } + else + if (a == c) { + ++a; + (--c) += d; + $c = $a + --$b; + } + if (a == b) + if (a != b) { + if (a !== b) + if (a === b) + --a; + else + --a; + else { + a--; ++b; + a++ + } + } + } + for (x in y) { + m -= m; + k = 1 + 2 + 3 + 4; + } + } + break; + + } + } + var a = { b: function() { } }; + return { a: 1, b: 2 } +} + +var z = 1; +for (i = 0; i < 10; i++) + for (j = 0; j < 10; j++) + for (k = 0; k < 10; ++k) { + z++; + } + +for (k = 0; k < 10; k += 2) { + z++; +} + +$(document).ready(); + + +function pageLoad() { + $('#TextBox1').unbind(); + $('#TextBox1').datepicker(); +} + +function pageLoad() { + var webclass = [ + { + 'student': + { 'id': '1', 'name': 'Linda Jones', 'legacySkill': 'Access, VB 5.0' } + }, +{ + 'student': + { 'id': '2', 'name': 'Adam Davidson', 'legacySkill': 'Cobol,MainFrame' } +}, + { + 'student': + { 'id': '3', 'name': 'Charles Boyer', 'legacySkill': 'HTML, XML' } + } + ]; + + $create(Sys.UI.DataView, { data: webclass }, null, null, $get('SList')); + +} + +$(document).ready(function() { + alert('hello'); +}); diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentation.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentation.ts new file mode 100644 index 00000000000..3030a36630a --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentation.ts @@ -0,0 +1,3 @@ + module Foo { + export module A . B . C { } + } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentationBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentationBaseline.ts new file mode 100644 index 00000000000..0013b367dcf --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/moduleIndentationBaseline.ts @@ -0,0 +1,3 @@ +module Foo { + export module A.B.C { } +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modules.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modules.ts new file mode 100644 index 00000000000..5ce0d19b632 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modules.ts @@ -0,0 +1,76 @@ + module mod1 { + export class b { + } + class d { + } + + + export interface ib { + } +} + + module m2 { + + export module m3 { + export class c extends mod1.b { + } + export class ib2 implements mod1.ib { + } + } +} + + class c extends mod1.b { +} + + class ib2 implements mod1.ib { +} + + declare export module "m4" { + export class d { + } ; + var x : d ; + export function foo ( ) : d ; +} + + import m4 = module ( "m4" ) ; + export var x4 = m4.x ; + export var d4 = m4.d ; + export var f4 = m4.foo ( ) ; + + export module m1 { + declare export module "m2" { + export class d { + } ; + var x: d ; + export function foo ( ) : d ; + } + import m2 = module ( "m2" ) ; + import m3 = module ( "m4" ) ; + + export var x2 = m2.x ; + export var d2 = m2.d ; + export var f2 = m2.foo ( ) ; + + export var x3 = m3.x ; + export var d3 = m3.d ; + export var f3 = m3.foo ( ) ; +} + + export var x2 = m1.m2.x ; + export var d2 = m1.m2.d ; + export var f2 = m1.m2.foo ( ) ; + + export var x3 = m1.m3.x ; + export var d3 = m1.m3.d ; + export var f3 = m1.m3.foo ( ) ; + + export module m5 { + export var x2 = m1.m2.x ; + export var d2 = m1.m2.d ; + export var f2 = m1.m2.foo ( ) ; + + export var x3 = m1.m3.x ; + export var d3 = m1.m3.d ; + export var f3 = m1.m3.foo ( ) ; +} + diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modulesBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modulesBaseline.ts new file mode 100644 index 00000000000..e6f62024fe6 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/modulesBaseline.ts @@ -0,0 +1,76 @@ +module mod1 { + export class b { + } + class d { + } + + + export interface ib { + } +} + +module m2 { + + export module m3 { + export class c extends mod1.b { + } + export class ib2 implements mod1.ib { + } + } +} + +class c extends mod1.b { +} + +class ib2 implements mod1.ib { +} + +declare export module "m4" { + export class d { + }; + var x: d; + export function foo(): d; +} + +import m4 = module("m4"); +export var x4 = m4.x; +export var d4 = m4.d; +export var f4 = m4.foo(); + +export module m1 { + declare export module "m2" { + export class d { + }; + var x: d; + export function foo(): d; + } + import m2 = module("m2"); + import m3 = module("m4"); + + export var x2 = m2.x; + export var d2 = m2.d; + export var f2 = m2.foo(); + + export var x3 = m3.x; + export var d3 = m3.d; + export var f3 = m3.foo(); +} + +export var x2 = m1.m2.x; +export var d2 = m1.m2.d; +export var f2 = m1.m2.foo(); + +export var x3 = m1.m3.x; +export var d3 = m1.m3.d; +export var f3 = m1.m3.foo(); + +export module m5 { + export var x2 = m1.m2.x; + export var d2 = m1.m2.d; + export var f2 = m1.m2.foo(); + + export var x3 = m1.m3.x; + export var d3 = m1.m3.d; + export var f3 = m1.m3.foo(); +} + diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteral.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteral.ts new file mode 100644 index 00000000000..dbecc4d4fec --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteral.ts @@ -0,0 +1,27 @@ +var x = {foo: 1, +bar: "tt", +boo: 1 + 5}; + +var x2 = {foo: 1, +bar: "tt",boo:1+5}; + +function Foo() { +var typeICalc = { +clear: { +"()": [1, 2, 3] +} +} +} + +// Rule for object literal members for the "value" of the memebr to follow the indent +// of the member, i.e. the relative position of the value is maintained when the member +// is indented. +var x2 = { + foo: +3, + 'bar': + { a: 1, b : 2} +}; + +var x={ }; +var y = {}; \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteralBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteralBaseline.ts new file mode 100644 index 00000000000..3a7fa63d927 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/objectLiteralBaseline.ts @@ -0,0 +1,31 @@ +var x = { + foo: 1, + bar: "tt", + boo: 1 + 5 +}; + +var x2 = { + foo: 1, + bar: "tt", boo: 1 + 5 +}; + +function Foo() { + var typeICalc = { + clear: { + "()": [1, 2, 3] + } + } +} + +// Rule for object literal members for the "value" of the memebr to follow the indent +// of the member, i.e. the relative position of the value is maintained when the member +// is indented. +var x2 = { + foo: + 3, + 'bar': + { a: 1, b: 2 } +}; + +var x = {}; +var y = {}; \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracket.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracket.ts new file mode 100644 index 00000000000..0161f04308d --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracket.ts @@ -0,0 +1,32 @@ +function f( ) { +var x = 3; + var z = 2 ; + a = z ++ - 2 * x ; + for ( ; ; ) { + a+=(g +g)*a%t; + b -- ; +} + + switch ( a ) + { + case 1 : { + a ++ ; + b--; + if(a===a) + return; + else + { + for(a in b) + if(a!=a) + { + for(a in b) + { +a++; + } + } + } + } + default: + break; + } +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracketBaseLine.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracketBaseLine.ts new file mode 100644 index 00000000000..051a4ebd13a --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onClosingBracketBaseLine.ts @@ -0,0 +1,28 @@ +function f() { + var x = 3; + var z = 2; + a = z++ - 2 * x; + for (; ;) { + a += (g + g) * a % t; + b--; + } + + switch (a) { + case 1: { + a++; + b--; + if (a === a) + return; + else { + for (a in b) + if (a != a) { + for (a in b) { + a++; + } + } + } + } + default: + break; + } +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColon.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColon.ts new file mode 100644 index 00000000000..3b5b5456a6f --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColon.ts @@ -0,0 +1 @@ +var a=b+c^d-e*++f; \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColonBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColonBaseline.ts new file mode 100644 index 00000000000..2ba96e4f88a --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/onSemiColonBaseline.ts @@ -0,0 +1 @@ +var a = b + c ^ d - e * ++f; \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructor.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructor.ts new file mode 100644 index 00000000000..7d98d5a8f43 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructor.ts @@ -0,0 +1 @@ +class test { constructor () { } } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructorBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructorBaseline.ts new file mode 100644 index 00000000000..bc124d41baf --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/spaceAfterConstructorBaseline.ts @@ -0,0 +1 @@ +class test { constructor() { } } \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurly.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurly.ts new file mode 100644 index 00000000000..ec093e0e376 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurly.ts @@ -0,0 +1,10 @@ +module Tools { + export enum NodeType { + Error, + Comment, + } + export enum foob + { + Blah=1, Bleah=2 + } +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurlyBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurlyBaseline.ts new file mode 100644 index 00000000000..d0a3db2d51a --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/tabAfterCloseCurlyBaseline.ts @@ -0,0 +1,9 @@ +module Tools { + export enum NodeType { + Error, + Comment, + } + export enum foob { + Blah = 1, Bleah = 2 + } +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructs.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructs.ts new file mode 100644 index 00000000000..43ef3710ef1 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructs.ts @@ -0,0 +1,65 @@ + module MyModule + { + module A.B.C { +module F { +} + } +interface Blah +{ +boo: string; +} + + class Foo + { + +} + +class Foo2 { +public foo():number { +return 5 * 6; +} +public foo2() { +if (1 === 2) + + +{ +var y : number= 76; +return y; +} + + while (2 == 3) { + if ( y == null ) { + +} + } +} + +public foo3() { +if (1 === 2) + +//comment preventing line merging +{ +var y = 76; +return y; +} + +} + } + } + +function foo(a:number, b:number):number +{ +return 0; +} + +function bar(a:number, b:number) :number[] { +return []; +} + +module BugFix3 { +declare var f: { + (): any; + (x: number): string; + foo: number; +}; +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructsBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructsBaseline.ts new file mode 100644 index 00000000000..929334e4730 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/typescriptConstructsBaseline.ts @@ -0,0 +1,58 @@ +module MyModule { + module A.B.C { + module F { + } + } + interface Blah { + boo: string; + } + + class Foo { + + } + + class Foo2 { + public foo(): number { + return 5 * 6; + } + public foo2() { + if (1 === 2) { + var y: number = 76; + return y; + } + + while (2 == 3) { + if (y == null) { + + } + } + } + + public foo3() { + if (1 === 2) + + //comment preventing line merging + { + var y = 76; + return y; + } + + } + } +} + +function foo(a: number, b: number): number { + return 0; +} + +function bar(a: number, b: number): number[] { + return []; +} + +module BugFix3 { + declare var f: { + (): any; + (x: number): string; + foo: number; + }; +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/various.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/various.ts new file mode 100644 index 00000000000..bd814c2348e --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/various.ts @@ -0,0 +1,17 @@ +function f(a,b,c,d){ +for(var i=0;i<10;i++){ +var a=0; +var b=a+a+a*a%a/2-1; +b+=a; +++b; +f(a,b,c,d); +if(1===1){ +var m=function(e,f){ +return e^f; +} +} +} +} + +for (var i = 0 ; i < this.foo(); i++) { +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/variousBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/variousBaseline.ts new file mode 100644 index 00000000000..a4b5ceeb1c2 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/variousBaseline.ts @@ -0,0 +1,17 @@ +function f(a, b, c, d) { + for (var i = 0; i < 10; i++) { + var a = 0; + var b = a + a + a * a % a / 2 - 1; + b += a; + ++b; + f(a, b, c, d); + if (1 === 1) { + var m = function(e, f) { + return e ^ f; + } + } + } +} + +for (var i = 0 ; i < this.foo(); i++) { +} \ No newline at end of file diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatement.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatement.ts new file mode 100644 index 00000000000..66ec4bf546f --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatement.ts @@ -0,0 +1,9 @@ +with (foo.bar) + + { + + } + +with (bar.blah) +{ +} diff --git a/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatementBaseline.ts b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatementBaseline.ts new file mode 100644 index 00000000000..f81378d7f82 --- /dev/null +++ b/tests/cases/unittests/services/formatting/testCode/testCode/formatting/withStatementBaseline.ts @@ -0,0 +1,6 @@ +with (foo.bar) { + +} + +with (bar.blah) { +} From d028c060348a3890dbb1e5c272a5c2aa964ca518 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 23:32:18 -0700 Subject: [PATCH 011/106] remove unused folders from unitest runner --- src/harness/runner.ts | 12 +++--------- src/harness/unittestrunner.ts | 28 ++++------------------------ 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/src/harness/runner.ts b/src/harness/runner.ts index 7ea996b24e6..331a19819b3 100644 --- a/src/harness/runner.ts +++ b/src/harness/runner.ts @@ -68,17 +68,11 @@ if (testConfigFile !== '') { runners.push(new GeneratedFourslashRunner()); break; case 'unittests': - runners.push(new UnitTestRunner(UnittestTestType.Compiler)); + runners.push(new UnitTestRunner()); break; case 'rwc': runners.push(new RWCRunner()); break; - case 'ls': - runners.push(new UnitTestRunner(UnittestTestType.LanguageService)); - break; - case 'services': - runners.push(new UnitTestRunner(UnittestTestType.Services)); - break; case 'reverse': reverse = true; break; @@ -96,12 +90,12 @@ if (runners.length === 0) { runners.push(new ProjectRunner()); } - //// language services + // language services runners.push(new FourslashRunner()); //runners.push(new GeneratedFourslashRunner()); // unittests - runners.push(new UnitTestRunner(UnittestTestType.Services)); + runners.push(new UnitTestRunner()); } sys.newLine = '\r\n'; diff --git a/src/harness/unittestrunner.ts b/src/harness/unittestrunner.ts index 7b9019788e6..c91b82a0d96 100644 --- a/src/harness/unittestrunner.ts +++ b/src/harness/unittestrunner.ts @@ -1,34 +1,13 @@ /// /// -enum UnittestTestType { - Compiler, - LanguageService, - Services, -} - class UnitTestRunner extends RunnerBase { - constructor(public testType: UnittestTestType) { + constructor() { super(); } public initializeTests() { - switch (this.testType) { - case UnittestTestType.Compiler: - this.tests = this.enumerateFiles('tests/cases/unittests/compiler'); - break; - case UnittestTestType.LanguageService: - this.tests = this.enumerateFiles('tests/cases/unittests/ls'); - break; - case UnittestTestType.Services: - this.tests = this.enumerateFiles('tests/cases/unittests/services', /colorization.ts/); - break; - default: - if (this.tests.length === 0) { - throw new Error('Unsupported test cases: ' + this.testType); - } - break; - } + this.tests = this.enumerateFiles('tests/cases/unittests/services'); var outfile = new Harness.Compiler.WriterAggregator() var outerr = new Harness.Compiler.WriterAggregator(); @@ -63,7 +42,8 @@ class UnitTestRunner extends RunnerBase { after: after, Harness: Harness, IO: Harness.IO, - ts:ts + ts: ts, + TypeScript: TypeScript // FourSlash: FourSlash }; } From 38cacc967fd0a4bc61dceff9dc1995ed48847f64 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 23:32:43 -0700 Subject: [PATCH 012/106] Enable unit tests for DocumentRegistry --- src/services/services.ts | 5 +- src/services/shims.ts | 4 +- .../unittests/services/documentRegistry.ts | 174 ++---------------- 3 files changed, 24 insertions(+), 159 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index 19845f86483..f00825e4b41 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -693,8 +693,7 @@ module ts { compilationSettings: CompilerOptions, scriptSnapshot: TypeScript.IScriptSnapshot, version: number, - isOpen: boolean, - referencedFiles: string[]): SourceFile; + isOpen: boolean): SourceFile; updateDocument( soruceFile: SourceFile, @@ -1350,7 +1349,7 @@ module ts { sourceFile = documentRegistry.updateDocument(sourceFile, filename, compilationSettings, scriptSnapshot, version, isOpen, textChangeRange); } else { - sourceFile = documentRegistry.acquireDocument(filename, compilationSettings, scriptSnapshot, version, isOpen, []); + sourceFile = documentRegistry.acquireDocument(filename, compilationSettings, scriptSnapshot, version, isOpen); } // Remeber the new sourceFile diff --git a/src/services/shims.ts b/src/services/shims.ts index 891b9e1d913..36e28d3e060 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -837,8 +837,8 @@ module ts { public createLanguageServiceShim(host: LanguageServiceShimHost): LanguageServiceShim { try { var hostAdapter = new LanguageServiceShimHostAdapter(host); - var pullLanguageService = createLanguageService(hostAdapter, this.documentRegistry); - return new LanguageServiceShimObject(this, host, pullLanguageService); + var languageService = createLanguageService(hostAdapter, this.documentRegistry); + return new LanguageServiceShimObject(this, host, languageService); } catch (err) { logInternalError(host, err); diff --git a/tests/cases/unittests/services/documentRegistry.ts b/tests/cases/unittests/services/documentRegistry.ts index 871989cc232..a7ed030f44c 100644 --- a/tests/cases/unittests/services/documentRegistry.ts +++ b/tests/cases/unittests/services/documentRegistry.ts @@ -1,172 +1,38 @@ -/// /// -/// - -class TestSourceFile { - constructor( - public fileName: string, - public version: number, - public scriptSnapshot: TypeScript.IScriptSnapshot, - public isOpen: boolean, - public byteOrderMark: TypeScript.ByteOrderMark = TypeScript.ByteOrderMark.Utf8) { - } -} - -class TestHostSettings { - constructor( - public files: TypeScript.StringHashTable, - public compilationSettings: TypeScript.CompilationSettings = TypeScript.ImmutableCompilationSettings.defaultSettings().toCompilationSettings()) { - } -} - -describe("testDocumentRetrievalAndUpdate", () => { - function getHost(settings: TestHostSettings): TypeScript.Services.ILanguageServiceHost { - return { - getCompilationSettings(): TypeScript.CompilationSettings { - return settings.compilationSettings; - }, - - getScriptFileNames(): string[]{ - return settings.files.getAllKeys(); - }, - - getScriptVersion(fileName: string): number { - return settings.files.lookup(fileName).version; - }, - - getScriptIsOpen(fileName: string): boolean { - return settings.files.lookup(fileName).isOpen; - }, - - getScriptByteOrderMark(fileName: string): TypeScript.ByteOrderMark { - return settings.files.lookup(fileName).byteOrderMark; - }, - - getScriptSnapshot(fileName: string): TypeScript.IScriptSnapshot { - return settings.files.lookup(fileName).scriptSnapshot; - }, - - getDiagnosticsObject(): TypeScript.Services.ILanguageServicesDiagnostics { - throw TypeScript.Errors.notYetImplemented(); - }, - - getLocalizedDiagnosticMessages(): any { - return null; - }, - - information(): boolean { - return false; - }, - - debug(): boolean { - return false; - }, - - warning(): boolean { - return false; - }, - - error(): boolean { - return false; - }, - - fatal(): boolean { - return false; - }, - - log(s: string): void { - }, - - resolveRelativePath(path: string, directory: string): string { - throw TypeScript.Errors.notYetImplemented(); - }, - fileExists(path: string): boolean { - throw TypeScript.Errors.notYetImplemented(); - }, - directoryExists(path: string): boolean { - throw TypeScript.Errors.notYetImplemented(); - }, - getParentDirectory(path: string): string { - throw TypeScript.Errors.notYetImplemented(); - }, - getCancellationToken(): TypeScript.ICancellationToken { - return TypeScript.CancellationToken.None; - } - } - } - - function getLanguageServiceCompiler(ls: TypeScript.Services.ILanguageService): TypeScript.Services.LanguageServiceCompiler { - return (ls).compiler - } +describe("DocumentRegistry", () => { it("documents are shared between projects", () => { - function ensureDocumentIsShared(prefix: string, ls1: TypeScript.Services.ILanguageService, ls2: TypeScript.Services.ILanguageService, fileName: string): void { - var c1 = getLanguageServiceCompiler(ls1); - var c2 = getLanguageServiceCompiler(ls2); - // getDocument synchronized its internal state with host - var doc1 = c1.getDocument(fileName); - var doc2 = c2.getDocument(fileName); - if (doc1 !== doc2) { - throw new Error(prefix + ":document should be shared between language services"); - } - } - var files = new TypeScript.StringHashTable(); - var f1 = new TestSourceFile("file1.ts", 1, TypeScript.ScriptSnapshot.fromString("var x = 1;"), false); - files.add(f1.fileName, f1); - var factory = new TypeScript.Services.TypeScriptServicesFactory(); + var documentRegistry = ts.createDocumentRegistry(); + var defaultCompilerOptions = ts.getDefaultCompilerOptions(); - var hostSettings = new TestHostSettings(files); - var ls1 = factory.createPullLanguageService(getHost(hostSettings)); - var ls2 = factory.createPullLanguageService(getHost(hostSettings)); + var f1 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); + var f2 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); - ensureDocumentIsShared("==1==", ls1, ls2, f1.fileName); - - f1.version = 2; - f1.scriptSnapshot = TypeScript.ScriptSnapshot.fromString("var x = 2;"); - - ensureDocumentIsShared("==2==", ls1, ls2, f1.fileName); + assert(f1 === f2, "DocumentRegistry should return the same document for the same name"); }); it("documents are refreshed when settings in compilation settings affect syntax", () => { - var files = new TypeScript.StringHashTable(); - var f1 = new TestSourceFile("file1.ts", 1, TypeScript.ScriptSnapshot.fromString("var x = 1;"), false); - files.add(f1.fileName, f1); - var factory = new TypeScript.Services.TypeScriptServicesFactory(); - - var hostSettings = new TestHostSettings(files); - - var factory = new TypeScript.Services.TypeScriptServicesFactory(); - var ls = factory.createPullLanguageService(getHost(hostSettings)); - var compiler = getLanguageServiceCompiler(ls); - - var d1 = compiler.getDocument(f1.fileName); + var documentRegistry = ts.createDocumentRegistry(); + var compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.AMD }; // change compilation setting that doesn't affect parsing - should have the same document - hostSettings.compilationSettings.generateDeclarationFiles = !hostSettings.compilationSettings.generateDeclarationFiles; - var d2 = compiler.getDocument(f1.fileName); + compilerOptions.declaration = true; + var f1 = documentRegistry.acquireDocument("file1.ts", compilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); + compilerOptions.declaration = false; + var f2 = documentRegistry.acquireDocument("file1.ts", compilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); + + assert(f1 === f2, "Expected to have the same document instance"); - if (d1 !== d2) { - throw new Error("Expected to have the same document instance"); - } // change value of compilation setting that is used during production of AST - new document is required - hostSettings.compilationSettings.codeGenTarget = TypeScript.LanguageVersion.EcmaScript5; - var d3 = compiler.getDocument(f1.fileName); - if (d2 === d3) { - throw new Error("Changed codeGenTarget: Expected to have different instances of document"); - } + compilerOptions.target = ts.ScriptTarget.ES3; + var f3 = documentRegistry.acquireDocument("file1.ts", compilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); - hostSettings.compilationSettings.propagateEnumConstants = !hostSettings.compilationSettings.propagateEnumConstants; - var d4 = compiler.getDocument(f1.fileName); - if (d3 === d4) { - throw new Error("Changed propagateEnumConstants: Expected to have different instances of document"); - } + assert(f1 !== f3, "Changed target: Expected to have different instances of document"); - hostSettings.compilationSettings.allowAutomaticSemicolonInsertion = !hostSettings.compilationSettings.allowAutomaticSemicolonInsertion; - var d5 = compiler.getDocument(f1.fileName); - if (d4 === d5) { - throw new Error("Changed allowAutomaticSemicolonInsertion: Expected to have different instances of document"); - } + compilerOptions.module = ts.ModuleKind.CommonJS; + var f4 = documentRegistry.acquireDocument("file1.ts", compilerOptions, TypeScript.ScriptSnapshot.fromString("var x = 1;"), 1, false); + assert(f1 !== f4, "Changed module: Expected to have different instances of document"); }); }); \ No newline at end of file From bae6ddd1b54cf6ab9d855af339cbeb4db56ee3cd Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Aug 2014 23:51:15 -0700 Subject: [PATCH 013/106] add unterminated multiline comment classification tests --- tests/cases/unittests/services/colorization.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index 157c31fbec7..cba14ae6957 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -191,4 +191,22 @@ describe('Colorization', function () { assert.equal(results.finalEndOfLineState, ts.EndOfLineState.Start); }); }); + + describe("test cases for colorizing unterminted multi-line comment", function () { + it("unterminated multi-line comment correctelly", function () { + var results = getClassifications("/*", ts.EndOfLineState.Start); + + assert.equal(results.tuples.length, 1); + verifyClassification(results.tuples[0], 2, ts.TokenClass.Comment); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InMultiLineCommentTrivia); + }); + + it("unterminated multi-line comment with trailing space correctelly", function () { + var results = getClassifications("/* ", ts.EndOfLineState.Start); + + assert.equal(results.tuples.length, 1); + verifyClassification(results.tuples[0], 3, ts.TokenClass.Comment); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InMultiLineCommentTrivia); + }); + }); }); \ No newline at end of file From ad9a87dfb6e9d9c7b811e92c2320ae306bbdc115 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 8 Aug 2014 10:37:10 -0700 Subject: [PATCH 014/106] Add some huristic optimization to not colorize a keyword if precceded by a dot or a keyword. this should handel cases for "a.var" or "module string { }" --- src/services/services.ts | 83 +++++++++++-------- .../cases/unittests/services/colorization.ts | 33 +++++++- 2 files changed, 82 insertions(+), 34 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index f00825e4b41..63feb8fed42 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -659,6 +659,8 @@ module ts { InMultiLineCommentTrivia, InSingleQuoteStringLiteral, InDoubleQuoteStringLiteral, + EndingWithKeyword, + EndingWithDotToken, } export enum TokenClass { @@ -2217,25 +2219,33 @@ module ts { function getClassificationsForLine(text: string, lexState: EndOfLineState): ClassificationResult { var offset = 0; var lastTokenOrCommentEnd = 0; - var inMultiLineComment = false; + var lastToken = SyntaxKind.Unknown; + var inUnterminatedMultiLineComment = false; - if (lexState !== EndOfLineState.Start) { - // If we're in a string literal, then prepend: "\ - // (and a newline). That way when we lex we'll think we're still in a string literal. - // - // If we're in a multiline comment, then prepend: /* - // (and a newline). That way when we lex we'll think we're still in a multiline comment. - if (lexState === EndOfLineState.InDoubleQuoteStringLiteral) { + // If we're in a string literal, then prepend: "\ + // (and a newline). That way when we lex we'll think we're still in a string literal. + // + // If we're in a multiline comment, then prepend: /* + // (and a newline). That way when we lex we'll think we're still in a multiline comment. + switch (lexState) { + case EndOfLineState.InDoubleQuoteStringLiteral: text = '"\\\n' + text; - } - else if (lexState === EndOfLineState.InSingleQuoteStringLiteral) { + offset = 3; + break; + case EndOfLineState.InSingleQuoteStringLiteral: text = "'\\\n" + text; - } - else if (lexState === EndOfLineState.InMultiLineCommentTrivia) { + offset = 3; + break; + case EndOfLineState.InMultiLineCommentTrivia: text = "/*\n" + text; - } - - offset = 3; + offset = 3; + break; + case EndOfLineState.EndingWithDotToken: + lastToken = SyntaxKind.DotToken; + break; + case EndOfLineState.EndingWithKeyword: + lastToken = SyntaxKind.FirstKeyword; + break; } var result: ClassificationResult = { @@ -2245,11 +2255,8 @@ module ts { scanner = createScanner(ScriptTarget.ES5, text, onError, processComment); - var lastToken = SyntaxKind.Unknown; var token = SyntaxKind.Unknown; do { - inMultiLineComment = false; - token = scanner.scan(); if ((token === SyntaxKind.SlashToken || token === SyntaxKind.SlashEqualsToken) && !noRegexTable[lastToken]) { @@ -2257,6 +2264,9 @@ module ts { token = SyntaxKind.RegularExpressionLiteral; } } + else if (isKeyword(token) && (isKeyword(lastToken) || lastToken === SyntaxKind.DotToken)) { + token = SyntaxKind.Identifier; + } lastToken = token; @@ -2268,7 +2278,7 @@ module ts { function onError(message: DiagnosticMessage): void { - inMultiLineComment = message.key === Diagnostics.Asterisk_Slash_expected.key; + inUnterminatedMultiLineComment = message.key === Diagnostics.Asterisk_Slash_expected.key; } function processComment(start: number, end: number) { @@ -2291,21 +2301,24 @@ module ts { if (end >= text.length) { // We're at the end. - if (inMultiLineComment) { + if (inUnterminatedMultiLineComment) { result.finalLexState = EndOfLineState.InMultiLineCommentTrivia; - return; } - - if (token === SyntaxKind.StringLiteral) { + else if (token === SyntaxKind.StringLiteral) { var tokenText = scanner.getTokenText(); if (tokenText.length > 0 && tokenText.charCodeAt(tokenText.length - 1) === CharacterCodes.backslash) { var quoteChar = tokenText.charCodeAt(0); result.finalLexState = quoteChar === CharacterCodes.doubleQuote ? EndOfLineState.InDoubleQuoteStringLiteral : EndOfLineState.InSingleQuoteStringLiteral; - return; } } + else if (token === SyntaxKind.DotToken) { + result.finalLexState = EndOfLineState.EndingWithDotToken; + } + else if (isKeyword(token)) { + result.finalLexState = EndOfLineState.EndingWithKeyword; + } } } @@ -2331,8 +2344,8 @@ module ts { } } - function isBinaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean { - switch (tokenKind) { + function isBinaryExpressionOperatorToken(token: SyntaxKind): boolean { + switch (token) { case SyntaxKind.AsteriskToken: case SyntaxKind.SlashToken: case SyntaxKind.PercentToken: @@ -2374,8 +2387,8 @@ module ts { } } - function isPrefixUnaryExpressionOperatorToken(tokenKind: SyntaxKind): boolean { - switch (tokenKind) { + function isPrefixUnaryExpressionOperatorToken(token: SyntaxKind): boolean { + switch (token) { case SyntaxKind.PlusToken: case SyntaxKind.MinusToken: case SyntaxKind.TildeToken: @@ -2388,18 +2401,22 @@ module ts { } } - function classFromKind(kind: SyntaxKind) { - if (kind >= SyntaxKind.FirstKeyword && kind <= SyntaxKind.LastKeyword) { + function isKeyword(token: SyntaxKind): boolean { + return token >= SyntaxKind.FirstKeyword && token <= SyntaxKind.LastKeyword; + } + + function classFromKind(token: SyntaxKind) { + if (isKeyword(token)) { return TokenClass.Keyword; } - else if (isBinaryExpressionOperatorToken(kind) || isPrefixUnaryExpressionOperatorToken(kind)) { + else if (isBinaryExpressionOperatorToken(token) || isPrefixUnaryExpressionOperatorToken(token)) { return TokenClass.Operator; } - else if (kind >= SyntaxKind.FirstPunctuation && kind <= SyntaxKind.LastPunctuation) { + else if (token >= SyntaxKind.FirstPunctuation && token <= SyntaxKind.LastPunctuation) { return TokenClass.Punctuation; } - switch (kind) { + switch (token) { case SyntaxKind.NumericLiteral: return TokenClass.NumberLiteral; case SyntaxKind.StringLiteral: diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index cba14ae6957..2b9afdb6ef1 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -28,15 +28,21 @@ describe('Colorization', function () { var classResult = myclassifier.getClassificationsForLine(code, initialEndOfLineState).split('\n'); var tuples: Classification[] = []; var i = 0; + var computedLength = 0; for (; i < classResult.length - 1; i += 2) { - tuples[i / 2] = { + var t = tuples[i / 2] = { length: parseInt(classResult[i]), class: parseInt(classResult[i + 1]) }; + + assert.isTrue(t.length > 0, "Result length should be greater than 0, got :" + t.length); + computedLength += t.length; } var finalEndOfLineState = classResult[classResult.length - 1]; + assert.equal(computedLength, code.length, "Expected accumilative length of all entries to match the length of the source. expected: " + code.length + ", but got: " + computedLength); + return { tuples: tuples, finalEndOfLineState: parseInt(finalEndOfLineState) @@ -209,4 +215,29 @@ describe('Colorization', function () { assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InMultiLineCommentTrivia); }); }); + + describe("test cases for colorizing keywords", function () { + it("classifies keyword after a dot", function () { + var results = getClassifications("a.var", ts.EndOfLineState.Start); + verifyClassification(results.tuples[2], 3, ts.TokenClass.Identifier); + }); + + it("classifies keyword after a keyword", function () { + var results = getClassifications("module string", ts.EndOfLineState.Start); + verifyClassification(results.tuples[2], 6, ts.TokenClass.Identifier); + }); + + it("reports correct state with a line ending in a keyword", function () { + var results = getClassifications("module", ts.EndOfLineState.Start); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.EndingWithKeyword); + }); + + it("classifies keyword after a dot on previous line", function () { + var results = getClassifications("var", ts.EndOfLineState.EndingWithDotToken); + + assert.equal(results.tuples.length, 1); + verifyClassification(results.tuples[0], 3, ts.TokenClass.Identifier); + assert.equal(results.finalEndOfLineState, ts.EndOfLineState.Start); + }); + }); }); \ No newline at end of file From 17c45ed986921fde08ea37097b38962b5b393130 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 8 Aug 2014 16:43:31 -0700 Subject: [PATCH 015/106] revert changes to classify a keyword as an identifier if the last token is keyword --- src/services/services.ts | 9 +-------- tests/cases/unittests/services/colorization.ts | 10 ---------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index 63feb8fed42..7379ce5747f 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -659,7 +659,6 @@ module ts { InMultiLineCommentTrivia, InSingleQuoteStringLiteral, InDoubleQuoteStringLiteral, - EndingWithKeyword, EndingWithDotToken, } @@ -2243,9 +2242,6 @@ module ts { case EndOfLineState.EndingWithDotToken: lastToken = SyntaxKind.DotToken; break; - case EndOfLineState.EndingWithKeyword: - lastToken = SyntaxKind.FirstKeyword; - break; } var result: ClassificationResult = { @@ -2264,7 +2260,7 @@ module ts { token = SyntaxKind.RegularExpressionLiteral; } } - else if (isKeyword(token) && (isKeyword(lastToken) || lastToken === SyntaxKind.DotToken)) { + else if (lastToken === SyntaxKind.DotToken) { token = SyntaxKind.Identifier; } @@ -2316,9 +2312,6 @@ module ts { else if (token === SyntaxKind.DotToken) { result.finalLexState = EndOfLineState.EndingWithDotToken; } - else if (isKeyword(token)) { - result.finalLexState = EndOfLineState.EndingWithKeyword; - } } } diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index 2b9afdb6ef1..e395f20490c 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -222,16 +222,6 @@ describe('Colorization', function () { verifyClassification(results.tuples[2], 3, ts.TokenClass.Identifier); }); - it("classifies keyword after a keyword", function () { - var results = getClassifications("module string", ts.EndOfLineState.Start); - verifyClassification(results.tuples[2], 6, ts.TokenClass.Identifier); - }); - - it("reports correct state with a line ending in a keyword", function () { - var results = getClassifications("module", ts.EndOfLineState.Start); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.EndingWithKeyword); - }); - it("classifies keyword after a dot on previous line", function () { var results = getClassifications("var", ts.EndOfLineState.EndingWithDotToken); From be47b94c8f6a025b0bba9c453c42930296dba45e Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 8 Aug 2014 16:45:10 -0700 Subject: [PATCH 016/106] clean up tests --- .../cases/unittests/services/colorization.ts | 281 +++++++----------- 1 file changed, 113 insertions(+), 168 deletions(-) diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index e395f20490c..414942bbded 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -1,4 +1,5 @@ interface Classification { + position: number; length: number; class: ts.TokenClass; } @@ -8,17 +9,10 @@ interface ClassiferResult { finalEndOfLineState: ts.EndOfLineState; } -var TokenClassNames = {}; -TokenClassNames[ts.TokenClass.Punctuation] = "Punctuation"; -TokenClassNames[ts.TokenClass.Keyword] = "Keyword"; -TokenClassNames[ts.TokenClass.Operator] = "Operator"; -TokenClassNames[ts.TokenClass.Comment] = "Comment"; -TokenClassNames[ts.TokenClass.Whitespace] = "Whitespace"; -TokenClassNames[ts.TokenClass.Identifier] = "Identifier"; -TokenClassNames[ts.TokenClass.NumberLiteral] = "NumberLiteral"; -TokenClassNames[ts.TokenClass.StringLiteral] = "StringLiteral"; -TokenClassNames[ts.TokenClass.RegExpLiteral] = "RegExpLiteral"; - +interface ClassificationEntry { + value: any; + class: ts.TokenClass; +} describe('Colorization', function () { var mytypescriptLS = new Harness.LanguageService.TypeScriptLS(); @@ -28,20 +22,21 @@ describe('Colorization', function () { var classResult = myclassifier.getClassificationsForLine(code, initialEndOfLineState).split('\n'); var tuples: Classification[] = []; var i = 0; - var computedLength = 0; + var position = 0; for (; i < classResult.length - 1; i += 2) { var t = tuples[i / 2] = { + position: position, length: parseInt(classResult[i]), class: parseInt(classResult[i + 1]) }; assert.isTrue(t.length > 0, "Result length should be greater than 0, got :" + t.length); - computedLength += t.length; + position += t.length; } var finalEndOfLineState = classResult[classResult.length - 1]; - assert.equal(computedLength, code.length, "Expected accumilative length of all entries to match the length of the source. expected: " + code.length + ", but got: " + computedLength); + assert.equal(position, code.length, "Expected accumilative length of all entries to match the length of the source. expected: " + code.length + ", but got: " + position); return { tuples: tuples, @@ -52,182 +47,132 @@ describe('Colorization', function () { function verifyClassification(classification: Classification, expectedLength: number, expectedClass: number) { assert.isNotNull(classification); assert.equal(classification.length, expectedLength, "Classification length does not match expected. Expected: " + expectedLength + ", Actual: " + classification.length); - assert.equal(classification.class, expectedClass, "Classification class does not match expected. Expected: " + TokenClassNames[expectedClass] + ", Actual: " + TokenClassNames[classification.class]); + assert.equal(classification.class, expectedClass, "Classification class does not match expected. Expected: " + ts.TokenClass[expectedClass] + ", Actual: " + ts.TokenClass[classification.class]); } - describe("test cases for colorization", function () { - var results = getClassifications('var x:string = "foo"; //Hello'); + function getEntryAtPosistion(result: ClassiferResult, position: number) { + for (var i = 0, n = result.tuples.length; i < n; i++) { + if (result.tuples[i].position === position) return result.tuples[i]; + } + return undefined; + } - it("checks for a keyword", function () { - verifyClassification(results.tuples[0], 3, ts.TokenClass.Keyword); + function punctuation(text: string) { return { value: text, class: ts.TokenClass.Punctuation }; } + function keyword(text: string) { return { value: text, class: ts.TokenClass.Keyword }; } + function operator(text: string) { return { value: text, class: ts.TokenClass.Operator }; } + function comment(text: string) { return { value: text, class: ts.TokenClass.Comment }; } + function whitespace(text: string) { return { value: text, class: ts.TokenClass.Whitespace }; } + function identifier(text: string) { return { value: text, class: ts.TokenClass.Identifier }; } + function numberLiteral(text: string) { return { value: text, class: ts.TokenClass.NumberLiteral }; } + function stringLiteral(text: string) { return { value: text, class: ts.TokenClass.StringLiteral }; } + function regExpLiteral(text: string) { return { value: text, class: ts.TokenClass.RegExpLiteral }; } + function finalEndOfLineState(value: number) { return { value: value, class: undefined }; } + + function test(text: string, initialEndOfLineState: ts.EndOfLineState, ...expectedEntries: ClassificationEntry[]): void { + var result = getClassifications(text, initialEndOfLineState); + + for (var i = 0, n = expectedEntries.length; i < n; i++) { + var expectedEntry = expectedEntries[i]; + + if (expectedEntry.class === undefined) { + assert.equal(result.finalEndOfLineState, expectedEntry.value, "final endOfLineState does not match expected."); + } + else { + var actualEntryPosition = text.indexOf(expectedEntry.value); + assert(actualEntryPosition >= 0, "token: '" + expectedEntry.value + "' does not exit in text: '" + text + "'."); + + var actualEntry = getEntryAtPosistion(result, actualEntryPosition); + + assert(actualEntry, "Could not find classification entry for '" + expectedEntry.value + "' at position: " + actualEntryPosition); + assert.equal(actualEntry.length, expectedEntry.value.length, "Classification class does not match expected."); + assert.equal(actualEntry.class, expectedEntry.class, "Classification class does not match expected."); + } + } + } + + describe("test getClassifications", function () { + it("Returns correct token classes", function () { + test("var x: string = \"foo\"; //Hello", + ts.EndOfLineState.Start, + keyword("var"), + whitespace(" "), + identifier("x"), + punctuation(":"), + keyword("string"), + operator("="), + stringLiteral("\"foo\""), + comment("//Hello"), + punctuation(";")); }); - it("checks for a whitespace", function () { - verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); + it("classifies correctelly a comment after a divide operator", function () { + test("1 / 2 // comment", + ts.EndOfLineState.Start, + numberLiteral("1"), + whitespace(" "), + operator("/"), + numberLiteral("2"), + comment("// comment")); }); - it("checks for a identifier", function () { - verifyClassification(results.tuples[2], 1, ts.TokenClass.Identifier); + it("classifies correctelly a literal after a divide operator", function () { + test("1 / 2, 3 / 4", + ts.EndOfLineState.Start, + numberLiteral("1"), + whitespace(" "), + operator("/"), + numberLiteral("2"), + numberLiteral("3"), + numberLiteral("4"), + operator(",")); }); - it("checks for an punctuation", function () { - verifyClassification(results.tuples[3], 1, ts.TokenClass.Punctuation); + it("classifies correctelly an unterminated multi-line string", function () { + test("'line1\\", + ts.EndOfLineState.Start, + stringLiteral("'line1\\"), + finalEndOfLineState(ts.EndOfLineState.InSingleQuoteStringLiteral)); }); - it("checks for a operator", function () { - verifyClassification(results.tuples[6], 1, ts.TokenClass.Operator); + it("classifies correctelly the second line of an unterminated multi-line string", function () { + test("\\", + ts.EndOfLineState.InDoubleQuoteStringLiteral, + stringLiteral("\\"), + finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral)); }); - it("checks for a string literal", function () { - verifyClassification(results.tuples[8], 5, ts.TokenClass.StringLiteral); + it("classifies correctelly the last line of a multi-line string", function () { + test("'", + ts.EndOfLineState.InSingleQuoteStringLiteral, + stringLiteral("'"), + finalEndOfLineState(ts.EndOfLineState.Start)); }); - it("checks for a comment", function () { - verifyClassification(results.tuples[11], 7, ts.TokenClass.Comment); - }); - }); - - describe("test comment colorization after a divide operator", function () { - var results = getClassifications('1 / 1 // comment'); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[0], 1, ts.TokenClass.NumberLiteral); + it("classifies correctelly an unterminated multiline comment", function () { + test("/*", + ts.EndOfLineState.Start, + comment("/*"), + finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); }); - it("checks for a whitespace", function () { - verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); + it("classifies correctelly an unterminated multiline comment with trailing space", function () { + test("/* ", + ts.EndOfLineState.Start, + comment("/* "), + finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); }); - it("checks for a operator", function () { - verifyClassification(results.tuples[2], 1, ts.TokenClass.Operator); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[3], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[4], 1, ts.TokenClass.NumberLiteral); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[5], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a comment", function () { - verifyClassification(results.tuples[6], 10, ts.TokenClass.Comment); - }); - }); - - describe("test literal colorization after a divide operator", function () { - var results = getClassifications('1 / 2, 1 / 2'); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[0], 1, ts.TokenClass.NumberLiteral); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[1], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a operator", function () { - verifyClassification(results.tuples[2], 1, ts.TokenClass.Operator); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[3], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[4], 1, ts.TokenClass.NumberLiteral); - }); - - it("checks for a operator", function () { - verifyClassification(results.tuples[5], 1, ts.TokenClass.Operator); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[6], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[7], 1, ts.TokenClass.NumberLiteral); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[8], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a operator", function () { - verifyClassification(results.tuples[9], 1, ts.TokenClass.Operator); - }); - - it("checks for a whitespace", function () { - verifyClassification(results.tuples[10], 1, ts.TokenClass.Whitespace); - }); - - it("checks for a number literal", function () { - verifyClassification(results.tuples[11], 1, ts.TokenClass.NumberLiteral); - }); - - }); - - describe("test cases for colorizing multi-line string", function () { - it("classifies first line correctelly", function () { - var results = getClassifications("'line1\\", ts.EndOfLineState.Start); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 7, ts.TokenClass.StringLiteral); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InSingleQuoteStringLiteral); - }); - - it("classifies second line correctelly", function () { - var results = getClassifications("\\", ts.EndOfLineState.InDoubleQuoteStringLiteral); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 1, ts.TokenClass.StringLiteral); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InDoubleQuoteStringLiteral); - }); - - it("classifies third line correctelly", function () { - var results = getClassifications("'", ts.EndOfLineState.InSingleQuoteStringLiteral); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 1, ts.TokenClass.StringLiteral); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.Start); - }); - }); - - describe("test cases for colorizing unterminted multi-line comment", function () { - it("unterminated multi-line comment correctelly", function () { - var results = getClassifications("/*", ts.EndOfLineState.Start); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 2, ts.TokenClass.Comment); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InMultiLineCommentTrivia); - }); - - it("unterminated multi-line comment with trailing space correctelly", function () { - var results = getClassifications("/* ", ts.EndOfLineState.Start); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 3, ts.TokenClass.Comment); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.InMultiLineCommentTrivia); - }); - }); - - describe("test cases for colorizing keywords", function () { - it("classifies keyword after a dot", function () { - var results = getClassifications("a.var", ts.EndOfLineState.Start); - verifyClassification(results.tuples[2], 3, ts.TokenClass.Identifier); + it("classifies correctelly a keyword after a dot", function () { + test("a.var", + ts.EndOfLineState.Start, + identifier("var")); }); it("classifies keyword after a dot on previous line", function () { - var results = getClassifications("var", ts.EndOfLineState.EndingWithDotToken); - - assert.equal(results.tuples.length, 1); - verifyClassification(results.tuples[0], 3, ts.TokenClass.Identifier); - assert.equal(results.finalEndOfLineState, ts.EndOfLineState.Start); + test("var", + ts.EndOfLineState.EndingWithDotToken, + identifier("var"), + finalEndOfLineState(ts.EndOfLineState.Start)); }); }); }); \ No newline at end of file From e6c42faa7c6a0b17b2a3801590022ed0b5afa913 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 12 Aug 2014 13:47:48 -0700 Subject: [PATCH 017/106] Addressed CR feedback, removed NoPrefix messages. --- src/compiler/diagnosticInformationMap.generated.ts | 14 +++++++------- src/compiler/diagnosticMessages.json | 14 +++++++------- src/compiler/parser.ts | 2 +- src/compiler/types.ts | 1 - 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index ccf9f9249d3..b14bb896a10 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -23,7 +23,7 @@ module ts { An_index_signature_parameter_must_have_a_type_annotation: { code: 1022, category: DiagnosticCategory.Error, key: "An index signature parameter must have a type annotation." }, An_index_signature_parameter_type_must_be_string_or_number: { code: 1023, category: DiagnosticCategory.Error, key: "An index signature parameter type must be 'string' or 'number'." }, A_class_or_interface_declaration_can_only_have_one_extends_clause: { code: 1024, category: DiagnosticCategory.Error, key: "A class or interface declaration can only have one 'extends' clause." }, - An_extends_clause_must_precede_am_implements_clause: { code: 1025, category: DiagnosticCategory.Error, key: "An 'extends' clause must precede am 'implements' clause." }, + An_extends_clause_must_precede_an_implements_clause: { code: 1025, category: DiagnosticCategory.Error, key: "An 'extends' clause must precede an 'implements' clause." }, A_class_can_only_extend_a_single_class: { code: 1026, category: DiagnosticCategory.Error, key: "A class can only extend a single class." }, A_class_declaration_can_only_have_one_implements_clause: { code: 1027, category: DiagnosticCategory.Error, key: "A class declaration can only have one 'implements' clause." }, Accessibility_modifier_already_seen: { code: 1028, category: DiagnosticCategory.Error, key: "Accessibility modifier already seen." }, @@ -53,7 +53,7 @@ module ts { Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, A_declare_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, category: DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an import declaration." }, - Invalid_reference_comment: { code: 1084, category: DiagnosticCategory.Error, key: "Invalid reference comment." }, + Invalid_reference_directive_syntax: { code: 1084, category: DiagnosticCategory.Error, key: "Invalid 'reference' directive syntax." }, Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { code: 1085, category: DiagnosticCategory.Error, key: "Octal literals are not available when targeting ECMAScript 5 and higher." }, An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, category: DiagnosticCategory.Error, key: "An accessor cannot be declared in an ambient context." }, _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, category: DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a constructor declaration." }, @@ -208,12 +208,12 @@ module ts { Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 3036, category: DiagnosticCategory.Error, key: "Argument of type '{0}' is not assignable to parameter of type '{1}'." }, Index_signature_is_missing_in_type_0: { code: 4003, category: DiagnosticCategory.Error, key: "Index signature is missing in type '{0}'." }, Index_signatures_are_incompatible_Colon: { code: 4004, category: DiagnosticCategory.Error, key: "Index signatures are incompatible:" }, - Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 4016, category: DiagnosticCategory.NoPrefix, key: "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function." }, - Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 4017, category: DiagnosticCategory.NoPrefix, key: "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function." }, - Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: { code: 4018, category: DiagnosticCategory.NoPrefix, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor." }, - Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property: { code: 4019, category: DiagnosticCategory.NoPrefix, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property." }, + Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 4016, category: DiagnosticCategory.Error, key: "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function." }, + Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 4017, category: DiagnosticCategory.Error, key: "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function." }, + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: { code: 4018, category: DiagnosticCategory.Error, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor." }, + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property: { code: 4019, category: DiagnosticCategory.Error, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property." }, In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: { code: 4024, category: DiagnosticCategory.Error, key: "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element." }, - Named_properties_0_of_types_1_and_2_are_not_identical: { code: 4032, category: DiagnosticCategory.NoPrefix, key: "Named properties '{0}' of types '{1}' and '{2}' are not identical." }, + Named_properties_0_of_types_1_and_2_are_not_identical: { code: 4032, category: DiagnosticCategory.Error, key: "Named properties '{0}' of types '{1}' and '{2}' are not identical." }, The_current_host_does_not_support_the_0_option: { code: 5001, category: DiagnosticCategory.Error, key: "The current host does not support the '{0}' option." }, Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 5009, category: DiagnosticCategory.Error, key: "Cannot find the common subdirectory path for the input files." }, Cannot_read_file_0_Colon_1: { code: 5012, category: DiagnosticCategory.Error, key: "Cannot read file '{0}': {1}" }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 4b037688492..770cba1509b 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -84,7 +84,7 @@ "category": "Error", "code": 1024 }, - "An 'extends' clause must precede am 'implements' clause.": { + "An 'extends' clause must precede an 'implements' clause.": { "category": "Error", "code": 1025 }, @@ -204,7 +204,7 @@ "category": "Error", "code": 1079 }, - "Invalid reference comment.": { + "Invalid 'reference' directive syntax.": { "category": "Error", "code": 1084 }, @@ -827,19 +827,19 @@ "code": 4004 }, "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function.": { - "category": "NoPrefix", + "category": "Error", "code": 4016 }, "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function.": { - "category": "NoPrefix", + "category": "Error", "code": 4017 }, "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor.": { - "category": "NoPrefix", + "category": "Error", "code": 4018 }, "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property.": { - "category": "NoPrefix", + "category": "Error", "code": 4019 }, "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.": { @@ -847,7 +847,7 @@ "code": 4024 }, "Named properties '{0}' of types '{1}' and '{2}' are not identical.": { - "category": "NoPrefix", + "category": "Error", "code": 4032 }, "The current host does not support the '{0}' option.": { diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 6ce418452cc..b8ac11efc20 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3501,7 +3501,7 @@ module ts { if (!matchResult) { var start = range.pos; var length = range.end - start; - errorAtPos(start, length, Diagnostics.Invalid_reference_comment); + errorAtPos(start, length, Diagnostics.Invalid_reference_directive_syntax); } else { referencedFiles.push({ diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 2c9284052d5..57319ff58b2 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -931,7 +931,6 @@ module ts { Warning, Error, Message, - NoPrefix } export interface CompilerOptions { From 978855678db190f9e1303a5e085ea766e1546946 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 12 Aug 2014 15:15:45 -0700 Subject: [PATCH 018/106] Removed duplicate diagnostic. --- src/compiler/diagnosticInformationMap.generated.ts | 2 +- src/compiler/diagnosticMessages.json | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index b14bb896a10..bf4fca34f10 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -48,7 +48,7 @@ module ts { A_set_accessor_cannot_have_rest_parameter: { code: 1053, category: DiagnosticCategory.Error, key: "A 'set' accessor cannot have rest parameter." }, A_get_accessor_cannot_have_parameters: { code: 1054, category: DiagnosticCategory.Error, key: "A 'get' accessor cannot have parameters." }, Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: { code: 1056, category: DiagnosticCategory.Error, key: "Accessors are only available when targeting ECMAScript 5 and higher." }, - Enum_member_must_have_initializer: { code: -9999999, category: DiagnosticCategory.Error, key: "Enum member must have initializer." }, + Enum_member_must_have_initializer: { code: 1061, category: DiagnosticCategory.Error, key: "Enum member must have initializer." }, An_export_assignment_cannot_be_used_in_an_internal_module: { code: 1063, category: DiagnosticCategory.Error, key: "An export assignment cannot be used in an internal module." }, Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 770cba1509b..ea6f596eb5a 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1291,10 +1291,6 @@ "category": "Error", "code": -9999999 }, - "Enum member must have initializer.": { - "category": "Error", - "code": -9999999 - }, "Ambient external modules cannot be nested in other modules.": { "category": "Error", "code": -9999999 From 3e95358486261bd74aa11eeb810cafe4a4a82bf0 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 11 Aug 2014 15:54:12 -0700 Subject: [PATCH 019/106] Emit comments in the javascript code if --removecomments is not specified --- src/compiler/emitter.ts | 53 +- src/compiler/scanner.ts | 12 +- src/compiler/types.ts | 4 + ...ClassAndModuleWithSameNameAndCommonRoot.js | 2 + ...iableWithAccessibleTypeInTypeAnnotation.js | 1 + ...bleWithInaccessibleTypeInTypeAnnotation.js | 2 + ...ModuleWithExportedAndNonExportedClasses.js | 2 + .../ModuleWithExportedAndNonExportedEnums.js | 2 + ...duleWithExportedAndNonExportedFunctions.js | 2 + ...leWithExportedAndNonExportedImportAlias.js | 3 + ...duleWithExportedAndNonExportedVariables.js | 1 + ...ortedAndNonExportedClassesOfTheSameName.js | 2 + ...edAndNonExportedInterfacesOfTheSameName.js | 2 + ...tedAndNonExportedLocalVarsOfTheSameName.js | 2 + ...EachWithExportedInterfacesOfTheSameName.js | 2 + ...rgeEachWithExportedModulesOfTheSameName.js | 2 + ...esWithTheSameNameAndDifferentCommonRoot.js | 1 + ...ModulesWithTheSameNameAndSameCommonRoot.js | 1 + .../additionOperatorWithAnyAndEveryType.js | 3 + .../additionOperatorWithInvalidOperands.js | 4 + ...OperatorWithNullValueAndInvalidOperator.js | 2 + ...onOperatorWithNullValueAndValidOperator.js | 3 + ...eratorWithOnlyNullValueOrUndefinedValue.js | 1 + .../additionOperatorWithStringAndEveryType.js | 4 + .../additionOperatorWithTypeParameter.js | 3 + ...torWithUndefinedValueAndInvalidOperands.js | 2 + ...ratorWithUndefinedValueAndValidOperator.js | 3 + .../reference/ambientDeclarations.js | 1 + tests/baselines/reference/anyAsConstructor.js | 3 + .../baselines/reference/anyAsFunctionCall.js | 2 + .../reference/anyAsGenericFunctionCall.js | 2 + .../arithmeticOperatorWithAnyAndNumber.js | 10 + .../reference/arithmeticOperatorWithEnum.js | 10 + .../arithmeticOperatorWithInvalidOperands.js | 11 + ...OperatorWithNullValueAndInvalidOperands.js | 12 + ...icOperatorWithNullValueAndValidOperands.js | 10 + ...eratorWithOnlyNullValueOrUndefinedValue.js | 10 + ...torWithUndefinedValueAndInvalidOperands.js | 12 + ...ratorWithUndefinedValueAndValidOperands.js | 10 + .../reference/arrayAssignmentTest1.js | 11 + .../reference/arrayAssignmentTest2.js | 11 + .../reference/arrayAssignmentTest4.js | 11 + .../reference/arrayBestCommonTypes.js | 1 + tests/baselines/reference/arrayLiteral.js | 1 + .../reference/arrayLiteralWidened.js | 1 + ...arrayLiteralWithMultipleBestCommonTypes.js | 1 + tests/baselines/reference/arrayLiterals.js | 4 + .../reference/arrayOfFunctionTypes3.js | 1 + .../reference/arrayTypeOfFunctionTypes.js | 1 + .../reference/arrayTypeOfFunctionTypes2.js | 1 + .../reference/arrowFunctionContexts.js | 4 + .../reference/arrowFunctionExpressions.js | 5 + .../reference/assignAnyToEveryType.js | 1 + .../reference/assignEveryTypeToAny.js | 1 + .../baselines/reference/assignToInvalidLHS.js | 1 + .../assignmentCompatWithCallSignatures4.js | 3 + ...ssignmentCompatWithConstructSignatures4.js | 3 + ...signmentCompatWithGenericCallSignatures.js | 1 + .../reference/assignmentLHSIsReference.js | 2 + .../baselines/reference/augmentedTypesVar.js | 5 + .../bestCommonTypeOfConditionalExpressions.js | 2 + .../bestCommonTypeWithContextualTyping.js | 3 + .../bestCommonTypeWithOptionalProperties.js | 1 + .../bitwiseNotOperatorWithAnyOtherType.js | 5 + .../bitwiseNotOperatorWithBooleanType.js | 5 + .../bitwiseNotOperatorWithEnumType.js | 3 + .../bitwiseNotOperatorWithNumberType.js | 5 + .../bitwiseNotOperatorWithStringType.js | 5 + tests/baselines/reference/callOverloads3.js | 1 + tests/baselines/reference/callOverloads5.js | 1 + ...llSignaturesThatDifferOnlyByReturnType2.js | 1 + ...callSignaturesWithParameterInitializers.js | 1 + .../reference/classImplementsClass3.js | 1 + .../classMemberInitializerScoping.js | 1 + .../reference/classWithPublicProperty.js | 1 + .../commaOperatorWithSecondOperandAnyType.js | 2 + ...mmaOperatorWithSecondOperandBooleanType.js | 1 + ...ommaOperatorWithSecondOperandNumberType.js | 1 + ...ommaOperatorWithSecondOperandObjectType.js | 1 + ...ommaOperatorWithSecondOperandStringType.js | 1 + .../commaOperatorsMultipleOperators.js | 1 + .../reference/commentInMethodCall.js | 1 + .../commentsBeforeVariableStatement1.js | 1 + .../reference/commentsExternalModules.js | 4 + tests/baselines/reference/commentsFunction.js | 4 + tests/baselines/reference/commentsModules.js | 2 + .../reference/commentsOnReturnStatement1.js | 1 + tests/baselines/reference/commentsVarDecl.js | 13 + .../reference/commentsVariableStatement1.js | 1 + .../reference/commentsdoNotEmitComments.js | 4 + .../reference/commentsemitComments.js | 4 + .../comparisonOperatorWithIdenticalObjects.js | 8 + ...risonOperatorWithIdenticalPrimitiveType.js | 8 + ...ithNoRelationshipObjectsOnCallSignature.js | 8 + ...lationshipObjectsOnConstructorSignature.js | 8 + ...thNoRelationshipObjectsOnIndexSignature.js | 8 + ...nshipObjectsOnInstantiatedCallSignature.js | 8 + ...jectsOnInstantiatedConstructorSignature.js | 8 + ...NoRelationshipObjectsOnOptionalProperty.js | 8 + ...atorWithNoRelationshipObjectsOnProperty.js | 8 + ...OperatorWithNoRelationshipPrimitiveType.js | 8 + ...OperatorWithNoRelationshipTypeParameter.js | 8 + .../comparisonOperatorWithOneOperandIsAny.js | 8 + .../comparisonOperatorWithOneOperandIsNull.js | 8 + ...arisonOperatorWithOneOperandIsUndefined.js | 8 + ...parisonOperatorWithSubtypeEnumAndNumber.js | 8 + ...peratorWithSubtypeObjectOnCallSignature.js | 25 + ...WithSubtypeObjectOnConstructorSignature.js | 25 + ...eratorWithSubtypeObjectOnIndexSignature.js | 8 + ...ubtypeObjectOnInstantiatedCallSignature.js | 24 + ...bjectOnInstantiatedConstructorSignature.js | 24 + ...atorWithSubtypeObjectOnOptionalProperty.js | 8 + ...isonOperatorWithSubtypeObjectOnProperty.js | 8 + .../comparisonOperatorWithTypeParameter.js | 2 + .../compoundAssignmentLHSIsReference.js | 2 + tests/baselines/reference/concatError.js | 6 + ...nditionalOperatorConditionIsBooleanType.js | 2 + ...onditionalOperatorConditionIsNumberType.js | 2 + ...onditionalOperatorConditionIsObjectType.js | 2 + .../conditionalOperatorConditoinIsAnyType.js | 2 + ...onditionalOperatorConditoinIsStringType.js | 2 + .../conditionalOperatorWithIdenticalBCT.js | 5 + .../conditionalOperatorWithoutIdenticalBCT.js | 1 + .../constructorParameterShadowsOuterScopes.js | 4 + .../contextualSignatureInstantiation2.js | 1 + .../contextualSignatureInstantiation3.js | 1 + tests/baselines/reference/contextualTyping.js | 2 +- .../reference/contextualTyping.js.map | 2 +- .../reference/contextualTyping.sourcemap.txt | 2797 +++++++++-------- ...lTypingOfGenericFunctionTypedArguments1.js | 1 + ...TypingWithGenericAndNonGenericSignature.js | 1 + .../contextualTypingWithGenericSignature.js | 1 + .../baselines/reference/convertKeywordsYes.js | 1 + .../reference/declFileRegressionTests.js | 2 + .../decrementOperatorWithAnyOtherType.js | 3 + ...eratorWithAnyOtherTypeInvalidOperations.js | 4 + .../decrementOperatorWithEnumType.js | 1 + ...ntOperatorWithEnumTypeInvalidOperations.js | 2 + .../decrementOperatorWithNumberType.js | 3 + ...OperatorWithNumberTypeInvalidOperations.js | 4 + ...ementOperatorWithUnsupportedBooleanType.js | 4 + ...rementOperatorWithUnsupportedStringType.js | 4 + .../defaultArgsForwardReferencing.js | 1 + .../defaultArgsInFunctionExpressions.js | 4 + .../baselines/reference/defaultIndexProps2.js | 1 + .../deleteOperatorWithAnyOtherType.js | 5 + .../deleteOperatorWithBooleanType.js | 5 + .../reference/deleteOperatorWithEnumType.js | 3 + .../reference/deleteOperatorWithNumberType.js | 5 + .../reference/deleteOperatorWithStringType.js | 5 + .../reference/duplicateAnonymousInners1.js | 1 + .../reference/duplicateVarAndImport.js | 1 + .../reference/duplicateVarAndImport2.js | 1 + .../reference/duplicateVariablesWithAny.js | 1 + tests/baselines/reference/emitBOM.js | 3 +- tests/baselines/reference/emitBOM.js.map | 2 +- .../baselines/reference/emitBOM.sourcemap.txt | 31 +- tests/baselines/reference/emitPreComments.js | 1 + tests/baselines/reference/enumBasics.js | 6 + .../baselines/reference/escapedIdentifiers.js | 11 + .../reference/everyTypeWithInitializer.js | 1 + .../baselines/reference/exportPrivateType.js | 1 + tests/baselines/reference/functionCalls.js | 3 + .../reference/functionImplementationErrors.js | 2 + .../reference/functionImplementations.js | 10 + tests/baselines/reference/functionLiteral.js | 1 + .../reference/functionLiteralForOverloads.js | 1 + tests/baselines/reference/functionLiterals.js | 2 + .../functionWithMultipleReturnStatements2.js | 7 + tests/baselines/reference/genericArray1.js | 11 + ...nericCallWithConstructorTypedArguments5.js | 2 + .../genericCallWithFunctionTypedArguments3.js | 1 + .../genericCallWithFunctionTypedArguments5.js | 2 + ...enericCallWithGenericSignatureArguments.js | 1 + ...nericCallWithGenericSignatureArguments2.js | 1 + .../genericCallWithObjectLiteralArgs.js | 1 + .../genericCallWithObjectLiteralArguments1.js | 1 + ...icCallWithObjectTypeArgsAndConstraints3.js | 1 + .../reference/genericPrototypeProperty.js | 1 + .../genericsAndHigherOrderFunctions.js | 1 + .../reference/heterogeneousArrayLiterals.js | 2 + .../reference/ifDoWhileStatements.js | 1 + ...AnyDeclareFunctionExprWithoutFormalType.js | 3 + ...plicitAnyDeclareTypePropertyWithoutType.js | 2 + ...itAnyDeclareVariablesWithoutTypeAndInit.js | 2 + ...tAnyFunctionInvocationWithAnyArguements.js | 1 + .../reference/implicitAnyWidenToAny.js | 1 + .../inOperatorWithInvalidOperands.js | 5 + .../reference/inOperatorWithValidOperands.js | 4 + .../incrementOperatorWithAnyOtherType.js | 3 + ...eratorWithAnyOtherTypeInvalidOperations.js | 4 + .../incrementOperatorWithEnumType.js | 1 + ...ntOperatorWithEnumTypeInvalidOperations.js | 2 + .../incrementOperatorWithNumberType.js | 3 + ...OperatorWithNumberTypeInvalidOperations.js | 4 + ...ementOperatorWithUnsupportedBooleanType.js | 4 + ...rementOperatorWithUnsupportedStringType.js | 4 + ...ypingWithFunctionTypeSyntacticScenarios.js | 2 + ...nheritedOverloadedSpecializedSignatures.js | 1 + .../reference/initializersWidened.js | 1 + .../innerTypeCheckOfLambdaArgument.js | 2 + .../instanceofOperatorWithInvalidOperands.js | 5 + ...ericClassWithWrongNumberOfTypeArguments.js | 1 + ...tantiateNonGenericTypeWithTypeArguments.js | 1 + .../baselines/reference/instantiatedModule.js | 2 + .../reference/interfaceAssignmentCompat.js | 1 + .../reference/interfaceImplementation1.js | 3 + .../invalidImportAliasIdentifiers.js | 1 + .../invalidMultipleVariableDeclarations.js | 1 + .../reference/library_RegExpExecArraySlice.js | 1 + .../baselines/reference/literals-negative.js | 2 + .../logicalNotOperatorWithAnyOtherType.js | 5 + .../logicalNotOperatorWithBooleanType.js | 5 + .../logicalNotOperatorWithEnumType.js | 3 + .../logicalNotOperatorWithNumberType.js | 5 + .../logicalNotOperatorWithStringType.js | 5 + .../logicalOrExpressionIsContextuallyTyped.js | 4 + ...gicalOrExpressionIsNotContextuallyTyped.js | 5 + .../logicalOrOperatorWithTypeParameters.js | 1 + tests/baselines/reference/memberOverride.js | 2 + .../reference/mergeThreeInterfaces.js | 4 + .../baselines/reference/mergeTwoInterfaces.js | 2 + .../mergedModuleDeclarationCodeGen5.js | 1 + .../methodSignaturesWithOverloads.js | 1 + .../methodSignaturesWithOverloads2.js | 1 + .../baselines/reference/moduleIdentifiers.js | 2 + tests/baselines/reference/nameCollision.js | 2 + .../negateOperatorWithAnyOtherType.js | 4 + .../negateOperatorWithBooleanType.js | 4 + .../reference/negateOperatorWithEnumType.js | 2 + .../reference/negateOperatorWithNumberType.js | 4 + .../reference/negateOperatorWithStringType.js | 4 + .../reference/newOperatorConformance.js | 5 + ...AndPrivateMembersWithoutTypeAnnotations.js | 1 + .../baselines/reference/noImplicitAnyForIn.js | 4 + .../reference/noImplicitAnyIndexing.js | 7 + .../noImplicitAnyParametersInBareFunctions.js | 6 + .../noImplicitAnyParametersInModule.js | 6 + .../reference/nonInstantiatedModule.js | 1 + .../nullIsSubtypeOfEverythingButUndefined.js | 5 + ...cIndexerConstrainsPropertyDeclarations2.js | 1 + ...objectCreationOfElementAccessExpression.js | 1 + .../objectLitStructuralTypeMismatch.js | 1 + .../reference/objectLiteralWidened.js | 1 + ...bjectTypeWithStringNamedNumericProperty.js | 4 + ...hStringNamedPropertyOfIllegalCharacters.js | 4 + ...rloadBindingAcrossDeclarationBoundaries.js | 1 + ...loadBindingAcrossDeclarationBoundaries2.js | 1 + .../baselines/reference/overloadResolution.js | 2 + .../overloadResolutionClassConstructors.js | 1 + .../overloadResolutionConstructors.js | 3 + .../reference/overloadingOnConstants1.js | 2 + .../baselines/reference/parserS7.2_A1.5_T2.js | 1 + .../baselines/reference/parserS7.3_A1.1_T2.js | 9 + .../baselines/reference/parserS7.6_A4.2_T1.js | 9 + .../baselines/reference/parserS7.9_A5.7_T1.js | 10 + .../reference/plusOperatorWithAnyOtherType.js | 4 + .../reference/plusOperatorWithBooleanType.js | 4 + .../reference/plusOperatorWithEnumType.js | 2 + .../reference/plusOperatorWithNumberType.js | 4 + .../reference/plusOperatorWithStringType.js | 4 + ...yLocalInternalReferenceImportWithExport.js | 4 + ...calInternalReferenceImportWithoutExport.js | 4 + ...elAmbientExternalModuleImportWithExport.js | 1 + ...mbientExternalModuleImportWithoutExport.js | 1 + ...pLevelInternalReferenceImportWithExport.js | 2 + ...velInternalReferenceImportWithoutExport.js | 2 + ...tePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...tePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...olutePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...olutePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- ...otAbsolutePathSimpleNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...otAbsolutePathSimpleNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...bsolutePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...bsolutePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...vePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...vePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...ativePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...ativePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- ...otRelativePathSimpleNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...otRelativePathSimpleNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...elativePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...elativePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...aprootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../maprootUrlMultifolderNoOutdir/amd/test.js | 2 + .../amd/test.js.map | 2 +- ...aprootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../maprootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../maprootUrlSimpleNoOutdir/amd/test.js | 1 + .../maprootUrlSimpleNoOutdir/amd/test.js.map | 2 +- .../maprootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../maprootUrlSimpleNoOutdir/node/test.js | 1 + .../maprootUrlSimpleNoOutdir/node/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../maprootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../maprootUrlSubfolderNoOutdir/amd/test.js | 1 + .../amd/test.js.map | 2 +- .../maprootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../maprootUrlSubfolderNoOutdir/node/test.js | 1 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...cerootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...cerootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- ...lsourcerootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...lsourcerootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...urcerootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...urcerootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../outMixedSubfolderNoOutdir/amd/test.js | 2 + .../outMixedSubfolderNoOutdir/node/test.js | 2 + .../amd/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js | 2 + .../amd/bin/test.js | 2 + .../node/bin/test.js | 2 + .../amd/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js | 2 + .../outMultifolderNoOutdir/amd/test.js | 2 + .../outMultifolderNoOutdir/node/test.js | 2 + .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js | 2 + .../amd/bin/test.js | 2 + .../node/bin/test.js | 2 + .../project/outSimpleNoOutdir/amd/test.js | 1 + .../project/outSimpleNoOutdir/node/test.js | 1 + .../amd/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js | 1 + .../amd/bin/test.js | 1 + .../node/bin/test.js | 1 + .../project/outSubfolderNoOutdir/amd/test.js | 1 + .../project/outSubfolderNoOutdir/node/test.js | 1 + .../amd/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js | 1 + .../amd/bin/test.js | 1 + .../node/bin/test.js | 1 + ...tePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...tePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...olutePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...olutePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- ...otAbsolutePathSimpleNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...otAbsolutePathSimpleNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...bsolutePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...bsolutePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...vePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...vePathMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...ativePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...ativePathMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- ...otRelativePathSimpleNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...otRelativePathSimpleNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...ePathSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...elativePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...elativePathSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...thSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...rcemapMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...rcemapMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...sourcemapMultifolderNoOutdir.sourcemap.txt | 117 +- .../sourcemapMultifolderNoOutdir/amd/test.js | 2 + .../amd/test.js.map | 2 +- ...sourcemapMultifolderNoOutdir.sourcemap.txt | 117 +- .../sourcemapMultifolderNoOutdir/node/test.js | 2 + .../node/test.js.map | 2 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/sourcemapSimpleNoOutdir.sourcemap.txt | 107 +- .../sourcemapSimpleNoOutdir/amd/test.js | 1 + .../sourcemapSimpleNoOutdir/amd/test.js.map | 2 +- .../sourcemapSimpleNoOutdir.sourcemap.txt | 107 +- .../sourcemapSimpleNoOutdir/node/test.js | 1 + .../sourcemapSimpleNoOutdir/node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...cemapSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...cemapSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../sourcemapSubfolderNoOutdir.sourcemap.txt | 107 +- .../sourcemapSubfolderNoOutdir/amd/test.js | 1 + .../amd/test.js.map | 2 +- .../sourcemapSubfolderNoOutdir.sourcemap.txt | 107 +- .../sourcemapSubfolderNoOutdir/node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...apSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...apSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...ootUrlMixedSubfolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 2 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../node/outdir/simple/test.js | 2 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...edSubfolderSpecifyOutputFile.sourcemap.txt | 119 +- .../amd/bin/outAndOutDirFile.js | 2 + .../amd/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- .../node/bin/outAndOutDirFile.js | 2 + .../node/bin/outAndOutDirFile.js.map | 2 +- ...OutputFileAndOutputDirectory.sourcemap.txt | 119 +- ...cerootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../amd/test.js | 2 + .../amd/test.js.map | 2 +- ...cerootUrlMultifolderNoOutdir.sourcemap.txt | 117 +- .../node/test.js | 2 + .../node/test.js.map | 2 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../simple/outputdir_multifolder/test.js | 2 + .../simple/outputdir_multifolder/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 117 +- .../amd/bin/test.js | 2 + .../amd/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../node/bin/test.js | 2 + .../node/bin/test.js.map | 2 +- ...MultifolderSpecifyOutputFile.sourcemap.txt | 119 +- .../sourcerootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../sourcerootUrlSimpleNoOutdir/amd/test.js | 1 + .../amd/test.js.map | 2 +- .../sourcerootUrlSimpleNoOutdir.sourcemap.txt | 107 +- .../sourcerootUrlSimpleNoOutdir/node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...SimpleSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...otUrlSimpleSpecifyOutputFile.sourcemap.txt | 109 +- ...urcerootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../amd/test.js | 1 + .../amd/test.js.map | 2 +- ...urcerootUrlSubfolderNoOutdir.sourcemap.txt | 107 +- .../node/test.js | 1 + .../node/test.js.map | 2 +- .../amd/outdir/simple/test.js | 1 + .../amd/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../node/outdir/simple/test.js | 1 + .../node/outdir/simple/test.js.map | 2 +- ...folderSpecifyOutputDirectory.sourcemap.txt | 107 +- .../amd/bin/test.js | 1 + .../amd/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- .../node/bin/test.js | 1 + .../node/bin/test.js.map | 2 +- ...rlSubfolderSpecifyOutputFile.sourcemap.txt | 109 +- tests/baselines/reference/promiseChaining.js | 1 + tests/baselines/reference/promiseChaining1.js | 1 + tests/baselines/reference/promiseChaining2.js | 1 + tests/baselines/reference/promiseIdentity.js | 2 + tests/baselines/reference/promiseIdentity2.js | 2 + .../reference/promiseIdentityWithAny.js | 1 + .../reference/promiseIdentityWithAny2.js | 2 + .../promiseIdentityWithConstraints.js | 1 + tests/baselines/reference/propertyAccess.js | 27 + ...tyAccessOnTypeParameterWithConstraints2.js | 26 + ...tyAccessOnTypeParameterWithConstraints3.js | 4 + ...tyAccessOnTypeParameterWithConstraints5.js | 1 + .../propertyNameWithoutTypeAnnotation.js | 1 + .../propertyParameterWithQuestionMark.js | 1 + .../baselines/reference/propertySignatures.js | 5 + .../protoAsIndexInIndexExpression.js | 1 + .../reference/recursiveInitializer.js | 4 + tests/baselines/reference/reservedWords.js | 1 + .../reference/scannerS7.2_A1.5_T2.js | 1 + .../reference/scannerS7.3_A1.1_T2.js | 9 + .../reference/scannerS7.6_A4.2_T1.js | 9 + .../reference/scopeResolutionIdentifiers.js | 1 + .../reference/sourceMap-FileWithComments.js | 5 + .../sourceMap-FileWithComments.js.map | 2 +- .../sourceMap-FileWithComments.sourcemap.txt | 256 +- .../sourceMapValidationWithComments.js | 1 + .../sourceMapValidationWithComments.js.map | 2 +- ...rceMapValidationWithComments.sourcemap.txt | 146 +- .../reference/staticInstanceResolution5.js | 1 + ...gIndexerConstrainsPropertyDeclarations2.js | 1 + tests/baselines/reference/styleOptions.js | 1 + ...subtypesOfTypeParameterWithConstraints2.js | 4 + ...subtypesOfTypeParameterWithConstraints3.js | 3 + ...subtypesOfTypeParameterWithConstraints4.js | 6 + ...OfTypeParameterWithRecursiveConstraints.js | 12 + .../subtypingWithObjectMembersOptionality.js | 2 + .../subtypingWithObjectMembersOptionality2.js | 1 + .../subtypingWithObjectMembersOptionality3.js | 1 + .../subtypingWithObjectMembersOptionality4.js | 1 + tests/baselines/reference/superCalls.js | 1 + tests/baselines/reference/targetTypeTest2.js | 1 + tests/baselines/reference/targetTypeTest3.js | 1 + .../reference/thisInObjectLiterals.js | 2 + tests/baselines/reference/throwStatements.js | 1 + .../reference/typeArgumentInference.js | 3 + ...ypeArgumentInferenceConstructSignatures.js | 3 + .../typeArgumentInferenceWithConstraints.js | 3 + tests/baselines/reference/typeAssertions.js | 2 + .../reference/typeCheckTypeArgument.js | 1 + .../reference/typeOfThisInStaticMembers.js | 4 + .../typeParamExtendsOtherTypeParam.js | 2 + .../typeParameterWithInvalidConstraintType.js | 1 + tests/baselines/reference/typeResolution.js | 11 + .../baselines/reference/typeResolution.js.map | 2 +- .../reference/typeResolution.sourcemap.txt | 1519 ++++----- .../typeofOperatorWithAnyOtherType.js | 6 + .../typeofOperatorWithBooleanType.js | 6 + .../reference/typeofOperatorWithEnumType.js | 3 + .../reference/typeofOperatorWithNumberType.js | 6 + .../reference/typeofOperatorWithStringType.js | 6 + .../reference/typeofUnknownSymbol.js | 1 + ...typesOnlyExternalModuleStillHasInstance.js | 1 + tests/baselines/reference/unaryPlus.js | 2 + tests/baselines/reference/underscoreTest1.js | 4 + .../reference/unicodeIdentifierNames.js | 2 + ...untypedFunctionCallsWithTypeParameters1.js | 1 + .../validMultipleVariableDeclarations.js | 1 + .../reference/voidOperatorWithAnyOtherType.js | 5 + .../reference/voidOperatorWithBooleanType.js | 5 + .../reference/voidOperatorWithEnumType.js | 3 + .../reference/voidOperatorWithNumberType.js | 5 + .../reference/voidOperatorWithStringType.js | 5 + tests/baselines/reference/widenedTypes.js | 1 + tests/baselines/reference/withImportDecl.js | 1 + .../reference/withStatementNestedScope.js | 1 + tests/baselines/reference/witness.js | 7 + 993 files changed, 17585 insertions(+), 12763 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 7e11b978c67..c43e8b987fe 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -10,6 +10,7 @@ module ts { getLine(): number; getColumn(): number; getIndent(): number; + isLineStart(): boolean; } var indentStrings: string[] = []; @@ -146,7 +147,8 @@ module ts { getTextPos: () => output.length, getLine: () => lineCount + 1, getColumn: () => lineStart ? indent * 4 + 1 : output.length - linePos + 1, - getText: () => output + getText: () => output, + isLineStart: () => lineStart }; } @@ -177,14 +179,24 @@ module ts { /** write emitted output to disk*/ var writeEmittedFiles = writeJavaScriptFile; + /** Emit leading comments of the declaration */ + var emitLeadingComments = compilerOptions.removeComments ? function (declaration: Declaration) { + } : emitLeadingDeclarationComments; + + /** Emit Trailing comments of the declaration */ + var emitTrailingComments = compilerOptions.removeComments ? function (declaration: Declaration) { + } : emitTrailingDeclarationComments; + + var writeComment = writeCommentRange; + /** Emit a node */ var emit = emitNode; /** Called just before starting emit of a node */ - var emitStart = function (node: Node) { } + var emitStart = function (node: Node) { }; /** Called once the emit of the node is done */ - var emitEnd = function (node: Node) { } + var 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 @@ -428,6 +440,12 @@ module ts { sourceMapNameIndices.pop(); }; + function writeCommentRangeWithMap(comment: Comment) { + recordSourceMapSpan(comment.pos); + writeCommentRange(comment); + recordSourceMapSpan(comment.end); + } + function writeJavaScriptAndSourceMapFile(emitOutput: string, writeByteOrderMark: boolean) { // Write source map file encodeLastRecordedSourceMapSpan(); @@ -513,6 +531,7 @@ module ts { emitNewSourceFileStart = recordNewSourceFileStart; scopeEmitStart = recordScopeNameOfNode; scopeEmitEnd = recordScopeNameEnd; + writeComment = writeCommentRangeWithMap; } function writeJavaScriptFile(emitOutput: string, writeByteOrderMark: boolean) { @@ -1057,14 +1076,18 @@ module ts { } function emitVariableDeclaration(node: VariableDeclaration) { + emitLeadingComments(node); emitModuleMemberName(node); emitOptional(" = ", node.initializer); + emitTrailingComments(node); } function emitVariableStatement(node: VariableStatement) { + emitLeadingComments(node); if (!(node.flags & NodeFlags.Export)) write("var "); emitCommaList(node.declarations); write(";"); + emitTrailingComments(node); } function emitParameter(node: ParameterDeclaration) { @@ -1840,6 +1863,30 @@ module ts { } } + function writeCommentRange(comment: Comment) { + writer.writeLiteral(currentSourceFile.text.substring(comment.pos, comment.end)); + } + + function emitComments(comments: Comment[]) { + forEach(comments, comment => { + writeComment(comment); + if (comment.hasTrailingNewLine) { + writer.writeLine(); + } else { + writer.write(" "); + } + }); + } + + function emitLeadingDeclarationComments(node: Declaration) { + var leadingComments = getLeadingComments(currentSourceFile.text, node.pos); + emitComments(leadingComments); + } + + function emitTrailingDeclarationComments(node: Declaration) { + var trailingComments = getTrailingComments(currentSourceFile.text, node.end); + } + if (compilerOptions.sourceMap) { initializeEmitterWithSourceMaps(); } diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 2de92ed02cc..a53333b3c5f 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -359,9 +359,9 @@ module ts { // between the given position and the next line break are returned. The return value is an array containing a TextRange for each // comment. Single-line comment ranges include the 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. - function getCommentRanges(text: string, pos: number, trailing: boolean): TextRange[] { - var result: TextRange[]; - var collecting = trailing; + function getCommentRanges(text: string, pos: number, trailing: boolean): Comment[] { + var result: Comment[]; + var collecting = trailing || pos === 0; while (true) { var ch = text.charCodeAt(pos); switch (ch) { @@ -373,6 +373,9 @@ module ts { return result; } collecting = true; + if (result && result.length) { + result[result.length - 1].hasTrailingNewLine = true; + } continue; case CharacterCodes.tab: case CharacterCodes.verticalTab: @@ -411,6 +414,9 @@ module ts { break; default: if (ch > CharacterCodes.maxAsciiCharacter && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (result && result.length && isLineBreak(ch)) { + result[result.length - 1].hasTrailingNewLine = true; + } pos++; continue; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 11d30c33937..2c7cdd27d9f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -512,6 +512,10 @@ module ts { filename: string; } + export interface Comment extends TextRange { + hasTrailingNewLine?: boolean; + } + export interface SourceFile extends Block { filename: string; text: string; diff --git a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js index 994da294ea9..8babd703b0f 100644 --- a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js @@ -67,6 +67,7 @@ var X; var Y = X.Y; })(X || (X = {})); //// [test.js] +//var cl: { x: number; y: number; } var cl = new X.Y.Point(1, 1); var cl = X.Y.Point.Origin; //// [simple.js] @@ -79,6 +80,7 @@ var A; (function (A) { A.Instance = new A(); })(A || (A = {})); +// ensure merging works as expected var a = A.Instance; var a = new A(); var a; diff --git a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js index e23d7ae1456..591845b627e 100644 --- a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js +++ b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js @@ -14,5 +14,6 @@ module A { //// [ExportVariableWithAccessibleTypeInTypeAnnotation.js] var A; (function (A) { + // valid since Point is exported A.Origin = { x: 0, y: 0 }; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js index f6e60e3f4ab..d63edb65569 100644 --- a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js +++ b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js @@ -21,6 +21,8 @@ module A { //// [ExportVariableWithInaccessibleTypeInTypeAnnotation.js] var A; (function (A) { + // valid since Point is exported A.Origin = { x: 0, y: 0 }; + // invalid Point3d is not exported A.Origin3d = { x: 0, y: 0, z: 0 }; })(A || (A = {})); diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js index 590bf1bb794..7555ae217e5 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js @@ -59,8 +59,10 @@ var A; return AG2; })(); })(A || (A = {})); +// no errors expected, these are all exported var a; var a = new A.A(); var AG = new A.AG(); +// errors expected, these are not exported var a2 = new A.A2(); var ag2 = new A.A2(); diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js index 6a147257323..afcef6bbb5c 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js @@ -25,5 +25,7 @@ var A; Day[Day["Tuesday"] = 1] = "Tuesday"; })(Day || (Day = {})); })(A || (A = {})); +// not an error since exported var a = 0 /* Red */; +// error not exported var b = A.Day.Monday; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js index 35b5959bfcd..d7e5eed0dfb 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js @@ -47,9 +47,11 @@ var A; return null; } })(A || (A = {})); +// these should not be errors since the functions are exported var fn; var fn = A.fn; var fng; var fng = A.fng; +// these should be errors since the functions are not exported var fn2 = A.fn2; var fng2 = A.fng2; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js index 101031740cc..e31ca5d5885 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js @@ -55,11 +55,14 @@ var Geometry; (function (Geometry) { var Lines = B; Geometry.Origin = { x: 0, y: 0 }; + // this is valid since B.Line _is_ visible outside Geometry Geometry.Unit = new Lines.Line(Geometry.Origin, { x: 1, y: 0 }); })(Geometry || (Geometry = {})); +// expected to work since all are exported var p; var p; var p = Geometry.Origin; var line; var line = Geometry.Unit; +// not expected to work since non are exported var line = Geometry.Lines.Line; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js index 2563aafd95a..0a2c63342c6 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js @@ -20,4 +20,5 @@ var A; })(A || (A = {})); var x; var x = A.x; +// Error, since y is not exported var y = A.y; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index 670c15add79..20347e54e83 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -61,6 +61,7 @@ var A; return Point; })(); })(A || (A = {})); +// ensure merges as expected var p; var p; var X; @@ -92,5 +93,6 @@ var X; })(X.Y || (X.Y = {})); var Y = X.Y; })(X || (X = {})); +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js index d18d8fe7a26..b9218ea1a55 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js @@ -38,7 +38,9 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js] +// ensure merges as expected var p; var p; +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js index 809b4e64896..c845dbe8705 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js @@ -56,6 +56,7 @@ var A; //// [part2.js] var A; (function (A) { + // not a collision, since we don't export var Origin = "0,0"; (function (Utils) { var Plane = (function () { @@ -70,6 +71,7 @@ var A; var Utils = A.Utils; })(A || (A = {})); //// [part3.js] +// test the merging actually worked var o; var o; var o = A.Origin; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js index 0f77987ee92..b54a0938a32 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js @@ -38,7 +38,9 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js] +// ensure merges as expected var p; var p; +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js index 06881ce3ef6..c629923c131 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js @@ -49,6 +49,7 @@ var A; B.x; })(B || (B = {})); })(A || (A = {})); +// ensure the right var decl is exported var x; var x = A.B.x; var X; @@ -81,5 +82,6 @@ var X; })(X.Y || (X.Y = {})); var Y = X.Y; })(X || (X = {})); +// make sure merging works as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js index bb44fdfdd37..3af271ed820 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js @@ -48,6 +48,7 @@ var Root; var otherRoot; (function (otherRoot) { (function (A) { + // have to be fully qualified since in different root A.Origin = { x: 0, y: 0 }; (function (Utils) { var Plane = (function () { diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js index ae716b2db55..07350eba553 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js @@ -67,6 +67,7 @@ var A; var Utils = A.Utils; })(A || (A = {})); //// [part3.js] +// test the merging actually worked var o; var o; var o = A.Origin; diff --git a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js index b6fa51ae5de..c4e30f95db2 100644 --- a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js @@ -64,15 +64,18 @@ var b; var c; var d; var e; +// any as left operand, result is type Any except plusing string var r1 = a + a; var r2 = a + b; var r3 = a + c; var r4 = a + d; var r5 = a + e; +// any as right operand, result is type Any except plusing string var r6 = b + a; var r7 = c + a; var r8 = d + a; var r9 = e + a; +// other cases var r10 = a + foo; var r11 = a + foo(); var r12 = a + C; diff --git a/tests/baselines/reference/additionOperatorWithInvalidOperands.js b/tests/baselines/reference/additionOperatorWithInvalidOperands.js index 038094a64dd..85baac8f9ca 100644 --- a/tests/baselines/reference/additionOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithInvalidOperands.js @@ -64,15 +64,19 @@ var a; var b; var c; var d; +// boolean + every type except any and string var r1 = a + a; var r2 = a + b; var r3 = a + c; +// number + every type except any and string var r4 = b + a; var r5 = b + b; var r6 = b + c; +// object + every type except any and string var r7 = c + a; var r8 = c + b; var r9 = c + c; +// other cases var r10 = a + true; var r11 = true + false; var r12 = true + 123; diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js index 61ac4a9fc88..40093289d6b 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js +++ b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js @@ -31,12 +31,14 @@ var a; var b; var c; var d; +// null + boolean/Object var r1 = null + a; var r2 = null + b; var r3 = null + c; var r4 = a + null; var r5 = b + null; var r6 = null + c; +// other cases var r7 = null + d; var r8 = null + true; var r9 = null + { a: '' }; diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js index ed3d2b6a992..bf260153c83 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js +++ b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js @@ -41,8 +41,10 @@ var a; var b; var c; var d; +// null + any var r1 = null + a; var r2 = a + null; +// null + number/enum var r3 = null + b; var r4 = null + 1; var r5 = null + c; @@ -53,6 +55,7 @@ var r9 = 1 + null; var r10 = c + null; var r11 = 0 /* a */ + null; var r12 = E['a'] + null; +// null + string var r13 = null + d; var r14 = null + ''; var r15 = d + null; diff --git a/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js b/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js index 4e1200d876b..1ed9b3e9708 100644 --- a/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js +++ b/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js @@ -6,6 +6,7 @@ var r3 = undefined + null; var r4 = undefined + undefined; //// [additionOperatorWithOnlyNullValueOrUndefinedValue.js] +// bug 819721 var r1 = null + null; var r2 = null + undefined; var r3 = undefined + null; diff --git a/tests/baselines/reference/additionOperatorWithStringAndEveryType.js b/tests/baselines/reference/additionOperatorWithStringAndEveryType.js index 549ce5aafb1..ecce65ba577 100644 --- a/tests/baselines/reference/additionOperatorWithStringAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithStringAndEveryType.js @@ -53,6 +53,8 @@ var e; var f; var g; var x; +// string could plus every type, and the result is always string +// string as left operand var r1 = x + a; var r2 = x + b; var r3 = x + c; @@ -60,6 +62,7 @@ var r4 = x + d; var r5 = x + e; var r6 = x + f; var r7 = x + g; +// string as right operand var r8 = a + x; var r9 = b + x; var r10 = c + x; @@ -67,6 +70,7 @@ var r11 = d + x; var r12 = e + x; var r13 = f + x; var r14 = g + x; +// other cases var r15 = x + E; var r16 = x + 0 /* a */; var r17 = x + ''; diff --git a/tests/baselines/reference/additionOperatorWithTypeParameter.js b/tests/baselines/reference/additionOperatorWithTypeParameter.js index d08ac3cc62e..1684182f002 100644 --- a/tests/baselines/reference/additionOperatorWithTypeParameter.js +++ b/tests/baselines/reference/additionOperatorWithTypeParameter.js @@ -52,6 +52,7 @@ function foo(t, u) { var e; var g; var f; + // type parameter as left operand var r1 = t + a; var r2 = t + b; var r3 = t + c; @@ -59,6 +60,7 @@ function foo(t, u) { var r5 = t + e; var r6 = t + g; var r7 = t + f; + // type parameter as right operand var r8 = a + t; var r9 = b + t; var r10 = c + t; @@ -66,6 +68,7 @@ function foo(t, u) { var r12 = e + t; var r13 = g + t; var r14 = f + t; + // other cases var r15 = t + null; var r16 = t + undefined; var r17 = t + t; diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js index 4eb72595851..a7444c9c94b 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js @@ -31,12 +31,14 @@ var a; var b; var c; var d; +// undefined + boolean/Object var r1 = undefined + a; var r2 = undefined + b; var r3 = undefined + c; var r4 = a + undefined; var r5 = b + undefined; var r6 = undefined + c; +// other cases var r7 = undefined + d; var r8 = undefined + true; var r9 = undefined + { a: '' }; diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js index a5d3037ae38..8dc995f9d9e 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js @@ -41,8 +41,10 @@ var a; var b; var c; var d; +// undefined + any var r1 = undefined + a; var r2 = a + undefined; +// undefined + number/enum var r3 = undefined + b; var r4 = undefined + 1; var r5 = undefined + c; @@ -53,6 +55,7 @@ var r9 = 1 + undefined; var r10 = c + undefined; var r11 = 0 /* a */ + undefined; var r12 = E['a'] + undefined; +// undefined + string var r13 = undefined + d; var r14 = undefined + ''; var r15 = d + undefined; diff --git a/tests/baselines/reference/ambientDeclarations.js b/tests/baselines/reference/ambientDeclarations.js index 8d03ac0a600..729ecf7d45e 100644 --- a/tests/baselines/reference/ambientDeclarations.js +++ b/tests/baselines/reference/ambientDeclarations.js @@ -78,5 +78,6 @@ declare module 'external1' { //// [ambientDeclarations.js] var x = E3.B; +// Ambient module members are always exported with or without export keyword var p = M1.x; var q = M1.fn(); diff --git a/tests/baselines/reference/anyAsConstructor.js b/tests/baselines/reference/anyAsConstructor.js index 1924a2bd285..409a86dcc9b 100644 --- a/tests/baselines/reference/anyAsConstructor.js +++ b/tests/baselines/reference/anyAsConstructor.js @@ -11,8 +11,11 @@ var c = new x(x); var d = new x(x); // no error //// [anyAsConstructor.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = new x(); var b = new x('hello'); var c = new x(x); +// grammar allows this for constructors var d = new x(x); diff --git a/tests/baselines/reference/anyAsFunctionCall.js b/tests/baselines/reference/anyAsFunctionCall.js index 468c0a98f4d..9b1e0852de9 100644 --- a/tests/baselines/reference/anyAsFunctionCall.js +++ b/tests/baselines/reference/anyAsFunctionCall.js @@ -8,6 +8,8 @@ var b = x('hello'); var c = x(x); //// [anyAsFunctionCall.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = x(); var b = x('hello'); diff --git a/tests/baselines/reference/anyAsGenericFunctionCall.js b/tests/baselines/reference/anyAsGenericFunctionCall.js index 6d61470bd17..64097f4e3c7 100644 --- a/tests/baselines/reference/anyAsGenericFunctionCall.js +++ b/tests/baselines/reference/anyAsGenericFunctionCall.js @@ -11,6 +11,8 @@ var c = x(x); var d = x(x); //// [anyAsGenericFunctionCall.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = x(); var b = x('hello'); diff --git a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js index 0bb27138c23..7cb45f63230 100644 --- a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js +++ b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js @@ -105,6 +105,7 @@ var rj8 = b | b; //// [arithmeticOperatorWithAnyAndNumber.js] var a; var b; +// operator * var ra1 = a * a; var ra2 = a * b; var ra3 = a * 0; @@ -113,6 +114,7 @@ var ra5 = 0 * 0; var ra6 = b * 0; var ra7 = 0 * b; var ra8 = b * b; +// operator / var rb1 = a / a; var rb2 = a / b; var rb3 = a / 0; @@ -121,6 +123,7 @@ var rb5 = 0 / 0; var rb6 = b / 0; var rb7 = 0 / b; var rb8 = b / b; +// operator % var rc1 = a % a; var rc2 = a % b; var rc3 = a % 0; @@ -129,6 +132,7 @@ var rc5 = 0 % 0; var rc6 = b % 0; var rc7 = 0 % b; var rc8 = b % b; +// operator - var rd1 = a - a; var rd2 = a - b; var rd3 = a - 0; @@ -137,6 +141,7 @@ var rd5 = 0 - 0; var rd6 = b - 0; var rd7 = 0 - b; var rd8 = b - b; +// operator << var re1 = a << a; var re2 = a << b; var re3 = a << 0; @@ -145,6 +150,7 @@ var re5 = 0 << 0; var re6 = b << 0; var re7 = 0 << b; var re8 = b << b; +// operator >> var rf1 = a >> a; var rf2 = a >> b; var rf3 = a >> 0; @@ -153,6 +159,7 @@ var rf5 = 0 >> 0; var rf6 = b >> 0; var rf7 = 0 >> b; var rf8 = b >> b; +// operator >>> var rg1 = a >>> a; var rg2 = a >>> b; var rg3 = a >>> 0; @@ -161,6 +168,7 @@ var rg5 = 0 >>> 0; var rg6 = b >>> 0; var rg7 = 0 >>> b; var rg8 = b >>> b; +// operator & var rh1 = a & a; var rh2 = a & b; var rh3 = a & 0; @@ -169,6 +177,7 @@ var rh5 = 0 & 0; var rh6 = b & 0; var rh7 = 0 & b; var rh8 = b & b; +// operator ^ var ri1 = a ^ a; var ri2 = a ^ b; var ri3 = a ^ 0; @@ -177,6 +186,7 @@ var ri5 = 0 ^ 0; var ri6 = b ^ 0; var ri7 = 0 ^ b; var ri8 = b ^ b; +// operator | var rj1 = a | a; var rj2 = a | b; var rj3 = a | 0; diff --git a/tests/baselines/reference/arithmeticOperatorWithEnum.js b/tests/baselines/reference/arithmeticOperatorWithEnum.js index ac2bfb233ed..349266c4fb3 100644 --- a/tests/baselines/reference/arithmeticOperatorWithEnum.js +++ b/tests/baselines/reference/arithmeticOperatorWithEnum.js @@ -159,6 +159,7 @@ var E; var a; var b; var c; +// operator * var ra1 = c * a; var ra2 = c * b; var ra3 = c * c; @@ -171,6 +172,7 @@ var ra9 = 0 /* a */ * 1; var ra10 = a * 1 /* b */; var ra11 = b * 1 /* b */; var ra12 = 1 * 1 /* b */; +// operator / var rb1 = c / a; var rb2 = c / b; var rb3 = c / c; @@ -183,6 +185,7 @@ var rb9 = 0 /* a */ / 1; var rb10 = a / 1 /* b */; var rb11 = b / 1 /* b */; var rb12 = 1 / 1 /* b */; +// operator % var rc1 = c % a; var rc2 = c % b; var rc3 = c % c; @@ -195,6 +198,7 @@ var rc9 = 0 /* a */ % 1; var rc10 = a % 1 /* b */; var rc11 = b % 1 /* b */; var rc12 = 1 % 1 /* b */; +// operator - var rd1 = c - a; var rd2 = c - b; var rd3 = c - c; @@ -207,6 +211,7 @@ var rd9 = 0 /* a */ - 1; var rd10 = a - 1 /* b */; var rd11 = b - 1 /* b */; var rd12 = 1 - 1 /* b */; +// operator << var re1 = c << a; var re2 = c << b; var re3 = c << c; @@ -219,6 +224,7 @@ var re9 = 0 /* a */ << 1; var re10 = a << 1 /* b */; var re11 = b << 1 /* b */; var re12 = 1 << 1 /* b */; +// operator >> var rf1 = c >> a; var rf2 = c >> b; var rf3 = c >> c; @@ -231,6 +237,7 @@ var rf9 = 0 /* a */ >> 1; var rf10 = a >> 1 /* b */; var rf11 = b >> 1 /* b */; var rf12 = 1 >> 1 /* b */; +// operator >>> var rg1 = c >>> a; var rg2 = c >>> b; var rg3 = c >>> c; @@ -243,6 +250,7 @@ var rg9 = 0 /* a */ >>> 1; var rg10 = a >>> 1 /* b */; var rg11 = b >>> 1 /* b */; var rg12 = 1 >>> 1 /* b */; +// operator & var rh1 = c & a; var rh2 = c & b; var rh3 = c & c; @@ -255,6 +263,7 @@ var rh9 = 0 /* a */ & 1; var rh10 = a & 1 /* b */; var rh11 = b & 1 /* b */; var rh12 = 1 & 1 /* b */; +// operator ^ var ri1 = c ^ a; var ri2 = c ^ b; var ri3 = c ^ c; @@ -267,6 +276,7 @@ var ri9 = 0 /* a */ ^ 1; var ri10 = a ^ 1 /* b */; var ri11 = b ^ 1 /* b */; var ri12 = 1 ^ 1 /* b */; +// operator | var rj1 = c | a; var rj2 = c | b; var rj3 = c | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js index 6e4fb872d1e..b41e3969b77 100644 --- a/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js @@ -594,6 +594,8 @@ var c; var d; var e; var f; +// All of the below should be an error unless otherwise noted +// operator * var r1a1 = a * a; var r1a2 = a * b; var r1a3 = a * c; @@ -642,6 +644,7 @@ var r1h3 = c * 1 /* b */; var r1h4 = d * 1 /* b */; var r1h5 = e * 1 /* b */; var r1h6 = f * 1 /* b */; +// operator / var r2a1 = a / a; var r2a2 = a / b; var r2a3 = a / c; @@ -690,6 +693,7 @@ var r2h3 = c / 1 /* b */; var r2h4 = d / 1 /* b */; var r2h5 = e / 1 /* b */; var r2h6 = f / 1 /* b */; +// operator % var r3a1 = a % a; var r3a2 = a % b; var r3a3 = a % c; @@ -738,6 +742,7 @@ var r3h3 = c % 1 /* b */; var r3h4 = d % 1 /* b */; var r3h5 = e % 1 /* b */; var r3h6 = f % 1 /* b */; +// operator - var r4a1 = a - a; var r4a2 = a - b; var r4a3 = a - c; @@ -786,6 +791,7 @@ var r4h3 = c - 1 /* b */; var r4h4 = d - 1 /* b */; var r4h5 = e - 1 /* b */; var r4h6 = f - 1 /* b */; +// operator << var r5a1 = a << a; var r5a2 = a << b; var r5a3 = a << c; @@ -834,6 +840,7 @@ var r5h3 = c << 1 /* b */; var r5h4 = d << 1 /* b */; var r5h5 = e << 1 /* b */; var r5h6 = f << 1 /* b */; +// operator >> var r6a1 = a >> a; var r6a2 = a >> b; var r6a3 = a >> c; @@ -882,6 +889,7 @@ var r6h3 = c >> 1 /* b */; var r6h4 = d >> 1 /* b */; var r6h5 = e >> 1 /* b */; var r6h6 = f >> 1 /* b */; +// operator >>> var r7a1 = a >>> a; var r7a2 = a >>> b; var r7a3 = a >>> c; @@ -930,6 +938,7 @@ var r7h3 = c >>> 1 /* b */; var r7h4 = d >>> 1 /* b */; var r7h5 = e >>> 1 /* b */; var r7h6 = f >>> 1 /* b */; +// operator & var r8a1 = a & a; var r8a2 = a & b; var r8a3 = a & c; @@ -978,6 +987,7 @@ var r8h3 = c & 1 /* b */; var r8h4 = d & 1 /* b */; var r8h5 = e & 1 /* b */; var r8h6 = f & 1 /* b */; +// operator ^ var r9a1 = a ^ a; var r9a2 = a ^ b; var r9a3 = a ^ c; @@ -1026,6 +1036,7 @@ var r9h3 = c ^ 1 /* b */; var r9h4 = d ^ 1 /* b */; var r9h5 = e ^ 1 /* b */; var r9h6 = f ^ 1 /* b */; +// operator | var r10a1 = a | a; var r10a2 = a | b; var r10a3 = a | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js index 99849fbb818..b277abb668d 100644 --- a/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js @@ -177,9 +177,12 @@ var r10d2 = '' | null; var r10d3 = {} | null; //// [arithmeticOperatorWithNullValueAndInvalidOperands.js] +// If one operand is the null or undefined value, it is treated as having the type of the +// other operand. var a; var b; var c; +// operator * var r1a1 = null * a; var r1a2 = null * b; var r1a3 = null * c; @@ -192,6 +195,7 @@ var r1c3 = null * {}; var r1d1 = true * null; var r1d2 = '' * null; var r1d3 = {} * null; +// operator / var r2a1 = null / a; var r2a2 = null / b; var r2a3 = null / c; @@ -204,6 +208,7 @@ var r2c3 = null / {}; var r2d1 = true / null; var r2d2 = '' / null; var r2d3 = {} / null; +// operator % var r3a1 = null % a; var r3a2 = null % b; var r3a3 = null % c; @@ -216,6 +221,7 @@ var r3c3 = null % {}; var r3d1 = true % null; var r3d2 = '' % null; var r3d3 = {} % null; +// operator - var r4a1 = null - a; var r4a2 = null - b; var r4a3 = null - c; @@ -228,6 +234,7 @@ var r4c3 = null - {}; var r4d1 = true - null; var r4d2 = '' - null; var r4d3 = {} - null; +// operator << var r5a1 = null << a; var r5a2 = null << b; var r5a3 = null << c; @@ -240,6 +247,7 @@ var r5c3 = null << {}; var r5d1 = true << null; var r5d2 = '' << null; var r5d3 = {} << null; +// operator >> var r6a1 = null >> a; var r6a2 = null >> b; var r6a3 = null >> c; @@ -252,6 +260,7 @@ var r6c3 = null >> {}; var r6d1 = true >> null; var r6d2 = '' >> null; var r6d3 = {} >> null; +// operator >>> var r7a1 = null >>> a; var r7a2 = null >>> b; var r7a3 = null >>> c; @@ -264,6 +273,7 @@ var r7c3 = null >>> {}; var r7d1 = true >>> null; var r7d2 = '' >>> null; var r7d3 = {} >>> null; +// operator & var r8a1 = null & a; var r8a2 = null & b; var r8a3 = null & c; @@ -276,6 +286,7 @@ var r8c3 = null & {}; var r8d1 = true & null; var r8d2 = '' & null; var r8d3 = {} & null; +// operator ^ var r9a1 = null ^ a; var r9a2 = null ^ b; var r9a3 = null ^ c; @@ -288,6 +299,7 @@ var r9c3 = null ^ {}; var r9d1 = true ^ null; var r9d2 = '' ^ null; var r9d3 = {} ^ null; +// operator | var r10a1 = null | a; var r10a2 = null | b; var r10a3 = null | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js index 1775564bfa2..a60302bf0b2 100644 --- a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js @@ -118,6 +118,7 @@ var E; })(E || (E = {})); var a; var b; +// operator * var ra1 = null * a; var ra2 = null * b; var ra3 = null * 1; @@ -126,6 +127,7 @@ var ra5 = a * null; var ra6 = b * null; var ra7 = 0 * null; var ra8 = 1 /* b */ * null; +// operator / var rb1 = null / a; var rb2 = null / b; var rb3 = null / 1; @@ -134,6 +136,7 @@ var rb5 = a / null; var rb6 = b / null; var rb7 = 0 / null; var rb8 = 1 /* b */ / null; +// operator % var rc1 = null % a; var rc2 = null % b; var rc3 = null % 1; @@ -142,6 +145,7 @@ var rc5 = a % null; var rc6 = b % null; var rc7 = 0 % null; var rc8 = 1 /* b */ % null; +// operator - var rd1 = null - a; var rd2 = null - b; var rd3 = null - 1; @@ -150,6 +154,7 @@ var rd5 = a - null; var rd6 = b - null; var rd7 = 0 - null; var rd8 = 1 /* b */ - null; +// operator << var re1 = null << a; var re2 = null << b; var re3 = null << 1; @@ -158,6 +163,7 @@ var re5 = a << null; var re6 = b << null; var re7 = 0 << null; var re8 = 1 /* b */ << null; +// operator >> var rf1 = null >> a; var rf2 = null >> b; var rf3 = null >> 1; @@ -166,6 +172,7 @@ var rf5 = a >> null; var rf6 = b >> null; var rf7 = 0 >> null; var rf8 = 1 /* b */ >> null; +// operator >>> var rg1 = null >>> a; var rg2 = null >>> b; var rg3 = null >>> 1; @@ -174,6 +181,7 @@ var rg5 = a >>> null; var rg6 = b >>> null; var rg7 = 0 >>> null; var rg8 = 1 /* b */ >>> null; +// operator & var rh1 = null & a; var rh2 = null & b; var rh3 = null & 1; @@ -182,6 +190,7 @@ var rh5 = a & null; var rh6 = b & null; var rh7 = 0 & null; var rh8 = 1 /* b */ & null; +// operator ^ var ri1 = null ^ a; var ri2 = null ^ b; var ri3 = null ^ 1; @@ -190,6 +199,7 @@ var ri5 = a ^ null; var ri6 = b ^ null; var ri7 = 0 ^ null; var ri8 = 1 /* b */ ^ null; +// operator | var rj1 = null | a; var rj2 = null | b; var rj3 = null | 1; diff --git a/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js b/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js index d0dbdead8c8..f1421a6b5c9 100644 --- a/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js +++ b/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js @@ -60,42 +60,52 @@ var rj3 = undefined | null; var rj4 = undefined | undefined; //// [arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js] +// operator * var ra1 = null * null; var ra2 = null * undefined; var ra3 = undefined * null; var ra4 = undefined * undefined; +// operator / var rb1 = null / null; var rb2 = null / undefined; var rb3 = undefined / null; var rb4 = undefined / undefined; +// operator % var rc1 = null % null; var rc2 = null % undefined; var rc3 = undefined % null; var rc4 = undefined % undefined; +// operator - var rd1 = null - null; var rd2 = null - undefined; var rd3 = undefined - null; var rd4 = undefined - undefined; +// operator << var re1 = null << null; var re2 = null << undefined; var re3 = undefined << null; var re4 = undefined << undefined; +// operator >> var rf1 = null >> null; var rf2 = null >> undefined; var rf3 = undefined >> null; var rf4 = undefined >> undefined; +// operator >>> var rg1 = null >>> null; var rg2 = null >>> undefined; var rg3 = undefined >>> null; var rg4 = undefined >>> undefined; +// operator & var rh1 = null & null; var rh2 = null & undefined; var rh3 = undefined & null; var rh4 = undefined & undefined; +// operator ^ var ri1 = null ^ null; var ri2 = null ^ undefined; var ri3 = undefined ^ null; var ri4 = undefined ^ undefined; +// operator | var rj1 = null | null; var rj2 = null | undefined; var rj3 = undefined | null; diff --git a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js index 4b79d44f1f0..b64c2d9dc09 100644 --- a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js @@ -177,9 +177,12 @@ var r10d2 = '' | undefined; var r10d3 = {} | undefined; //// [arithmeticOperatorWithUndefinedValueAndInvalidOperands.js] +// If one operand is the undefined or undefined value, it is treated as having the type of the +// other operand. var a; var b; var c; +// operator * var r1a1 = undefined * a; var r1a2 = undefined * b; var r1a3 = undefined * c; @@ -192,6 +195,7 @@ var r1c3 = undefined * {}; var r1d1 = true * undefined; var r1d2 = '' * undefined; var r1d3 = {} * undefined; +// operator / var r2a1 = undefined / a; var r2a2 = undefined / b; var r2a3 = undefined / c; @@ -204,6 +208,7 @@ var r2c3 = undefined / {}; var r2d1 = true / undefined; var r2d2 = '' / undefined; var r2d3 = {} / undefined; +// operator % var r3a1 = undefined % a; var r3a2 = undefined % b; var r3a3 = undefined % c; @@ -216,6 +221,7 @@ var r3c3 = undefined % {}; var r3d1 = true % undefined; var r3d2 = '' % undefined; var r3d3 = {} % undefined; +// operator - var r4a1 = undefined - a; var r4a2 = undefined - b; var r4a3 = undefined - c; @@ -228,6 +234,7 @@ var r4c3 = undefined - {}; var r4d1 = true - undefined; var r4d2 = '' - undefined; var r4d3 = {} - undefined; +// operator << var r5a1 = undefined << a; var r5a2 = undefined << b; var r5a3 = undefined << c; @@ -240,6 +247,7 @@ var r5c3 = undefined << {}; var r5d1 = true << undefined; var r5d2 = '' << undefined; var r5d3 = {} << undefined; +// operator >> var r6a1 = undefined >> a; var r6a2 = undefined >> b; var r6a3 = undefined >> c; @@ -252,6 +260,7 @@ var r6c3 = undefined >> {}; var r6d1 = true >> undefined; var r6d2 = '' >> undefined; var r6d3 = {} >> undefined; +// operator >>> var r7a1 = undefined >>> a; var r7a2 = undefined >>> b; var r7a3 = undefined >>> c; @@ -264,6 +273,7 @@ var r7c3 = undefined >>> {}; var r7d1 = true >>> undefined; var r7d2 = '' >>> undefined; var r7d3 = {} >>> undefined; +// operator & var r8a1 = undefined & a; var r8a2 = undefined & b; var r8a3 = undefined & c; @@ -276,6 +286,7 @@ var r8c3 = undefined & {}; var r8d1 = true & undefined; var r8d2 = '' & undefined; var r8d3 = {} & undefined; +// operator ^ var r9a1 = undefined ^ a; var r9a2 = undefined ^ b; var r9a3 = undefined ^ c; @@ -288,6 +299,7 @@ var r9c3 = undefined ^ {}; var r9d1 = true ^ undefined; var r9d2 = '' ^ undefined; var r9d3 = {} ^ undefined; +// operator | var r10a1 = undefined | a; var r10a2 = undefined | b; var r10a3 = undefined | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js index 41a0900d64a..c608ccfa909 100644 --- a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js @@ -118,6 +118,7 @@ var E; })(E || (E = {})); var a; var b; +// operator * var ra1 = undefined * a; var ra2 = undefined * b; var ra3 = undefined * 1; @@ -126,6 +127,7 @@ var ra5 = a * undefined; var ra6 = b * undefined; var ra7 = 0 * undefined; var ra8 = 1 /* b */ * undefined; +// operator / var rb1 = undefined / a; var rb2 = undefined / b; var rb3 = undefined / 1; @@ -134,6 +136,7 @@ var rb5 = a / undefined; var rb6 = b / undefined; var rb7 = 0 / undefined; var rb8 = 1 /* b */ / undefined; +// operator % var rc1 = undefined % a; var rc2 = undefined % b; var rc3 = undefined % 1; @@ -142,6 +145,7 @@ var rc5 = a % undefined; var rc6 = b % undefined; var rc7 = 0 % undefined; var rc8 = 1 /* b */ % undefined; +// operator - var rd1 = undefined - a; var rd2 = undefined - b; var rd3 = undefined - 1; @@ -150,6 +154,7 @@ var rd5 = a - undefined; var rd6 = b - undefined; var rd7 = 0 - undefined; var rd8 = 1 /* b */ - undefined; +// operator << var re1 = undefined << a; var re2 = undefined << b; var re3 = undefined << 1; @@ -158,6 +163,7 @@ var re5 = a << undefined; var re6 = b << undefined; var re7 = 0 << undefined; var re8 = 1 /* b */ << undefined; +// operator >> var rf1 = undefined >> a; var rf2 = undefined >> b; var rf3 = undefined >> 1; @@ -166,6 +172,7 @@ var rf5 = a >> undefined; var rf6 = b >> undefined; var rf7 = 0 >> undefined; var rf8 = 1 /* b */ >> undefined; +// operator >>> var rg1 = undefined >>> a; var rg2 = undefined >>> b; var rg3 = undefined >>> 1; @@ -174,6 +181,7 @@ var rg5 = a >>> undefined; var rg6 = b >>> undefined; var rg7 = 0 >>> undefined; var rg8 = 1 /* b */ >>> undefined; +// operator & var rh1 = undefined & a; var rh2 = undefined & b; var rh3 = undefined & 1; @@ -182,6 +190,7 @@ var rh5 = a & undefined; var rh6 = b & undefined; var rh7 = 0 & undefined; var rh8 = 1 /* b */ & undefined; +// operator ^ var ri1 = undefined ^ a; var ri2 = undefined ^ b; var ri3 = undefined ^ 1; @@ -190,6 +199,7 @@ var ri5 = a ^ undefined; var ri6 = b ^ undefined; var ri7 = 0 ^ undefined; var ri8 = 1 /* b */ ^ undefined; +// operator | var rj1 = undefined | a; var rj2 = undefined | b; var rj3 = undefined | 1; diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index 18550d61d5c..4abd6b534ff 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -121,6 +121,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with the following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var a1 = null; var c1 = new C1(); var i1 = c1; diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 85d65f0ef6a..d7aef759546 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -95,6 +95,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with the following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var a1 = null; var c1 = new C1(); var i1 = c1; diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index db40934368b..87ddf2d41b4 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -35,6 +35,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with teh following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var c3 = new C3(); var o1 = { one: 1 }; var arr_any = []; diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 0a1b29e5e7f..675d84119c0 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -102,6 +102,7 @@ var f = (function () { var t2 = [{ x: true, y: new derived() }, { x: false, y: new base() }]; var t3 = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; var anyObj = null; + // Order matters here so test all the variants var a1 = [{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }]; var a2 = [{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }]; var a3 = [{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }]; diff --git a/tests/baselines/reference/arrayLiteral.js b/tests/baselines/reference/arrayLiteral.js index 557b9be6a80..ae210aabd42 100644 --- a/tests/baselines/reference/arrayLiteral.js +++ b/tests/baselines/reference/arrayLiteral.js @@ -16,6 +16,7 @@ var y2: number[] = [1, 2]; var y2: number[] = new Array(); //// [arrayLiteral.js] +// valid uses of array literals var x = []; var x = new Array(1); var y = [1]; diff --git a/tests/baselines/reference/arrayLiteralWidened.js b/tests/baselines/reference/arrayLiteralWidened.js index 11fad71e9f2..53d2a19a1a4 100644 --- a/tests/baselines/reference/arrayLiteralWidened.js +++ b/tests/baselines/reference/arrayLiteralWidened.js @@ -15,6 +15,7 @@ var c = [[[null]],[undefined]] //// [arrayLiteralWidened.js] +// array literals are widened upon assignment according to their element type var a = []; var a = [null, null]; var a = [undefined, undefined]; diff --git a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js index f1720efd418..d2ca43796f0 100644 --- a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js +++ b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js @@ -16,6 +16,7 @@ var gs = [(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => //// [arrayLiteralWithMultipleBestCommonTypes.js] +// when multiple best common types exist we will choose the first candidate var a; var b; var c; diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js index e4d9b138b56..d5383f5bbc2 100644 --- a/tests/baselines/reference/arrayLiterals.js +++ b/tests/baselines/reference/arrayLiterals.js @@ -51,10 +51,12 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// Empty array literal with no contextual type has type Undefined[] var arr1 = [[], [1], ['']]; var arr1; var arr2 = [[null], [1], ['']]; var arr2; +// Array literal with elements of only EveryType E has type E[] var stringArrArr = [[''], [""]]; var stringArrArr; var stringArr = ['', ""]; @@ -72,6 +74,7 @@ var classArr = [new C(), new C()]; var classArr; var classTypeArray = [C, C, C]; var classTypeArray; +// Contextual type C with numeric index signature makes array literal of EveryType E of type BCT(E,C)[] var context1 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; var context2 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; var context2; @@ -97,4 +100,5 @@ var Derived2 = (function (_super) { })(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[] var context4 = [new Derived1(), new Derived1()]; diff --git a/tests/baselines/reference/arrayOfFunctionTypes3.js b/tests/baselines/reference/arrayOfFunctionTypes3.js index cf720720195..9d07a3211f9 100644 --- a/tests/baselines/reference/arrayOfFunctionTypes3.js +++ b/tests/baselines/reference/arrayOfFunctionTypes3.js @@ -27,6 +27,7 @@ var r6 = z2[0]; var r7 = r6(''); // any not string //// [arrayOfFunctionTypes3.js] +// valid uses of arrays of function types var x = [function () { return 1; }, function () { }]; var r2 = x[0](); diff --git a/tests/baselines/reference/arrayTypeOfFunctionTypes.js b/tests/baselines/reference/arrayTypeOfFunctionTypes.js index 355070d48d8..3c2aa7f1bcf 100644 --- a/tests/baselines/reference/arrayTypeOfFunctionTypes.js +++ b/tests/baselines/reference/arrayTypeOfFunctionTypes.js @@ -17,6 +17,7 @@ var r6 = r5(); var r6b = new r5(); // error //// [arrayTypeOfFunctionTypes.js] +// valid uses of arrays of function types var x; var r = x[1]; var r2 = r(); diff --git a/tests/baselines/reference/arrayTypeOfFunctionTypes2.js b/tests/baselines/reference/arrayTypeOfFunctionTypes2.js index 530a826700d..f9baa9871e1 100644 --- a/tests/baselines/reference/arrayTypeOfFunctionTypes2.js +++ b/tests/baselines/reference/arrayTypeOfFunctionTypes2.js @@ -17,6 +17,7 @@ var r6 = new r5(); var r6b = r5(); //// [arrayTypeOfFunctionTypes2.js] +// valid uses of arrays of function types var x; var r = x[1]; var r2 = new r(); diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js index d0b43e61c84..4302bb2e3e9 100644 --- a/tests/baselines/reference/arrowFunctionContexts.js +++ b/tests/baselines/reference/arrowFunctionContexts.js @@ -120,6 +120,7 @@ var Derived = (function (_super) { return Derived; })(Base); window.setTimeout(function () { return null; }, 100); +// Arrow function as value in array literal var obj = function (n) { return ''; }; var obj; var arr = [function (n) { return ''; }]; @@ -153,6 +154,7 @@ var M2; return Derived; })(Base); window.setTimeout(function () { return null; }, 100); + // Arrow function as value in array literal var obj = function (n) { return ''; }; var obj; var arr = [function (n) { return ''; }]; @@ -168,12 +170,14 @@ var M2; var b = function (s) { return s; }; })(M || (M = {})); })(M2 || (M2 = {})); +// (ParamList) => { ... } is a generic arrow function var generic1 = function (n) { return [n]; }; var generic1; var generic2 = function (n) { return [n]; }; var generic2; +// ((ParamList) => { ... } ) is a type assertion to an arrow function var asserted1 = (function (n) { return [n]; }); var asserted1; var asserted2 = (function (n) { diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index b403f30906c..abf9fe4a7b5 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -89,16 +89,19 @@ function tryCatchFn() { //// [arrowFunctionExpressions.js] +// ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = function (p) { return p.length; }; var a = function (p) { return p.length; }; +// Identifier => Block is equivalent to(Identifier) => Block var b = function (j) { return 0; }; var b = function (j) { return 0; }; +// Identifier => AssignmentExpression is equivalent to(Identifier) => AssignmentExpression var c; var d = function (n) { return c = n; }; var d = function (n) { return c = n; }; @@ -116,6 +119,7 @@ var MyClass = (function () { }; 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); var e; @@ -135,6 +139,7 @@ function outerFn() { var p; } } +// Arrow function used in nested function in arrow function var f = function (n) { function fn(x) { return function () { return n + x; }; diff --git a/tests/baselines/reference/assignAnyToEveryType.js b/tests/baselines/reference/assignAnyToEveryType.js index 483cef6d82b..47093cd0852 100644 --- a/tests/baselines/reference/assignAnyToEveryType.js +++ b/tests/baselines/reference/assignAnyToEveryType.js @@ -46,6 +46,7 @@ function k(a: T) { } //// [assignAnyToEveryType.js] +// all of these are valid var x; var a = x; var b = x; diff --git a/tests/baselines/reference/assignEveryTypeToAny.js b/tests/baselines/reference/assignEveryTypeToAny.js index 7f36d13d64c..c88fc2edc17 100644 --- a/tests/baselines/reference/assignEveryTypeToAny.js +++ b/tests/baselines/reference/assignEveryTypeToAny.js @@ -56,6 +56,7 @@ function j(a: T) { } //// [assignEveryTypeToAny.js] +// all of these are valid var x; x = 1; var a = 2; diff --git a/tests/baselines/reference/assignToInvalidLHS.js b/tests/baselines/reference/assignToInvalidLHS.js index 9307105cf10..13906d28fdf 100644 --- a/tests/baselines/reference/assignToInvalidLHS.js +++ b/tests/baselines/reference/assignToInvalidLHS.js @@ -5,4 +5,5 @@ declare var y:any; var x = new y = 5; //// [assignToInvalidLHS.js] +// Below is actually valid JavaScript (see http://es5.github.com/#x8.7 ), even though will always fail at runtime with 'invalid left-hand side' var x = new y = 5; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js index a52e6e13137..c187258ae45 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js @@ -135,6 +135,7 @@ var Errors; })(Base); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { + // target type with non-generic call signatures var a2; var a7; var a8; @@ -178,10 +179,12 @@ var Errors; })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); var WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { + // target type has generic call signature var a2; var b2; a2 = b2; b2 = a2; + // target type has generic call signature var a3; var b3; a3 = b3; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js index b4f6a4903a5..56f19b81499 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js @@ -135,6 +135,7 @@ var Errors; })(Base); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { + // target type with non-generic call signatures var a2; var a7; var a8; @@ -178,10 +179,12 @@ var Errors; })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); var WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { + // target type has generic call signature var a2; var b2; a2 = b2; b2 = a2; + // target type has generic call signature var a3; var b3; a3 = b3; diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js index 649a6b72477..4e8052f56d0 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js @@ -8,6 +8,7 @@ f = g; // ok g = f; // ok //// [assignmentCompatWithGenericCallSignatures.js] +// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation var f; var g; f = g; diff --git a/tests/baselines/reference/assignmentLHSIsReference.js b/tests/baselines/reference/assignmentLHSIsReference.js index 65950ded275..cbcd2d40972 100644 --- a/tests/baselines/reference/assignmentLHSIsReference.js +++ b/tests/baselines/reference/assignmentLHSIsReference.js @@ -26,11 +26,13 @@ function fn2(x4: number) { //// [assignmentLHSIsReference.js] var value; +// identifiers: variable and parameter var x1; x1 = value; function fn1(x2) { x2 = value; } +// property accesses var x3; x3.a = value; x3['a'] = value; diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index 65219d2d2e5..35586df4f39 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -37,14 +37,17 @@ module x6b { export var y = 2; } // error //// [augmentedTypesVar.js] +// var then var var x1 = 1; var x1 = 2; +// var then function var x2 = 1; function x2() { } var x3 = 1; var x3 = function () { }; +// var then class var x4 = 1; var x4 = (function () { function x4() { @@ -59,11 +62,13 @@ var x4a = (function () { }; return x4a; })(); +// var then enum var x5 = 1; var x5; (function (x5) { x5[x5["One"] = 0] = "One"; })(x5 || (x5 = {})); +// var then module var x6 = 1; var x6a = 1; var x6a; diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js index 01af9d529ac..f04f99d5fb3 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js @@ -33,6 +33,8 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) +// no errors expected here var a; var b; var Base = (function () { diff --git a/tests/baselines/reference/bestCommonTypeWithContextualTyping.js b/tests/baselines/reference/bestCommonTypeWithContextualTyping.js index 00814d65526..804ec075292 100644 --- a/tests/baselines/reference/bestCommonTypeWithContextualTyping.js +++ b/tests/baselines/reference/bestCommonTypeWithContextualTyping.js @@ -22,6 +22,9 @@ var contextualOr: Contextual = e || e; // Ellement //// [bestCommonTypeWithContextualTyping.js] var e; +// All of these should pass. Neither type is a supertype of the other, but the RHS should +// always use Ellement in these examples (not Contextual). Because Ellement is assignable +// to Contextual, no errors. var arr = [e]; var obj = { s: e }; var conditional = null ? e : e; diff --git a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js index ed994ebf789..25622c3d4f3 100644 --- a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js +++ b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js @@ -19,6 +19,7 @@ var b6 = [z, y, x]; var x; var y; var z; +// All these arrays should be X[] var b1 = [x, y, z]; var b2 = [x, z, y]; var b3 = [y, x, z]; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js index b4995f23050..9765448b8f2 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js @@ -63,6 +63,7 @@ var ResultIsNumber20 = ~~~(ANY + ANY1); ~~obj1.x; //// [bitwiseNotOperatorWithAnyOtherType.js] +// ~ operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -87,14 +88,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any other type var var ResultIsNumber = ~ANY1; var ResultIsNumber1 = ~ANY2; var ResultIsNumber2 = ~A; var ResultIsNumber3 = ~M; var ResultIsNumber4 = ~obj; var ResultIsNumber5 = ~obj1; +// any type literal var ResultIsNumber6 = ~undefined; var ResultIsNumber7 = ~null; +// any type expressions var ResultIsNumber8 = ~ANY2[0]; var ResultIsNumber9 = ~obj1.x; var ResultIsNumber10 = ~obj1.y; @@ -106,6 +110,7 @@ var ResultIsNumber15 = ~(ANY + ANY1); var ResultIsNumber16 = ~(null + undefined); var ResultIsNumber17 = ~(null + null); var ResultIsNumber18 = ~(undefined + undefined); +// multiple ~ operators var ResultIsNumber19 = ~~ANY; var ResultIsNumber20 = ~~~(ANY + ANY1); ~ANY; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js index 303be601a8b..e8e9a9e04d4 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js @@ -39,6 +39,7 @@ var ResultIsNumber8 = ~~BOOLEAN; ~M.n; //// [bitwiseNotOperatorWithBooleanType.js] +// ~ operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = ~BOOLEAN; +// boolean type literal var ResultIsNumber2 = ~true; var ResultIsNumber3 = ~{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = ~objA.a; var ResultIsNumber5 = ~M.n; var ResultIsNumber6 = ~foo(); var ResultIsNumber7 = ~A.foo(); +// multiple ~ operators var ResultIsNumber8 = ~~BOOLEAN; ~true; ~BOOLEAN; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js index 71568eefcec..ccf34db8b83 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js @@ -26,9 +26,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = ~ENUM1; +// enum type expressions var ResultIsNumber2 = ~ENUM1[1]; var ResultIsNumber3 = ~(ENUM1[1] + ENUM1[2]); +// multiple ~ operators var ResultIsNumber4 = ~~~(ENUM1[1] + ENUM1[2]); ~ENUM1; ~ENUM1[1]; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js index d1684a65eaf..3fe796c98e1 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js @@ -45,6 +45,7 @@ var ResultIsNumber13 = ~~~(NUMBER + NUMBER); ~objA.a, M.n; //// [bitwiseNotOperatorWithNumberType.js] +// ~ operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -63,19 +64,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = ~NUMBER; var ResultIsNumber2 = ~NUMBER1; +// number type literal var ResultIsNumber3 = ~1; var ResultIsNumber4 = ~{ x: 1, y: 2 }; var ResultIsNumber5 = ~{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; var ResultIsNumber8 = ~NUMBER1[0]; var ResultIsNumber9 = ~foo(); var ResultIsNumber10 = ~A.foo(); var ResultIsNumber11 = ~(NUMBER + NUMBER); +// multiple ~ operators var ResultIsNumber12 = ~~NUMBER; var ResultIsNumber13 = ~~~(NUMBER + NUMBER); ~NUMBER; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js index 4b18f4dbea5..f4bb2ba2cb7 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js @@ -44,6 +44,7 @@ var ResultIsNumber14 = ~~~(STRING + STRING); ~objA.a,M.n; //// [bitwiseNotOperatorWithStringType.js] +// ~ operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -62,13 +63,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = ~STRING; var ResultIsNumber2 = ~STRING1; +// string type literal var ResultIsNumber3 = ~""; var ResultIsNumber4 = ~{ x: "", y: "" }; var ResultIsNumber5 = ~{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; var ResultIsNumber8 = ~STRING1[0]; @@ -76,6 +80,7 @@ var ResultIsNumber9 = ~foo(); var ResultIsNumber10 = ~A.foo(); var ResultIsNumber11 = ~(STRING + STRING); var ResultIsNumber12 = ~STRING.charAt(0); +// multiple ~ operators var ResultIsNumber13 = ~~STRING; var ResultIsNumber14 = ~~~(STRING + STRING); ~STRING; diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index 8e630e437a5..0791be6530f 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -26,6 +26,7 @@ var Foo = (function () { }; return Foo; })(); +//class Foo(s: String); var f1 = new Foo("hey"); f1.bar1(); Foo(); diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index b1dba82ae3c..4b93fee7a40 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -27,6 +27,7 @@ var Foo = (function () { }; return Foo; })(); +//class Foo(s: String); var f1 = new Foo("hey"); f1.bar1("a"); Foo(); diff --git a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js index e3ee6e2ed01..fe6770ca933 100644 --- a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js +++ b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js @@ -16,5 +16,6 @@ var r2 = x.foo(''); // error //// [callSignaturesThatDifferOnlyByReturnType2.js] var x; +// BUG 822524 var r = x.foo(1); var r2 = x.foo(''); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index a00877e92c0..bd0039ff861 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -89,6 +89,7 @@ i(); i(1); i.foo(1); i.foo(1, 2); +// these are errors var a; a(); a(1); diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index 682b90ecc5a..9dbfc4388e9 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -44,6 +44,7 @@ var C2 = (function (_super) { } return C2; })(A); +// no errors var c; var c2; c = c2; diff --git a/tests/baselines/reference/classMemberInitializerScoping.js b/tests/baselines/reference/classMemberInitializerScoping.js index 20ce9c80263..70f562deb57 100644 --- a/tests/baselines/reference/classMemberInitializerScoping.js +++ b/tests/baselines/reference/classMemberInitializerScoping.js @@ -30,6 +30,7 @@ var CCC = (function () { CCC.staticY = aaa; return CCC; })(); +// above is equivalent to this: var aaaa = 1; var CCCC = (function () { function CCCC(aaaa) { diff --git a/tests/baselines/reference/classWithPublicProperty.js b/tests/baselines/reference/classWithPublicProperty.js index 277314db652..97b3f46ab49 100644 --- a/tests/baselines/reference/classWithPublicProperty.js +++ b/tests/baselines/reference/classWithPublicProperty.js @@ -37,6 +37,7 @@ var C = (function () { C.g = function () { return ''; }; return C; })(); +// all of these are valid var c = new C(); var r1 = c.x; var r2 = c.a; diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js index 29c9b61e6b0..3a0b17efa49 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js @@ -48,11 +48,13 @@ BOOLEAN, ANY; NUMBER, ANY; STRING, ANY; OBJECT, ANY; +//Return type is any var resultIsAny1 = (ANY, ANY); var resultIsAny2 = (BOOLEAN, ANY); var resultIsAny3 = (NUMBER, ANY); var resultIsAny4 = (STRING, ANY); var resultIsAny5 = (OBJECT, ANY); +//Literal and expression var x; 1, ANY; ++NUMBER, ANY; diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js index a772c42b4b9..caab9865caf 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js @@ -46,6 +46,7 @@ BOOLEAN, BOOLEAN; NUMBER, BOOLEAN; STRING, BOOLEAN; OBJECT, BOOLEAN; +//Return type is boolean var resultIsBoolean1 = (ANY, BOOLEAN); var resultIsBoolean2 = (BOOLEAN, BOOLEAN); var resultIsBoolean3 = (NUMBER, BOOLEAN); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js index b9d93041ff3..fc357009acd 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js @@ -46,6 +46,7 @@ BOOLEAN, NUMBER; NUMBER, NUMBER; STRING, NUMBER; OBJECT, NUMBER; +//Return type is number var resultIsNumber1 = (ANY, NUMBER); var resultIsNumber2 = (BOOLEAN, NUMBER); var resultIsNumber3 = (NUMBER, NUMBER); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js index e822744b584..b182425a935 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js @@ -55,6 +55,7 @@ BOOLEAN, OBJECT; NUMBER, OBJECT; STRING, OBJECT; OBJECT, OBJECT; +//Return type is Object var resultIsObject1 = (ANY, OBJECT); var resultIsObject2 = (BOOLEAN, OBJECT); var resultIsObject3 = (NUMBER, OBJECT); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js index 78d2f882418..f4676a3d39b 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js @@ -49,6 +49,7 @@ BOOLEAN, STRING; NUMBER, STRING; STRING, STRING; OBJECT, STRING; +//Return type is string var resultIsString1 = (ANY, STRING); var resultIsString2 = (BOOLEAN, STRING); var resultIsString3 = (NUMBER, STRING); diff --git a/tests/baselines/reference/commaOperatorsMultipleOperators.js b/tests/baselines/reference/commaOperatorsMultipleOperators.js index 1f37bafbd49..5d0447324b0 100644 --- a/tests/baselines/reference/commaOperatorsMultipleOperators.js +++ b/tests/baselines/reference/commaOperatorsMultipleOperators.js @@ -37,6 +37,7 @@ BOOLEAN, NUMBER, STRING; NUMBER, STRING, OBJECT; STRING, OBJECT, ANY; OBJECT, ANY, BOOLEAN; +//Results should have the same type as the third operand var resultIsAny1 = (STRING, OBJECT, ANY); var resultIsBoolean1 = (OBJECT, ANY, BOOLEAN); var resultIsNumber1 = (ANY, BOOLEAN, NUMBER); diff --git a/tests/baselines/reference/commentInMethodCall.js b/tests/baselines/reference/commentInMethodCall.js index 501139a2a72..0f304df0b35 100644 --- a/tests/baselines/reference/commentInMethodCall.js +++ b/tests/baselines/reference/commentInMethodCall.js @@ -6,6 +6,7 @@ s.map(// do something //// [commentInMethodCall.js] +//commment here var s; s.map(function () { }); diff --git a/tests/baselines/reference/commentsBeforeVariableStatement1.js b/tests/baselines/reference/commentsBeforeVariableStatement1.js index 598894dc936..21705826555 100644 --- a/tests/baselines/reference/commentsBeforeVariableStatement1.js +++ b/tests/baselines/reference/commentsBeforeVariableStatement1.js @@ -5,5 +5,6 @@ export var b: number; //// [commentsBeforeVariableStatement1.js] define(["require", "exports"], function (require, exports) { + /** b's comment*/ exports.b; }); diff --git a/tests/baselines/reference/commentsExternalModules.js b/tests/baselines/reference/commentsExternalModules.js index d50ce4b3d6c..7f2b9e4f3eb 100644 --- a/tests/baselines/reference/commentsExternalModules.js +++ b/tests/baselines/reference/commentsExternalModules.js @@ -64,6 +64,7 @@ var newVar2 = new extMod.m4.m2.c(); //// [commentsExternalModules_0.js] define(["require", "exports"], function (require, exports) { (function (m1) { + /** b's comment*/ m1.b; function foo() { return m1.b; @@ -76,6 +77,7 @@ define(["require", "exports"], function (require, exports) { })(); m2.c = c; ; + /** i*/ m2.i = new c(); })(m1.m2 || (m1.m2 = {})); var m2 = m1.m2; @@ -88,6 +90,7 @@ define(["require", "exports"], function (require, exports) { m1.fooExport(); var myvar = new m1.m2.c(); (function (m4) { + /** b's comment */ m4.b; function foo() { return m4.b; @@ -100,6 +103,7 @@ define(["require", "exports"], function (require, exports) { })(); m2.c = c; ; + /** i */ m2.i = new c(); })(m4.m2 || (m4.m2 = {})); var m2 = m4.m2; diff --git a/tests/baselines/reference/commentsFunction.js b/tests/baselines/reference/commentsFunction.js index 70ac9bc76d3..55e6e6d20c4 100644 --- a/tests/baselines/reference/commentsFunction.js +++ b/tests/baselines/reference/commentsFunction.js @@ -32,9 +32,13 @@ function fooWithParameters(a, b) { var d = a; } fooWithParameters("a", 10); +/** fooFunc + * comment + */ var fooFunc = function FooFunctionValue(b) { return b; }; +/// lamdaFoo var comment var lambdaFoo = function (a, b) { return a + b; }; var lambddaNoVarComment = function (a, b) { return a * b; }; lambdaFoo(10, 20); diff --git a/tests/baselines/reference/commentsModules.js b/tests/baselines/reference/commentsModules.js index d59e2d1f235..962ce4e7004 100644 --- a/tests/baselines/reference/commentsModules.js +++ b/tests/baselines/reference/commentsModules.js @@ -100,6 +100,7 @@ new m7.m8.m9.c(); //// [commentsModules.js] var m1; (function (m1) { + /** b's comment*/ m1.b; function foo() { return m1.b; @@ -112,6 +113,7 @@ var m1; })(); m2.c = c; ; + /** i*/ m2.i = new c(); })(m1.m2 || (m1.m2 = {})); var m2 = m1.m2; diff --git a/tests/baselines/reference/commentsOnReturnStatement1.js b/tests/baselines/reference/commentsOnReturnStatement1.js index a29cab364c4..def2cd18d55 100644 --- a/tests/baselines/reference/commentsOnReturnStatement1.js +++ b/tests/baselines/reference/commentsOnReturnStatement1.js @@ -14,6 +14,7 @@ var DebugClass = (function () { function DebugClass() { } DebugClass.debugFunc = function () { + // Start Debugger Test Code var i = 0; return true; }; diff --git a/tests/baselines/reference/commentsVarDecl.js b/tests/baselines/reference/commentsVarDecl.js index f6974c1e0e1..6c65a56f7ae 100644 --- a/tests/baselines/reference/commentsVarDecl.js +++ b/tests/baselines/reference/commentsVarDecl.js @@ -44,15 +44,28 @@ var n4: (x: number) => string; n4 = z2; //// [commentsVarDecl.js] +/** Variable comments*/ var myVariable = 10; +/** This is another variable comment*/ var anotherVariable = 30; +// shouldn't appear var aVar = ""; +/** this is multiline comment + * All these variables are of number type */ var anotherAnotherVariable = 70; +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ var x = 70; x = myVariable; +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ var n = 30; +/** var deckaration with comment on type as well*/ var y = 20; +/// var deckaration with comment on type as well var yy = 20; +/** comment2 */ var z = function (x, y) { return x + y; }; var z2; var x2 = z2; diff --git a/tests/baselines/reference/commentsVariableStatement1.js b/tests/baselines/reference/commentsVariableStatement1.js index e1aaf952812..8dfbd16c68a 100644 --- a/tests/baselines/reference/commentsVariableStatement1.js +++ b/tests/baselines/reference/commentsVariableStatement1.js @@ -4,6 +4,7 @@ var v = 1; //// [commentsVariableStatement1.js] +/** Comment */ var v = 1; diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index fa1cc4c4d12..de6d954bf6d 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -89,9 +89,11 @@ declare var x; //// [commentsdoNotEmitComments.js] +/** Variable comments*/ var myVariable = 10; function foo(p) { } +/** variable with function type comment*/ var fooVar; foo(50); fooVar(); @@ -117,7 +119,9 @@ var c = (function () { }; return c; })(); +/**instance comment*/ var i = new c(); +/**interface instance comments*/ var i1_i; var m1; (function (m1) { diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments.js index e7a0d82db00..856d9ea13ee 100644 --- a/tests/baselines/reference/commentsemitComments.js +++ b/tests/baselines/reference/commentsemitComments.js @@ -89,9 +89,11 @@ declare var x; //// [commentsemitComments.js] +/** Variable comments*/ var myVariable = 10; function foo(p) { } +/** variable with function type comment*/ var fooVar; foo(50); fooVar(); @@ -117,7 +119,9 @@ var c = (function () { }; return c; })(); +/**instance comment*/ var i = new c(); +/**interface instance comments*/ var i1_i; var m1; (function (m1) { diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index a0009c55463..4bdb1e38ba7 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -253,6 +253,7 @@ var b5; var b6; var base1; var base2; +// operator < var r1a1 = a1 < b1; var r1a2 = base1 < base2; var r1a3 = a2 < b2; @@ -267,6 +268,7 @@ var r1b4 = b3 < a3; var r1b5 = b4 < a4; var r1b6 = b5 < a5; var r1b7 = b6 < a6; +// operator > var r2a1 = a1 > b1; var r2a2 = base1 > base2; var r2a3 = a2 > b2; @@ -281,6 +283,7 @@ var r2b4 = b3 > a3; var r2b5 = b4 > a4; var r2b6 = b5 > a5; var r2b7 = b6 > a6; +// operator <= var r3a1 = a1 <= b1; var r3a2 = base1 <= base2; var r3a3 = a2 <= b2; @@ -295,6 +298,7 @@ var r3b4 = b3 <= a3; var r3b5 = b4 <= a4; var r3b6 = b5 <= a5; var r3b7 = b6 <= a6; +// operator >= var r4a1 = a1 >= b1; var r4a2 = base1 >= base2; var r4a3 = a2 >= b2; @@ -309,6 +313,7 @@ var r4b4 = b3 >= a3; var r4b5 = b4 >= a4; var r4b6 = b5 >= a5; var r4b7 = b6 >= a6; +// operator == var r5a1 = a1 == b1; var r5a2 = base1 == base2; var r5a3 = a2 == b2; @@ -323,6 +328,7 @@ var r5b4 = b3 == a3; var r5b5 = b4 == a4; var r5b6 = b5 == a5; var r5b7 = b6 == a6; +// operator != var r6a1 = a1 != b1; var r6a2 = base1 != base2; var r6a3 = a2 != b2; @@ -337,6 +343,7 @@ var r6b4 = b3 != a3; var r6b5 = b4 != a4; var r6b6 = b5 != a5; var r6b7 = b6 != a6; +// operator === var r7a1 = a1 === b1; var r7a2 = base1 === base2; var r7a3 = a2 === b2; @@ -351,6 +358,7 @@ var r7b4 = b3 === a3; var r7b5 = b4 === a4; var r7b6 = b5 === a5; var r7b7 = b6 === a6; +// operator !== var r8a1 = a1 !== b1; var r8a2 = base1 !== base2; var r8a3 = a2 !== b2; diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js index c5d64ff5f55..ad547ea769b 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js @@ -91,6 +91,7 @@ var b; var c; var d; var e; +// operator < var ra1 = a < a; var ra2 = b < b; var ra3 = c < c; @@ -98,6 +99,7 @@ var ra4 = d < d; var ra5 = e < e; var ra6 = null < null; var ra7 = undefined < undefined; +// operator > var rb1 = a > a; var rb2 = b > b; var rb3 = c > c; @@ -105,6 +107,7 @@ var rb4 = d > d; var rb5 = e > e; var rb6 = null > null; var rb7 = undefined > undefined; +// operator <= var rc1 = a <= a; var rc2 = b <= b; var rc3 = c <= c; @@ -112,6 +115,7 @@ var rc4 = d <= d; var rc5 = e <= e; var rc6 = null <= null; var rc7 = undefined <= undefined; +// operator >= var rd1 = a >= a; var rd2 = b >= b; var rd3 = c >= c; @@ -119,6 +123,7 @@ var rd4 = d >= d; var rd5 = e >= e; var rd6 = null >= null; var rd7 = undefined >= undefined; +// operator == var re1 = a == a; var re2 = b == b; var re3 = c == c; @@ -126,6 +131,7 @@ var re4 = d == d; var re5 = e == e; var re6 = null == null; var re7 = undefined == undefined; +// operator != var rf1 = a != a; var rf2 = b != b; var rf3 = c != c; @@ -133,6 +139,7 @@ var rf4 = d != d; var rf5 = e != e; var rf6 = null != null; var rf7 = undefined != undefined; +// operator === var rg1 = a === a; var rg2 = b === b; var rg3 = c === c; @@ -140,6 +147,7 @@ var rg4 = d === d; var rg5 = e === e; var rg6 = null === null; var rg7 = undefined === undefined; +// operator !== var rh1 = a !== a; var rh2 = b !== b; var rh3 = c !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js index 3258d2a25c8..10250785642 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js @@ -206,6 +206,7 @@ var a6; var b6; var a7; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -220,6 +221,7 @@ var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -234,6 +236,7 @@ var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -248,6 +251,7 @@ var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -262,6 +266,7 @@ var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -276,6 +281,7 @@ var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -290,6 +296,7 @@ var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -304,6 +311,7 @@ var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js index fc5ea7b40b9..6235eb4b4d9 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js @@ -206,6 +206,7 @@ var a6; var b6; var a7; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -220,6 +221,7 @@ var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -234,6 +236,7 @@ var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -248,6 +251,7 @@ var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -262,6 +266,7 @@ var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -276,6 +281,7 @@ var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -290,6 +296,7 @@ var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -304,6 +311,7 @@ var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js index d5ace469bd2..43ae21c3b03 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js @@ -143,6 +143,7 @@ var a3; var b3; var a4; var b4; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -151,6 +152,7 @@ var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -159,6 +161,7 @@ var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -167,6 +170,7 @@ var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -175,6 +179,7 @@ var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -183,6 +188,7 @@ var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -191,6 +197,7 @@ var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -199,6 +206,7 @@ var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js index 8ba98b249d0..83adba638a6 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js @@ -185,6 +185,7 @@ var a5; var b5; var a6; var b6; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -197,6 +198,7 @@ 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; @@ -209,6 +211,7 @@ 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; @@ -221,6 +224,7 @@ 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; @@ -233,6 +237,7 @@ 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; @@ -245,6 +250,7 @@ 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; @@ -257,6 +263,7 @@ 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; @@ -269,6 +276,7 @@ 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; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js index 6abddb35323..a5a52dccf83 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js @@ -185,6 +185,7 @@ var a5; var b5; var a6; var b6; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -197,6 +198,7 @@ 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; @@ -209,6 +211,7 @@ 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; @@ -221,6 +224,7 @@ 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; @@ -233,6 +237,7 @@ 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; @@ -245,6 +250,7 @@ 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; @@ -257,6 +263,7 @@ 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; @@ -269,6 +276,7 @@ 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; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js index 2c48a4fe733..ae11af97afc 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js @@ -45,19 +45,27 @@ var rh2 = b !== a; //// [comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js] var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; +// operator > var rb1 = a > b; var rb2 = b > a; +// operator <= var rc1 = a <= b; var rc2 = b <= a; +// operator >= var rd1 = a >= b; var rd2 = b >= a; +// operator == var re1 = a == b; var re2 = b == a; +// operator != var rf1 = a != b; var rf2 = b != a; +// operator === var rg1 = a === b; var rg2 = b === a; +// operator !== var rh1 = a !== b; var rh2 = b !== a; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js index 1eb7ac188d1..d6308211191 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js @@ -101,34 +101,42 @@ var a1; var b1; var a2; var b2; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1b1 = b1 < a1; var r1b2 = b2 < a2; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2b1 = b1 > a1; var r2b2 = b2 > a2; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5b1 = b1 == a1; var r5b2 = b2 == a2; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6b1 = b1 != a1; var r6b2 = b2 != a2; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7b1 = b1 === a1; var r7b2 = b2 === a2; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8b1 = b1 !== a1; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js index 2220793ed2c..5c6e863b900 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js @@ -227,6 +227,7 @@ var b; var c; var d; var e; +// operator < var r1a1 = a < b; var r1a1 = a < c; var r1a1 = a < d; @@ -247,6 +248,7 @@ var r1e1 = e < a; var r1e1 = e < b; var r1e1 = e < c; var r1e1 = e < d; +// operator > var r2a1 = a > b; var r2a1 = a > c; var r2a1 = a > d; @@ -267,6 +269,7 @@ var r2e1 = e > a; var r2e1 = e > b; var r2e1 = e > c; var r2e1 = e > d; +// operator <= var r3a1 = a <= b; var r3a1 = a <= c; var r3a1 = a <= d; @@ -287,6 +290,7 @@ var r3e1 = e <= a; var r3e1 = e <= b; var r3e1 = e <= c; var r3e1 = e <= d; +// operator >= var r4a1 = a >= b; var r4a1 = a >= c; var r4a1 = a >= d; @@ -307,6 +311,7 @@ var r4e1 = e >= a; var r4e1 = e >= b; var r4e1 = e >= c; var r4e1 = e >= d; +// operator == var r5a1 = a == b; var r5a1 = a == c; var r5a1 = a == d; @@ -327,6 +332,7 @@ var r5e1 = e == a; var r5e1 = e == b; var r5e1 = e == c; var r5e1 = e == d; +// operator != var r6a1 = a != b; var r6a1 = a != c; var r6a1 = a != d; @@ -347,6 +353,7 @@ var r6e1 = e != a; var r6e1 = e != b; var r6e1 = e != c; var r6e1 = e != d; +// operator === var r7a1 = a === b; var r7a1 = a === c; var r7a1 = a === d; @@ -367,6 +374,7 @@ var r7e1 = e === a; var r7e1 = e === b; var r7e1 = e === c; var r7e1 = e === d; +// operator !== var r8a1 = a !== b; var r8a1 = a !== c; var r8a1 = a !== d; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js index 316bb0e4971..7042a841502 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js @@ -179,6 +179,7 @@ function foo(t, u) { var r6 = t != u; var r7 = t === u; var r8 = t !== u; + // operator < var r1a1 = t < a; var r1a2 = t < b; var r1a3 = t < c; @@ -193,6 +194,7 @@ function foo(t, u) { var r1b5 = e < t; var r1b6 = f < t; var r1b7 = g < t; + // operator > var r2a1 = t < a; var r2a2 = t < b; var r2a3 = t < c; @@ -207,6 +209,7 @@ function foo(t, u) { var r2b5 = e < t; var r2b6 = f < t; var r2b7 = g < t; + // operator <= var r3a1 = t < a; var r3a2 = t < b; var r3a3 = t < c; @@ -221,6 +224,7 @@ function foo(t, u) { var r3b5 = e < t; var r3b6 = f < t; var r3b7 = g < t; + // operator >= var r4a1 = t < a; var r4a2 = t < b; var r4a3 = t < c; @@ -235,6 +239,7 @@ function foo(t, u) { var r4b5 = e < t; var r4b6 = f < t; var r4b7 = g < t; + // operator == var r5a1 = t < a; var r5a2 = t < b; var r5a3 = t < c; @@ -249,6 +254,7 @@ function foo(t, u) { var r5b5 = e < t; var r5b6 = f < t; var r5b7 = g < t; + // operator != var r6a1 = t < a; var r6a2 = t < b; var r6a3 = t < c; @@ -263,6 +269,7 @@ function foo(t, u) { var r6b5 = e < t; var r6b6 = f < t; var r6b7 = g < t; + // operator === var r7a1 = t < a; var r7a2 = t < b; var r7a3 = t < c; @@ -277,6 +284,7 @@ function foo(t, u) { var r7b5 = e < t; var r7b6 = f < t; var r7b7 = g < t; + // operator !== var r8a1 = t < a; var r8a2 = t < b; var r8a3 = t < c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js index 24fc1b16b8a..9a52b04b548 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js @@ -200,6 +200,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = x < a; var r1a2 = x < b; var r1a3 = x < c; @@ -214,6 +215,7 @@ var r1b4 = d < x; var r1b5 = e < x; var r1b6 = f < x; var r1b7 = g < x; +// operator > var r2a1 = x > a; var r2a2 = x > b; var r2a3 = x > c; @@ -228,6 +230,7 @@ var r2b4 = d > x; var r2b5 = e > x; var r2b6 = f > x; var r2b7 = g > x; +// operator <= var r3a1 = x <= a; var r3a2 = x <= b; var r3a3 = x <= c; @@ -242,6 +245,7 @@ var r3b4 = d <= x; var r3b5 = e <= x; var r3b6 = f <= x; var r3b7 = g <= x; +// operator >= var r4a1 = x >= a; var r4a2 = x >= b; var r4a3 = x >= c; @@ -256,6 +260,7 @@ var r4b4 = d >= x; var r4b5 = e >= x; var r4b6 = f >= x; var r4b7 = g >= x; +// operator == var r5a1 = x == a; var r5a2 = x == b; var r5a3 = x == c; @@ -270,6 +275,7 @@ var r5b4 = d == x; var r5b5 = e == x; var r5b6 = f == x; var r5b7 = g == x; +// operator != var r6a1 = x != a; var r6a2 = x != b; var r6a3 = x != c; @@ -284,6 +290,7 @@ var r6b4 = d != x; var r6b5 = e != x; var r6b6 = f != x; var r6b7 = g != x; +// operator === var r7a1 = x === a; var r7a2 = x === b; var r7a3 = x === c; @@ -298,6 +305,7 @@ var r7b4 = d === x; var r7b5 = e === x; var r7b6 = f === x; var r7b7 = g === x; +// operator !== var r8a1 = x !== a; var r8a2 = x !== b; var r8a3 = x !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js index 88d2ef48b1d..32ec46fe52c 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js @@ -197,6 +197,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = null < a; var r1a2 = null < b; var r1a3 = null < c; @@ -211,6 +212,7 @@ var r1b4 = d < null; var r1b5 = e < null; var r1b6 = f < null; var r1b7 = g < null; +// operator > var r2a1 = null > a; var r2a2 = null > b; var r2a3 = null > c; @@ -225,6 +227,7 @@ var r2b4 = d > null; var r2b5 = e > null; var r2b6 = f > null; var r2b7 = g > null; +// operator <= var r3a1 = null <= a; var r3a2 = null <= b; var r3a3 = null <= c; @@ -239,6 +242,7 @@ var r3b4 = d <= null; var r3b5 = e <= null; var r3b6 = f <= null; var r3b7 = g <= null; +// operator >= var r4a1 = null >= a; var r4a2 = null >= b; var r4a3 = null >= c; @@ -253,6 +257,7 @@ var r4b4 = d >= null; var r4b5 = e >= null; var r4b6 = f >= null; var r4b7 = g >= null; +// operator == var r5a1 = null == a; var r5a2 = null == b; var r5a3 = null == c; @@ -267,6 +272,7 @@ var r5b4 = d == null; var r5b5 = e == null; var r5b6 = f == null; var r5b7 = g == null; +// operator != var r6a1 = null != a; var r6a2 = null != b; var r6a3 = null != c; @@ -281,6 +287,7 @@ var r6b4 = d != null; var r6b5 = e != null; var r6b6 = f != null; var r6b7 = g != null; +// operator === var r7a1 = null === a; var r7a2 = null === b; var r7a3 = null === c; @@ -295,6 +302,7 @@ var r7b4 = d === null; var r7b5 = e === null; var r7b6 = f === null; var r7b7 = g === null; +// operator !== var r8a1 = null !== a; var r8a2 = null !== b; var r8a3 = null !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js index 1faffebbc60..9ec4c9ce122 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js @@ -200,6 +200,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = x < a; var r1a2 = x < b; var r1a3 = x < c; @@ -214,6 +215,7 @@ var r1b4 = d < x; var r1b5 = e < x; var r1b6 = f < x; var r1b7 = g < x; +// operator > var r2a1 = x > a; var r2a2 = x > b; var r2a3 = x > c; @@ -228,6 +230,7 @@ var r2b4 = d > x; var r2b5 = e > x; var r2b6 = f > x; var r2b7 = g > x; +// operator <= var r3a1 = x <= a; var r3a2 = x <= b; var r3a3 = x <= c; @@ -242,6 +245,7 @@ var r3b4 = d <= x; var r3b5 = e <= x; var r3b6 = f <= x; var r3b7 = g <= x; +// operator >= var r4a1 = x >= a; var r4a2 = x >= b; var r4a3 = x >= c; @@ -256,6 +260,7 @@ var r4b4 = d >= x; var r4b5 = e >= x; var r4b6 = f >= x; var r4b7 = g >= x; +// operator == var r5a1 = x == a; var r5a2 = x == b; var r5a3 = x == c; @@ -270,6 +275,7 @@ var r5b4 = d == x; var r5b5 = e == x; var r5b6 = f == x; var r5b7 = g == x; +// operator != var r6a1 = x != a; var r6a2 = x != b; var r6a3 = x != c; @@ -284,6 +290,7 @@ var r6b4 = d != x; var r6b5 = e != x; var r6b6 = f != x; var r6b7 = g != x; +// operator === var r7a1 = x === a; var r7a2 = x === b; var r7a3 = x === c; @@ -298,6 +305,7 @@ var r7b4 = d === x; var r7b5 = e === x; var r7b6 = f === x; var r7b7 = g === x; +// operator !== var r8a1 = x !== a; var r8a2 = x !== b; var r8a3 = x !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js index a2866a7d44f..e0c1f33cb4a 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js @@ -77,48 +77,56 @@ var E; })(E || (E = {})); var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; var ra3 = 0 /* a */ < b; var ra4 = b < 0 /* a */; var ra5 = 0 /* a */ < 0; var ra6 = 0 < 0 /* a */; +// operator > var rb1 = a > b; var rb2 = b > a; var rb3 = 0 /* a */ > b; var rb4 = b > 0 /* a */; var rb5 = 0 /* a */ > 0; var rb6 = 0 > 0 /* a */; +// operator <= var rc1 = a <= b; var rc2 = b <= a; var rc3 = 0 /* a */ <= b; var rc4 = b <= 0 /* a */; var rc5 = 0 /* a */ <= 0; var rc6 = 0 <= 0 /* a */; +// operator >= var rd1 = a >= b; var rd2 = b >= a; var rd3 = 0 /* a */ >= b; var rd4 = b >= 0 /* a */; var rd5 = 0 /* a */ >= 0; var rd6 = 0 >= 0 /* a */; +// operator == var re1 = a == b; var re2 = b == a; var re3 = 0 /* a */ == b; var re4 = b == 0 /* a */; var re5 = 0 /* a */ == 0; var re6 = 0 == 0 /* a */; +// operator != var rf1 = a != b; var rf2 = b != a; var rf3 = 0 /* a */ != b; var rf4 = b != 0 /* a */; var rf5 = 0 /* a */ != 0; var rf6 = 0 != 0 /* a */; +// operator === var rg1 = a === b; var rg2 = b === a; var rg3 = 0 /* a */ === b; var rg4 = b === 0 /* a */; var rg5 = 0 /* a */ === 0; var rg6 = 0 === 0 /* a */; +// operator !== var rh1 = a !== b; var rh2 = b !== a; var rh3 = 0 /* a */ !== b; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js index 1f6706c3a10..890add6bc8a 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js @@ -300,6 +300,9 @@ var a10; var b10; var a11; var b11; +//var a12: { fn(t: T, u: U): T[] }; +//var b12: { fn(a: A, b: B): A[] }; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -311,6 +314,7 @@ var r1a8 = a8 < b8; var r1a9 = a9 < b9; var r1a10 = a10 < b10; var r1a11 = a11 < b11; +//var r1a12 = a12 < b12; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; @@ -322,6 +326,8 @@ var r1b8 = b8 < a8; var r1b9 = b9 < a9; var r1b10 = b10 < a10; var r1b11 = b11 < a11; +//var r1b12 = b12 < a12; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -333,6 +339,7 @@ var r2a8 = a8 > b8; var r2a9 = a9 > b9; var r2a10 = a10 > b10; var r2a11 = a11 > b11; +//var r2a12 = a12 > b12; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; @@ -344,6 +351,8 @@ var r2b8 = b8 > a8; var r2b9 = b9 > a9; var r2b10 = b10 > a10; var r2b11 = b11 > a11; +//var r2b12 = b12 > a12; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -355,6 +364,7 @@ var r3a8 = a8 <= b8; var r3a9 = a9 <= b9; var r3a10 = a10 <= b10; var r3a11 = a11 <= b11; +//var r3a12 = a12 <= b12; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; @@ -366,6 +376,8 @@ var r3b8 = b8 <= a8; var r3b9 = b9 <= a9; var r3b10 = b10 <= a10; var r3b11 = b11 <= a11; +//var r3b12 = b12 <= a12; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -377,6 +389,7 @@ var r4a8 = a8 >= b8; var r4a9 = a9 >= b9; var r4a10 = a10 >= b10; var r4a11 = a11 >= b11; +//var r4a12 = a12 >= b12; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; @@ -388,6 +401,8 @@ var r4b8 = b8 >= a8; var r4b9 = b9 >= a9; var r4b10 = b10 >= a10; var r4b11 = b11 >= a11; +//var r4b12 = b12 >= a12; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -399,6 +414,7 @@ var r5a8 = a8 == b8; var r5a9 = a9 == b9; var r5a10 = a10 == b10; var r5a11 = a11 == b11; +//var r5a12 = a12 == b12; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; @@ -410,6 +426,8 @@ var r5b8 = b8 == a8; var r5b9 = b9 == a9; var r5b10 = b10 == a10; var r5b11 = b11 == a11; +//var r5b12 = b12 == a12; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -421,6 +439,7 @@ var r6a8 = a8 != b8; var r6a9 = a9 != b9; var r6a10 = a10 != b10; var r6a11 = a11 != b11; +//var r6a12 = a12 != b12; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; @@ -432,6 +451,8 @@ var r6b8 = b8 != a8; var r6b9 = b9 != a9; var r6b10 = b10 != a10; var r6b11 = b11 != a11; +//var r6b12 = b12 != a12; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -443,6 +464,7 @@ var r7a8 = a8 === b8; var r7a9 = a9 === b9; var r7a10 = a10 === b10; var r7a11 = a11 === b11; +//var r7a12 = a12 === b12; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; @@ -454,6 +476,8 @@ var r7b8 = b8 === a8; var r7b9 = b9 === a9; var r7b10 = b10 === a10; var r7b11 = b11 === a11; +//var r7b12 = b12 === a12; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; @@ -465,6 +489,7 @@ var r8a8 = a8 !== b8; var r8a9 = a9 !== b9; var r8a10 = a10 !== b10; var r8a11 = a11 !== b11; +//var r8a12 = a12 !== b12; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js index df82986e45d..aefeb6d87ff 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js @@ -258,6 +258,9 @@ var a8; var b8; var a9; var b9; +//var a10: { (t: T, u: U): T[] }; +//var b10: { (a: A, b: B): A[] }; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -267,6 +270,7 @@ var r1a6 = a6 < b6; var r1a7 = a7 < b7; var r1a8 = a8 < b8; var r1a9 = a9 < b9; +//var r1a10 = a10 < b10; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; @@ -276,6 +280,8 @@ var r1b6 = b6 < a6; var r1b7 = b7 < a7; var r1b8 = b8 < a8; var r1b9 = b9 < a9; +//var r1b10 = b10 < a10; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -285,6 +291,7 @@ var r2a6 = a6 > b6; var r2a7 = a7 > b7; var r2a8 = a8 > b8; var r2a9 = a9 > b9; +//var r2a10 = a10 > b10; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; @@ -294,6 +301,8 @@ var r2b6 = b6 > a6; var r2b7 = b7 > a7; var r2b8 = b8 > a8; var r2b9 = b9 > a9; +//var r2b10 = b10 > a10; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -303,6 +312,7 @@ var r3a6 = a6 <= b6; var r3a7 = a7 <= b7; var r3a8 = a8 <= b8; var r3a9 = a9 <= b9; +//var r3a10 = a10 <= b10; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; @@ -312,6 +322,8 @@ var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; var r3b8 = b8 <= a8; var r3b9 = b9 <= a9; +//var r3b10 = b10 <= a10; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -321,6 +333,7 @@ var r4a6 = a6 >= b6; var r4a7 = a7 >= b7; var r4a8 = a8 >= b8; var r4a9 = a9 >= b9; +//var r4a10 = a10 >= b10; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; @@ -330,6 +343,8 @@ var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; var r4b8 = b8 >= a8; var r4b9 = b9 >= a9; +//var r4b10 = b10 >= a10; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -339,6 +354,7 @@ var r5a6 = a6 == b6; var r5a7 = a7 == b7; var r5a8 = a8 == b8; var r5a9 = a9 == b9; +//var r5a10 = a10 == b10; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; @@ -348,6 +364,8 @@ var r5b6 = b6 == a6; var r5b7 = b7 == a7; var r5b8 = b8 == a8; var r5b9 = b9 == a9; +//var r5b10 = b10 == a10; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -357,6 +375,7 @@ var r6a6 = a6 != b6; var r6a7 = a7 != b7; var r6a8 = a8 != b8; var r6a9 = a9 != b9; +//var r6a10 = a10 != b10; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; @@ -366,6 +385,8 @@ var r6b6 = b6 != a6; var r6b7 = b7 != a7; var r6b8 = b8 != a8; var r6b9 = b9 != a9; +//var r6b10 = b10 != a10; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -375,6 +396,7 @@ var r7a6 = a6 === b6; var r7a7 = a7 === b7; var r7a8 = a8 === b8; var r7a9 = a9 === b9; +//var r7a10 = a10 === b10; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; @@ -384,6 +406,8 @@ var r7b6 = b6 === a6; var r7b7 = b7 === a7; var r7b8 = b8 === a8; var r7b9 = b9 === a9; +//var r7b10 = b10 === a10; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; @@ -393,6 +417,7 @@ var r8a6 = a6 !== b6; var r8a7 = a7 !== b7; var r8a8 = a8 !== b8; var r8a9 = a9 !== b9; +//var r8a10 = a10 !== b10; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js index c6c785266a0..ec152ef0da5 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js @@ -134,6 +134,7 @@ var a3; var b3; var a4; var b4; +// operator < var r1a1 = a1 < b1; var r1a1 = a2 < b2; var r1a1 = a3 < b3; @@ -142,6 +143,7 @@ var r1b1 = b1 < a1; var r1b1 = b2 < a2; var r1b1 = b3 < a3; var r1b1 = b4 < a4; +// operator > var r2a1 = a1 > b1; var r2a1 = a2 > b2; var r2a1 = a3 > b3; @@ -150,6 +152,7 @@ var r2b1 = b1 > a1; var r2b1 = b2 > a2; var r2b1 = b3 > a3; var r2b1 = b4 > a4; +// operator <= var r3a1 = a1 <= b1; var r3a1 = a2 <= b2; var r3a1 = a3 <= b3; @@ -158,6 +161,7 @@ var r3b1 = b1 <= a1; var r3b1 = b2 <= a2; var r3b1 = b3 <= a3; var r3b1 = b4 <= a4; +// operator >= var r4a1 = a1 >= b1; var r4a1 = a2 >= b2; var r4a1 = a3 >= b3; @@ -166,6 +170,7 @@ var r4b1 = b1 >= a1; var r4b1 = b2 >= a2; var r4b1 = b3 >= a3; var r4b1 = b4 >= a4; +// operator == var r5a1 = a1 == b1; var r5a1 = a2 == b2; var r5a1 = a3 == b3; @@ -174,6 +179,7 @@ var r5b1 = b1 == a1; var r5b1 = b2 == a2; var r5b1 = b3 == a3; var r5b1 = b4 == a4; +// operator != var r6a1 = a1 != b1; var r6a1 = a2 != b2; var r6a1 = a3 != b3; @@ -182,6 +188,7 @@ var r6b1 = b1 != a1; var r6b1 = b2 != a2; var r6b1 = b3 != a3; var r6b1 = b4 != a4; +// operator === var r7a1 = a1 === b1; var r7a1 = a2 === b2; var r7a1 = a3 === b3; @@ -190,6 +197,7 @@ var r7b1 = b1 === a1; var r7b1 = b2 === a2; var r7b1 = b3 === a3; var r7b1 = b4 === a4; +// operator !== var r8a1 = a1 !== b1; var r8a1 = a2 !== b2; var r8a1 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js index 67a33f10a15..1a83da3e663 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js @@ -195,97 +195,121 @@ var a5; var b5; var a6; var b6; +//var a7: { fn(x: T, y: U): T }; var b7; +// 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 r1a7 = a7 < b7; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +//var r1b7 = b7 < a7; +// 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 r2a7 = a7 > b7; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +//var r2b7 = b7 > a7; +// 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 r3a7 = a7 <= b7; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +//var r3b7 = b7 <= a7; +// 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 r4a7 = a7 >= b7; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +//var r4b7 = b7 >= a7; +// 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 r5a7 = a7 == b7; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +//var r5b7 = b7 == a7; +// 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 r6a7 = a7 != b7; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +//var r6b7 = b7 != a7; +// 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 r7a7 = a7 === b7; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +//var r7b7 = b7 === a7; +// 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 r8a7 = a7 !== b7; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js index c47ec3bc05f..393a2485c47 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js @@ -195,97 +195,121 @@ var a5; var b5; var a6; var b6; +//var a7: { new (x: T, y: U): T }; var b7; +// 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 r1a7 = a7 < b7; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +//var r1b7 = b7 < a7; +// 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 r2a7 = a7 > b7; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +//var r2b7 = b7 > a7; +// 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 r3a7 = a7 <= b7; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +//var r3b7 = b7 <= a7; +// 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 r4a7 = a7 >= b7; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +//var r4b7 = b7 >= a7; +// 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 r5a7 = a7 == b7; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +//var r5b7 = b7 == a7; +// 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 r6a7 = a7 != b7; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +//var r6b7 = b7 != a7; +// 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 r7a7 = a7 === b7; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +//var r7b7 = b7 === a7; +// 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 r8a7 = a7 !== b7; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js index 570c6faf123..1a370b17d19 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js @@ -46,19 +46,27 @@ var rh2 = b !== a; //// [comparisonOperatorWithSubtypeObjectOnOptionalProperty.js] var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; +// operator > var rb1 = a > b; var rb2 = b > a; +// operator <= var rc1 = a <= b; var rc2 = b <= a; +// operator >= var rd1 = a >= b; var rd2 = b >= a; +// operator == var re1 = a == b; var re2 = b == a; +// operator != var rf1 = a != b; var rf2 = b != a; +// operator === var rg1 = a === b; var rg2 = b === a; +// operator !== var rh1 = a !== b; var rh2 = b !== a; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js index 0dfe4cf330a..99c64617531 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js @@ -123,34 +123,42 @@ var a1; var a2; var b1; var b2; +// operator < var ra1 = a1 < b1; var ra2 = a2 < b2; var ra3 = b1 < a1; var ra4 = b2 < a2; +// operator > var rb1 = a1 > b1; var rb2 = a2 > b2; var rb3 = b1 > a1; var rb4 = b2 > a2; +// operator <= var rc1 = a1 <= b1; var rc2 = a2 <= b2; var rc3 = b1 <= a1; var rc4 = b2 <= a2; +// operator >= var rd1 = a1 >= b1; var rd2 = a2 >= b2; var rd3 = b1 >= a1; var rd4 = b2 >= a2; +// operator == var re1 = a1 == b1; var re2 = a2 == b2; var re3 = b1 == a1; var re4 = b2 == a2; +// operator != var rf1 = a1 != b1; var rf2 = a2 != b2; var rf3 = b1 != a1; var rf4 = b2 != a2; +// operator === var rg1 = a1 === b1; var rg2 = a2 === b2; var rg3 = b1 === a1; var rg4 = b2 === a2; +// operator !== var rh1 = a1 !== b1; var rh2 = a2 !== b2; var rh3 = b1 !== a1; diff --git a/tests/baselines/reference/comparisonOperatorWithTypeParameter.js b/tests/baselines/reference/comparisonOperatorWithTypeParameter.js index 814fb5c6aa7..67d33eca223 100644 --- a/tests/baselines/reference/comparisonOperatorWithTypeParameter.js +++ b/tests/baselines/reference/comparisonOperatorWithTypeParameter.js @@ -82,6 +82,7 @@ function foo(t: T, u: U, v: V) { var a; var b; function foo(t, u, v) { + // errors var ra1 = t < u; var ra2 = t > u; var ra3 = t <= u; @@ -114,6 +115,7 @@ function foo(t, u, v) { var rd6 = v != t; var rd7 = v === t; var rd8 = v !== t; + // ok var re1 = t < a; var re2 = t > a; var re3 = t <= a; diff --git a/tests/baselines/reference/compoundAssignmentLHSIsReference.js b/tests/baselines/reference/compoundAssignmentLHSIsReference.js index ebc3d7be118..c583a37ac49 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsReference.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsReference.js @@ -36,6 +36,7 @@ function fn2(x4: number) { //// [compoundAssignmentLHSIsReference.js] var value; +// identifiers: variable and parameter var x1; x1 *= value; x1 += value; @@ -43,6 +44,7 @@ function fn1(x2) { x2 *= value; x2 += value; } +// property accesses var x3; x3.a *= value; x3.a += value; diff --git a/tests/baselines/reference/concatError.js b/tests/baselines/reference/concatError.js index 3a7613484c5..96af4af53a0 100644 --- a/tests/baselines/reference/concatError.js +++ b/tests/baselines/reference/concatError.js @@ -34,6 +34,12 @@ c = c.m(cc); //// [concatError.js] var n1; +/* +interface Array { + concat(...items: T[][]): T[]; // Note: This overload needs to be picked for arrays of arrays, even though both are applicable + concat(...items: T[]): T[]; +} +*/ var fa; fa = fa.concat([0]); fa = fa.concat(0); diff --git a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js index 2f279100954..5d87aac88fd 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js @@ -56,6 +56,7 @@ var resultIsObject3 = true || false ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsBooleanType.js] +//Cond ? Expr1 : Expr2, Cond is of boolean type, Expr1 and Expr2 have the same type var condBoolean; var exprAny1; var exprBoolean1; @@ -82,6 +83,7 @@ typeof "123" == "string" ? exprBoolean1 : exprBoolean2; 2 > 1 ? exprNumber1 : exprNumber2; null === undefined ? exprString1 : exprString2; true || false ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condBoolean ? exprAny1 : exprAny2; var resultIsBoolean1 = condBoolean ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condBoolean ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js index 37ee498784b..c6ce80f8063 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js @@ -59,6 +59,7 @@ var resultIsObject3 = foo() / array[1] ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsNumberType.js] +//Cond ? Expr1 : Expr2, Cond is of number type, Expr1 and Expr2 have the same type var condNumber; var exprAny1; var exprBoolean1; @@ -90,6 +91,7 @@ var array = [1, 2, 3]; "string".length ? exprNumber1 : exprNumber2; foo() ? exprString1 : exprString2; foo() / array[1] ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condNumber ? exprAny1 : exprAny2; var resultIsBoolean1 = condNumber ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condNumber ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js index f10533a2332..0d4908b939f 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js @@ -59,6 +59,7 @@ var resultIsObject3 = condObject.valueOf() ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsObjectType.js] +//Cond ? Expr1 : Expr2, Cond is of object type, Expr1 and Expr2 have the same type var condObject; var exprAny1; var exprBoolean1; @@ -94,6 +95,7 @@ new Date() ? exprBoolean1 : exprBoolean2; new C() ? exprNumber1 : exprNumber2; C.doIt() ? exprString1 : exprString2; condObject.valueOf() ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condObject ? exprAny1 : exprAny2; var resultIsBoolean1 = condObject ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condObject ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js index 92de4bd4d53..3ed7431399e 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js +++ b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js @@ -57,6 +57,7 @@ var resultIsObject3 = x.doSomeThing() ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditoinIsAnyType.js] +//Cond ? Expr1 : Expr2, Cond is of any type, Expr1 and Expr2 have the same type var condAny; var x; var exprAny1; @@ -84,6 +85,7 @@ x("x") ? exprBoolean1 : exprBoolean2; x(x) ? exprNumber1 : exprNumber2; x("x") ? exprString1 : exprString2; x.doSomeThing() ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condAny ? exprAny1 : exprAny2; var resultIsBoolean1 = condAny ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condAny ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js index 048787d6061..93873af0d04 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js +++ b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js @@ -59,6 +59,7 @@ var resultIsObject3 = array[1] ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditoinIsStringType.js] +//Cond ? Expr1 : Expr2, Cond is of string type, Expr1 and Expr2 have the same type var condString; var exprAny1; var exprBoolean1; @@ -90,6 +91,7 @@ condString.toUpperCase ? exprBoolean1 : exprBoolean2; condString + "string" ? exprNumber1 : exprNumber2; foo() ? exprString1 : exprString2; array[1] ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condString ? exprAny1 : exprAny2; var resultIsBoolean1 = condString ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condString ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js index f7c6b97c0bb..07217a11e71 100644 --- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js @@ -85,6 +85,7 @@ true ? {} : 1; true ? { a: 1 } : { a: 2, b: 'string' }; var result2 = true ? {} : 1; var result3 = true ? { a: 1 } : { a: 2, b: 'string' }; +//Contextually typed var resultIsX1 = true ? x : a; var result4 = true ? function (m) { return m.propertyX; } : function (n) { return n.propertyA; }; true ? a : x; @@ -93,8 +94,12 @@ true ? 1 : {}; true ? { a: 2, b: 'string' } : { a: 1 }; var result6 = true ? 1 : {}; var result7 = true ? { a: 2, b: 'string' } : { a: 1 }; +//Contextually typed var resultIsX2 = true ? x : a; var result8 = true ? function (m) { return m.propertyA; } : function (n) { return n.propertyX; }; +//Result = Cond ? Expr1 : Expr2, Result is supertype +//Contextually typed var resultIsX3 = true ? a : b; var result10 = true ? function (m) { return m.propertyX1; } : function (n) { return n.propertyX2; }; +//Expr1 and Expr2 are literals var result11 = true ? 1 : 'string'; diff --git a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js index d96b5ec9d1e..7f749179ac0 100644 --- a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js @@ -55,6 +55,7 @@ var a; var b; true ? a : b; var result1 = true ? a : b; +//Be contextually typed and and bct is not identical var result2 = true ? a : b; var result3 = true ? a : b; var result4 = true ? function (m) { return m.propertyX1; } : function (n) { return n.propertyX2; }; diff --git a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js index 73f9d8ceda9..ffb2b3e6657 100644 --- a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js +++ b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js @@ -21,6 +21,10 @@ class D { } //// [constructorParameterShadowsOuterScopes.js] +// Initializer expressions for instance member variables are evaluated in the scope of the class constructor +// body but are not permitted to reference parameters or local variables of the constructor. +// This effectively means that entities from outer scopes by the same name as a constructor parameter or +// local variable are inaccessible in initializer expressions for instance member variables var x = 1; var C = (function () { function C(x) { diff --git a/tests/baselines/reference/contextualSignatureInstantiation2.js b/tests/baselines/reference/contextualSignatureInstantiation2.js index c88467d9fb3..78bc5a88856 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation2.js +++ b/tests/baselines/reference/contextualSignatureInstantiation2.js @@ -6,6 +6,7 @@ var id: (x:T) => T; var r23 = dot(id)(id); //// [contextualSignatureInstantiation2.js] +// dot f g x = f(g(x)) var dot; dot = function (f) { return function (g) { return function (x) { return f(g(x)); }; }; }; var id; diff --git a/tests/baselines/reference/contextualSignatureInstantiation3.js b/tests/baselines/reference/contextualSignatureInstantiation3.js index 44737476482..6db26f49386 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation3.js +++ b/tests/baselines/reference/contextualSignatureInstantiation3.js @@ -34,6 +34,7 @@ function singleton(x) { return [x]; } var xs = [1, 2, 3]; +// Have compiler check that we get the correct types var v1; var v1 = xs.map(identity); var v1 = map(xs, identity); diff --git a/tests/baselines/reference/contextualTyping.js b/tests/baselines/reference/contextualTyping.js index 30a1d614141..36b9a830e02 100644 --- a/tests/baselines/reference/contextualTyping.js +++ b/tests/baselines/reference/contextualTyping.js @@ -232,4 +232,4 @@ var x: B = { }; //// [contextualTyping.js] -var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map \ No newline at end of file +var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map \ No newline at end of file diff --git a/tests/baselines/reference/contextualTyping.js.map b/tests/baselines/reference/contextualTyping.js.map index ec75015e5b0..3e2968b506b 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":"AAaA,IAAM,IAAI;IAAVA,SAAMA,IAAIA;QACNC,QAAGA,GAAqCA,UAASA,CAACA;YAC9C,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAAA;IAC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IACjB,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC;QAAI,MAAM,CAAC,CAAC,CAAC;IAAC,CAAC;CAClC,CAAC,CAAA;AACF,IAAI,MAAM,GAAU,CAAC;IACjB,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AAOF,SAAS,GAAG,CAAC,CAAC,EAAC,CAAC;IAAIE,MAAMA,CAACA,CAACA,GAACA,CAACA,CAACA;AAACA,CAACA;AAEjC,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAcnB,SAAS,KAAK,CAAC,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":["C1T5","C1T5.constructor","C2T5","C4T5","C4T5.constructor","C5T5","c9t5","C11t5","C11t5.constructor","EF1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AAC;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 7a61448e62a..33d7635922c 100644 --- a/tests/baselines/reference/contextualTyping.sourcemap.txt +++ b/tests/baselines/reference/contextualTyping.sourcemap.txt @@ -8,10 +8,10 @@ sources: contextualTyping.ts emittedFile:tests/cases/compiler/contextualTyping.js sourceFile:contextualTyping.ts ------------------------------------------------------------------- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1 > +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1 > 2 >^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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@@ -32,10 +32,10 @@ sourceFile:contextualTyping.ts 2 >Emitted(1, 5) Source(14, 7) + SourceIndex(0) 3 >Emitted(1, 9) Source(14, 11) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > class 3 > C1T5 @@ -43,12 +43,12 @@ sourceFile:contextualTyping.ts 2 >Emitted(2, 14) Source(14, 7) + SourceIndex(0) name (C1T5) 3 >Emitted(2, 18) Source(14, 11) + SourceIndex(0) name (C1T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > 2 > foo @@ -61,12 +61,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(3, 30) Source(15, 54) + SourceIndex(0) name (C1T5.constructor) 5 >Emitted(3, 31) Source(15, 55) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -79,10 +79,10 @@ sourceFile:contextualTyping.ts 4 >Emitted(4, 21) Source(16, 17) + SourceIndex(0) 5 >Emitted(4, 22) Source(16, 18) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } @@ -91,28 +91,28 @@ sourceFile:contextualTyping.ts 2 >Emitted(5, 10) Source(17, 6) + SourceIndex(0) 3 >Emitted(5, 11) Source(17, 6) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 1->Emitted(6, 5) Source(18, 1) + SourceIndex(0) name (C1T5.constructor) 2 >Emitted(6, 6) Source(18, 2) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } 1->Emitted(7, 5) Source(18, 1) + SourceIndex(0) name (C1T5) 2 >Emitted(7, 16) Source(18, 2) + SourceIndex(0) name (C1T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > @@ -126,11 +126,11 @@ sourceFile:contextualTyping.ts 3 >Emitted(8, 2) Source(14, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(18, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Module property declaration @@ -147,12 +147,12 @@ sourceFile:contextualTyping.ts 3 >Emitted(9, 9) Source(21, 12) + SourceIndex(0) 4 >Emitted(9, 10) Source(25, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^^^ 3 > ^^^^ 4 > ^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >module 3 > C2T5 @@ -164,12 +164,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(10, 18) Source(21, 13) + SourceIndex(0) 5 >Emitted(10, 19) Source(21, 14) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > export var 2 > foo @@ -182,12 +182,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(11, 26) Source(22, 65) + SourceIndex(0) name (C2T5) 5 >Emitted(11, 27) Source(22, 66) + SourceIndex(0) name (C2T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } @@ -212,14 +212,14 @@ sourceFile:contextualTyping.ts 2 >Emitted(13, 6) Source(24, 6) + SourceIndex(0) 3 >Emitted(13, 7) Source(24, 6) + SourceIndex(0) name (C2T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} @@ -240,115 +240,124 @@ sourceFile:contextualTyping.ts 6 >Emitted(14, 17) Source(21, 12) + SourceIndex(0) 7 >Emitted(14, 25) Source(25, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Variable declaration > -2 >var -3 > c3t1 -4 > : (s: string) => string = -5 > ( -6 > function( -7 > s +2 > +3 >// CONTEXT: Variable declaration 1->Emitted(15, 1) Source(28, 1) + SourceIndex(0) -2 >Emitted(15, 5) Source(28, 5) + SourceIndex(0) -3 >Emitted(15, 9) Source(28, 9) + SourceIndex(0) -4 >Emitted(15, 12) Source(28, 35) + SourceIndex(0) -5 >Emitted(15, 13) Source(28, 36) + SourceIndex(0) -6 >Emitted(15, 23) Source(28, 45) + SourceIndex(0) -7 >Emitted(15, 24) Source(28, 46) + SourceIndex(0) +2 >Emitted(15, 1) Source(27, 1) + SourceIndex(0) +3 >Emitted(15, 33) Source(27, 33) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nv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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c3t1 +3 > : (s: string) => string = +4 > ( +5 > function( +6 > s +1->Emitted(16, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(16, 9) Source(28, 9) + SourceIndex(0) +3 >Emitted(16, 12) Source(28, 35) + SourceIndex(0) +4 >Emitted(16, 13) Source(28, 36) + SourceIndex(0) +5 >Emitted(16, 23) Source(28, 45) + SourceIndex(0) +6 >Emitted(16, 24) Source(28, 46) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(16, 5) Source(28, 50) + SourceIndex(0) -2 >Emitted(16, 11) Source(28, 56) + SourceIndex(0) -3 >Emitted(16, 12) Source(28, 57) + SourceIndex(0) -4 >Emitted(16, 13) Source(28, 58) + SourceIndex(0) -5 >Emitted(16, 14) Source(28, 58) + SourceIndex(0) +1->Emitted(17, 5) Source(28, 50) + SourceIndex(0) +2 >Emitted(17, 11) Source(28, 56) + SourceIndex(0) +3 >Emitted(17, 12) Source(28, 57) + SourceIndex(0) +4 >Emitted(17, 13) Source(28, 58) + SourceIndex(0) +5 >Emitted(17, 14) Source(28, 58) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(17, 1) Source(28, 59) + SourceIndex(0) -2 >Emitted(17, 2) Source(28, 60) + SourceIndex(0) -3 >Emitted(17, 3) Source(28, 61) + SourceIndex(0) -4 >Emitted(17, 4) Source(28, 62) + SourceIndex(0) +1->Emitted(18, 1) Source(28, 59) + SourceIndex(0) +2 >Emitted(18, 2) Source(28, 60) + SourceIndex(0) +3 >Emitted(18, 3) Source(28, 61) + SourceIndex(0) +4 >Emitted(18, 4) Source(28, 62) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t2 4 > = 5 > ( -1->Emitted(18, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(18, 9) Source(29, 9) + SourceIndex(0) -4 >Emitted(18, 12) Source(29, 18) + SourceIndex(0) -5 >Emitted(18, 13) Source(29, 19) + SourceIndex(0) +1->Emitted(19, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(19, 9) Source(29, 9) + SourceIndex(0) +4 >Emitted(19, 12) Source(29, 18) + SourceIndex(0) +5 >Emitted(19, 13) Source(29, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > n 3 > : 4 > 1 -1->Emitted(19, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(19, 6) Source(30, 6) + SourceIndex(0) -3 >Emitted(19, 8) Source(30, 8) + SourceIndex(0) -4 >Emitted(19, 9) Source(30, 9) + SourceIndex(0) +1->Emitted(20, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(20, 6) Source(30, 6) + SourceIndex(0) +3 >Emitted(20, 8) Source(30, 8) + SourceIndex(0) +4 >Emitted(20, 9) Source(30, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(20, 2) Source(31, 2) + SourceIndex(0) -2 >Emitted(20, 3) Source(31, 3) + SourceIndex(0) -3 >Emitted(20, 4) Source(31, 3) + SourceIndex(0) +1->Emitted(21, 2) Source(31, 2) + SourceIndex(0) +2 >Emitted(21, 3) Source(31, 3) + SourceIndex(0) +3 >Emitted(21, 4) Source(31, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -356,36 +365,36 @@ sourceFile:contextualTyping.ts 4 > : number[] = 5 > [] 6 > ; -1->Emitted(21, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(32, 5) + SourceIndex(0) -3 >Emitted(21, 9) Source(32, 9) + SourceIndex(0) -4 >Emitted(21, 12) Source(32, 22) + SourceIndex(0) -5 >Emitted(21, 14) Source(32, 24) + SourceIndex(0) -6 >Emitted(21, 15) Source(32, 25) + SourceIndex(0) +1->Emitted(22, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(32, 5) + SourceIndex(0) +3 >Emitted(22, 9) Source(32, 9) + SourceIndex(0) +4 >Emitted(22, 12) Source(32, 22) + SourceIndex(0) +5 >Emitted(22, 14) Source(32, 24) + SourceIndex(0) +6 >Emitted(22, 15) Source(32, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t4 4 > : () => IFoo = -1->Emitted(22, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(33, 5) + SourceIndex(0) -3 >Emitted(22, 9) Source(33, 9) + SourceIndex(0) -4 >Emitted(22, 12) Source(33, 24) + SourceIndex(0) +1->Emitted(23, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(23, 5) Source(33, 5) + SourceIndex(0) +3 >Emitted(23, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(23, 12) Source(33, 24) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -393,32 +402,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(23, 5) Source(33, 37) + SourceIndex(0) -2 >Emitted(23, 11) Source(33, 43) + SourceIndex(0) -3 >Emitted(23, 12) Source(33, 50) + SourceIndex(0) -4 >Emitted(23, 13) Source(33, 51) + SourceIndex(0) -5 >Emitted(23, 15) Source(33, 53) + SourceIndex(0) -6 >Emitted(23, 16) Source(33, 54) + SourceIndex(0) -7 >Emitted(23, 17) Source(33, 54) + SourceIndex(0) +1->Emitted(24, 5) Source(33, 37) + SourceIndex(0) +2 >Emitted(24, 11) Source(33, 43) + SourceIndex(0) +3 >Emitted(24, 12) Source(33, 50) + SourceIndex(0) +4 >Emitted(24, 13) Source(33, 51) + SourceIndex(0) +5 >Emitted(24, 15) Source(33, 53) + SourceIndex(0) +6 >Emitted(24, 16) Source(33, 54) + SourceIndex(0) +7 >Emitted(24, 17) Source(33, 54) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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ndex(0) -3 >Emitted(24, 3) Source(33, 57) + SourceIndex(0) +1->Emitted(25, 1) Source(33, 55) + SourceIndex(0) +2 >Emitted(25, 2) Source(33, 56) + SourceIndex(0) +3 >Emitted(25, 3) Source(33, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -426,21 +435,21 @@ sourceFile:contextualTyping.ts 4 > : (n: number) => IFoo = 5 > function( 6 > n -1->Emitted(25, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(25, 5) Source(34, 5) + SourceIndex(0) -3 >Emitted(25, 9) Source(34, 9) + SourceIndex(0) -4 >Emitted(25, 12) Source(34, 33) + SourceIndex(0) -5 >Emitted(25, 22) Source(34, 42) + SourceIndex(0) -6 >Emitted(25, 23) Source(34, 43) + SourceIndex(0) +1->Emitted(26, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(34, 5) + SourceIndex(0) +3 >Emitted(26, 9) Source(34, 9) + SourceIndex(0) +4 >Emitted(26, 12) Source(34, 33) + SourceIndex(0) +5 >Emitted(26, 22) Source(34, 42) + SourceIndex(0) +6 >Emitted(26, 23) Source(34, 43) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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> @@ -448,26 +457,26 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(26, 5) Source(34, 47) + SourceIndex(0) -2 >Emitted(26, 11) Source(34, 53) + SourceIndex(0) -3 >Emitted(26, 12) Source(34, 60) + SourceIndex(0) -4 >Emitted(26, 13) Source(34, 61) + SourceIndex(0) -5 >Emitted(26, 15) Source(34, 63) + SourceIndex(0) -6 >Emitted(26, 16) Source(34, 64) + SourceIndex(0) -7 >Emitted(26, 17) Source(34, 64) + SourceIndex(0) +1->Emitted(27, 5) Source(34, 47) + SourceIndex(0) +2 >Emitted(27, 11) Source(34, 53) + SourceIndex(0) +3 >Emitted(27, 12) Source(34, 60) + SourceIndex(0) +4 >Emitted(27, 13) Source(34, 61) + SourceIndex(0) +5 >Emitted(27, 15) Source(34, 63) + SourceIndex(0) +6 >Emitted(27, 16) Source(34, 64) + SourceIndex(0) +7 >Emitted(27, 17) Source(34, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(27, 1) Source(34, 65) + SourceIndex(0) -2 >Emitted(27, 2) Source(34, 66) + SourceIndex(0) -3 >Emitted(27, 3) Source(34, 67) + SourceIndex(0) +1->Emitted(28, 1) Source(34, 65) + SourceIndex(0) +2 >Emitted(28, 2) Source(34, 66) + SourceIndex(0) +3 >Emitted(28, 3) Source(34, 67) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ @@ -475,7 +484,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -485,23 +494,23 @@ sourceFile:contextualTyping.ts 6 > n 7 > , 8 > s -1->Emitted(28, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(28, 5) Source(35, 5) + SourceIndex(0) -3 >Emitted(28, 9) Source(35, 9) + SourceIndex(0) -4 >Emitted(28, 12) Source(35, 44) + SourceIndex(0) -5 >Emitted(28, 22) Source(35, 53) + SourceIndex(0) -6 >Emitted(28, 23) Source(35, 54) + SourceIndex(0) -7 >Emitted(28, 25) Source(35, 56) + SourceIndex(0) -8 >Emitted(28, 26) Source(35, 57) + SourceIndex(0) +1->Emitted(29, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(35, 5) + SourceIndex(0) +3 >Emitted(29, 9) Source(35, 9) + SourceIndex(0) +4 >Emitted(29, 12) Source(35, 44) + SourceIndex(0) +5 >Emitted(29, 22) Source(35, 53) + SourceIndex(0) +6 >Emitted(29, 23) Source(35, 54) + SourceIndex(0) +7 >Emitted(29, 25) Source(35, 56) + SourceIndex(0) +8 >Emitted(29, 26) Source(35, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 >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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -509,32 +518,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(29, 5) Source(35, 61) + SourceIndex(0) -2 >Emitted(29, 11) Source(35, 67) + SourceIndex(0) -3 >Emitted(29, 12) Source(35, 74) + SourceIndex(0) -4 >Emitted(29, 13) Source(35, 75) + SourceIndex(0) -5 >Emitted(29, 15) Source(35, 77) + SourceIndex(0) -6 >Emitted(29, 16) Source(35, 78) + SourceIndex(0) -7 >Emitted(29, 17) Source(35, 78) + SourceIndex(0) +1->Emitted(30, 5) Source(35, 61) + SourceIndex(0) +2 >Emitted(30, 11) Source(35, 67) + SourceIndex(0) +3 >Emitted(30, 12) Source(35, 74) + SourceIndex(0) +4 >Emitted(30, 13) Source(35, 75) + SourceIndex(0) +5 >Emitted(30, 15) Source(35, 77) + SourceIndex(0) +6 >Emitted(30, 16) Source(35, 78) + SourceIndex(0) +7 >Emitted(30, 17) Source(35, 78) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(30, 1) Source(35, 79) + SourceIndex(0) -2 >Emitted(30, 2) Source(35, 80) + SourceIndex(0) -3 >Emitted(30, 3) Source(35, 81) + SourceIndex(0) +1->Emitted(31, 1) Source(35, 79) + SourceIndex(0) +2 >Emitted(31, 2) Source(35, 80) + SourceIndex(0) +3 >Emitted(31, 3) Source(35, 81) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPo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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -545,48 +554,48 @@ sourceFile:contextualTyping.ts > } = 5 > function( 6 > n -1->Emitted(31, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(31, 5) Source(36, 5) + SourceIndex(0) -3 >Emitted(31, 9) Source(36, 9) + SourceIndex(0) -4 >Emitted(31, 12) Source(39, 5) + SourceIndex(0) -5 >Emitted(31, 22) Source(39, 14) + SourceIndex(0) -6 >Emitted(31, 23) Source(39, 15) + SourceIndex(0) +1->Emitted(32, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(36, 5) + SourceIndex(0) +3 >Emitted(32, 9) Source(36, 9) + SourceIndex(0) +4 >Emitted(32, 12) Source(39, 5) + SourceIndex(0) +5 >Emitted(32, 22) Source(39, 14) + SourceIndex(0) +6 >Emitted(32, 23) Source(39, 15) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(32, 5) Source(39, 19) + SourceIndex(0) -2 >Emitted(32, 11) Source(39, 25) + SourceIndex(0) -3 >Emitted(32, 12) Source(39, 26) + SourceIndex(0) -4 >Emitted(32, 13) Source(39, 27) + SourceIndex(0) -5 >Emitted(32, 14) Source(39, 28) + SourceIndex(0) +1->Emitted(33, 5) Source(39, 19) + SourceIndex(0) +2 >Emitted(33, 11) Source(39, 25) + SourceIndex(0) +3 >Emitted(33, 12) Source(39, 26) + SourceIndex(0) +4 >Emitted(33, 13) Source(39, 27) + SourceIndex(0) +5 >Emitted(33, 14) Source(39, 28) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(33, 1) Source(39, 29) + SourceIndex(0) -2 >Emitted(33, 2) Source(39, 30) + SourceIndex(0) -3 >Emitted(33, 3) Source(39, 31) + SourceIndex(0) +1->Emitted(34, 1) Source(39, 29) + SourceIndex(0) +2 >Emitted(34, 2) Source(39, 30) + SourceIndex(0) +3 >Emitted(34, 3) Source(39, 31) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -595,42 +604,42 @@ sourceFile:contextualTyping.ts 4 > : (n: number, s: string) => number = 5 > function( 6 > n -1->Emitted(34, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(34, 5) Source(41, 5) + SourceIndex(0) -3 >Emitted(34, 9) Source(41, 9) + SourceIndex(0) -4 >Emitted(34, 12) Source(41, 46) + SourceIndex(0) -5 >Emitted(34, 22) Source(41, 55) + SourceIndex(0) -6 >Emitted(34, 23) Source(41, 56) + SourceIndex(0) +1->Emitted(35, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(35, 5) Source(41, 5) + SourceIndex(0) +3 >Emitted(35, 9) Source(41, 9) + SourceIndex(0) +4 >Emitted(35, 12) Source(41, 46) + SourceIndex(0) +5 >Emitted(35, 22) Source(41, 55) + SourceIndex(0) +6 >Emitted(35, 23) Source(41, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(35, 5) Source(41, 60) + SourceIndex(0) -2 >Emitted(35, 11) Source(41, 66) + SourceIndex(0) -3 >Emitted(35, 12) Source(41, 67) + SourceIndex(0) -4 >Emitted(35, 13) Source(41, 68) + SourceIndex(0) -5 >Emitted(35, 14) Source(41, 69) + SourceIndex(0) +1->Emitted(36, 5) Source(41, 60) + SourceIndex(0) +2 >Emitted(36, 11) Source(41, 66) + SourceIndex(0) +3 >Emitted(36, 12) Source(41, 67) + SourceIndex(0) +4 >Emitted(36, 13) Source(41, 68) + SourceIndex(0) +5 >Emitted(36, 14) Source(41, 69) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(36, 1) Source(41, 70) + SourceIndex(0) -2 >Emitted(36, 2) Source(41, 71) + SourceIndex(0) -3 >Emitted(36, 3) Source(41, 72) + SourceIndex(0) +1->Emitted(37, 1) Source(41, 70) + SourceIndex(0) +2 >Emitted(37, 2) Source(41, 71) + SourceIndex(0) +3 >Emitted(37, 3) Source(41, 72) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ @@ -640,7 +649,7 @@ sourceFile:contextualTyping.ts 8 > ^^ 9 > ^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -652,18 +661,18 @@ sourceFile:contextualTyping.ts 8 > [] 9 > ] 10> ; -1->Emitted(37, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(42, 5) + SourceIndex(0) -3 >Emitted(37, 9) Source(42, 9) + SourceIndex(0) -4 >Emitted(37, 12) Source(42, 24) + SourceIndex(0) -5 >Emitted(37, 13) Source(42, 25) + SourceIndex(0) -6 >Emitted(37, 15) Source(42, 27) + SourceIndex(0) -7 >Emitted(37, 17) Source(42, 28) + SourceIndex(0) -8 >Emitted(37, 19) Source(42, 30) + SourceIndex(0) -9 >Emitted(37, 20) Source(42, 31) + SourceIndex(0) -10>Emitted(37, 21) Source(42, 32) + SourceIndex(0) +1->Emitted(38, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(38, 5) Source(42, 5) + SourceIndex(0) +3 >Emitted(38, 9) Source(42, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(42, 24) + SourceIndex(0) +5 >Emitted(38, 13) Source(42, 25) + SourceIndex(0) +6 >Emitted(38, 15) Source(42, 27) + SourceIndex(0) +7 >Emitted(38, 17) Source(42, 28) + SourceIndex(0) +8 >Emitted(38, 19) Source(42, 30) + SourceIndex(0) +9 >Emitted(38, 20) Source(42, 31) + SourceIndex(0) +10>Emitted(38, 21) Source(42, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -677,7 +686,7 @@ sourceFile:contextualTyping.ts 12> ^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -693,22 +702,22 @@ sourceFile:contextualTyping.ts 12> ) 13> ] 14> ; -1->Emitted(38, 1) Source(43, 1) + SourceIndex(0) -2 >Emitted(38, 5) Source(43, 5) + SourceIndex(0) -3 >Emitted(38, 10) Source(43, 10) + SourceIndex(0) -4 >Emitted(38, 13) Source(43, 21) + SourceIndex(0) -5 >Emitted(38, 14) Source(43, 28) + SourceIndex(0) -6 >Emitted(38, 15) Source(43, 29) + SourceIndex(0) -7 >Emitted(38, 17) Source(43, 31) + SourceIndex(0) -8 >Emitted(38, 18) Source(43, 32) + SourceIndex(0) -9 >Emitted(38, 20) Source(43, 39) + SourceIndex(0) -10>Emitted(38, 21) Source(43, 40) + SourceIndex(0) -11>Emitted(38, 23) Source(43, 42) + SourceIndex(0) -12>Emitted(38, 24) Source(43, 43) + SourceIndex(0) -13>Emitted(38, 25) Source(43, 44) + SourceIndex(0) -14>Emitted(38, 26) Source(43, 45) + SourceIndex(0) +1->Emitted(39, 1) Source(43, 1) + SourceIndex(0) +2 >Emitted(39, 5) Source(43, 5) + SourceIndex(0) +3 >Emitted(39, 10) Source(43, 10) + SourceIndex(0) +4 >Emitted(39, 13) Source(43, 21) + SourceIndex(0) +5 >Emitted(39, 14) Source(43, 28) + SourceIndex(0) +6 >Emitted(39, 15) Source(43, 29) + SourceIndex(0) +7 >Emitted(39, 17) Source(43, 31) + SourceIndex(0) +8 >Emitted(39, 18) Source(43, 32) + SourceIndex(0) +9 >Emitted(39, 20) Source(43, 39) + SourceIndex(0) +10>Emitted(39, 21) Source(43, 40) + SourceIndex(0) +11>Emitted(39, 23) Source(43, 42) + SourceIndex(0) +12>Emitted(39, 24) Source(43, 43) + SourceIndex(0) +13>Emitted(39, 25) Source(43, 44) + SourceIndex(0) +14>Emitted(39, 26) Source(43, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -717,7 +726,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -728,69 +737,69 @@ sourceFile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(39, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(39, 5) Source(44, 5) + SourceIndex(0) -3 >Emitted(39, 10) Source(44, 10) + SourceIndex(0) -4 >Emitted(39, 13) Source(44, 50) + SourceIndex(0) -5 >Emitted(39, 14) Source(44, 51) + SourceIndex(0) -6 >Emitted(39, 24) Source(44, 60) + SourceIndex(0) -7 >Emitted(39, 25) Source(44, 61) + SourceIndex(0) -8 >Emitted(39, 27) Source(44, 63) + SourceIndex(0) -9 >Emitted(39, 28) Source(44, 64) + SourceIndex(0) +1->Emitted(40, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(44, 5) + SourceIndex(0) +3 >Emitted(40, 10) Source(44, 10) + SourceIndex(0) +4 >Emitted(40, 13) Source(44, 50) + SourceIndex(0) +5 >Emitted(40, 14) Source(44, 51) + SourceIndex(0) +6 >Emitted(40, 24) Source(44, 60) + SourceIndex(0) +7 >Emitted(40, 25) Source(44, 61) + SourceIndex(0) +8 >Emitted(40, 27) Source(44, 63) + SourceIndex(0) +9 >Emitted(40, 28) Source(44, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(40, 5) Source(44, 68) + SourceIndex(0) -2 >Emitted(40, 11) Source(44, 74) + SourceIndex(0) -3 >Emitted(40, 12) Source(44, 75) + SourceIndex(0) -4 >Emitted(40, 13) Source(44, 76) + SourceIndex(0) -5 >Emitted(40, 14) Source(44, 77) + SourceIndex(0) +1->Emitted(41, 5) Source(44, 68) + SourceIndex(0) +2 >Emitted(41, 11) Source(44, 74) + SourceIndex(0) +3 >Emitted(41, 12) Source(44, 75) + SourceIndex(0) +4 >Emitted(41, 13) Source(44, 76) + SourceIndex(0) +5 >Emitted(41, 14) Source(44, 77) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(41, 1) Source(44, 78) + SourceIndex(0) -2 >Emitted(41, 2) Source(44, 79) + SourceIndex(0) -3 >Emitted(41, 3) Source(44, 80) + SourceIndex(0) -4 >Emitted(41, 4) Source(44, 81) + SourceIndex(0) +1->Emitted(42, 1) Source(44, 78) + SourceIndex(0) +2 >Emitted(42, 2) Source(44, 79) + SourceIndex(0) +3 >Emitted(42, 3) Source(44, 80) + SourceIndex(0) +4 >Emitted(42, 4) Source(44, 81) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t12 4 > : IBar = -1->Emitted(42, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(42, 5) Source(45, 5) + SourceIndex(0) -3 >Emitted(42, 10) Source(45, 10) + SourceIndex(0) -4 >Emitted(42, 13) Source(45, 19) + SourceIndex(0) +1->Emitted(43, 1) Source(45, 1) + SourceIndex(0) +2 >Emitted(43, 5) Source(45, 5) + SourceIndex(0) +3 >Emitted(43, 10) Source(45, 10) + SourceIndex(0) +4 >Emitted(43, 13) Source(45, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -798,48 +807,48 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(43, 5) Source(46, 5) + SourceIndex(0) -2 >Emitted(43, 8) Source(46, 8) + SourceIndex(0) -3 >Emitted(43, 10) Source(46, 16) + SourceIndex(0) -4 >Emitted(43, 11) Source(46, 17) + SourceIndex(0) -5 >Emitted(43, 13) Source(46, 19) + SourceIndex(0) -6 >Emitted(43, 14) Source(46, 20) + SourceIndex(0) +1->Emitted(44, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(44, 8) Source(46, 8) + SourceIndex(0) +3 >Emitted(44, 10) Source(46, 16) + SourceIndex(0) +4 >Emitted(44, 11) Source(46, 17) + SourceIndex(0) +5 >Emitted(44, 13) Source(46, 19) + SourceIndex(0) +6 >Emitted(44, 14) Source(46, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(44, 2) Source(47, 2) + SourceIndex(0) -2 >Emitted(44, 3) Source(47, 2) + SourceIndex(0) +1->Emitted(45, 2) Source(47, 2) + SourceIndex(0) +2 >Emitted(45, 3) Source(47, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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1-> > 2 >var 3 > c3t13 4 > = 5 > ( -1->Emitted(45, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(45, 5) Source(48, 5) + SourceIndex(0) -3 >Emitted(45, 10) Source(48, 10) + SourceIndex(0) -4 >Emitted(45, 13) Source(48, 19) + SourceIndex(0) -5 >Emitted(45, 14) Source(48, 20) + SourceIndex(0) +1->Emitted(46, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(46, 5) Source(48, 5) + SourceIndex(0) +3 >Emitted(46, 10) Source(48, 10) + SourceIndex(0) +4 >Emitted(46, 13) Source(48, 19) + SourceIndex(0) +5 >Emitted(46, 14) Source(48, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -848,124 +857,124 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(46, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(46, 6) Source(49, 6) + SourceIndex(0) -3 >Emitted(46, 8) Source(49, 8) + SourceIndex(0) -4 >Emitted(46, 18) Source(49, 17) + SourceIndex(0) -5 >Emitted(46, 19) Source(49, 18) + SourceIndex(0) -6 >Emitted(46, 21) Source(49, 20) + SourceIndex(0) -7 >Emitted(46, 22) Source(49, 21) + SourceIndex(0) +1->Emitted(47, 5) Source(49, 5) + SourceIndex(0) +2 >Emitted(47, 6) Source(49, 6) + SourceIndex(0) +3 >Emitted(47, 8) Source(49, 8) + SourceIndex(0) +4 >Emitted(47, 18) Source(49, 17) + SourceIndex(0) +5 >Emitted(47, 19) Source(49, 18) + SourceIndex(0) +6 >Emitted(47, 21) Source(49, 20) + SourceIndex(0) +7 >Emitted(47, 22) Source(49, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(47, 9) Source(49, 25) + SourceIndex(0) -2 >Emitted(47, 15) Source(49, 31) + SourceIndex(0) -3 >Emitted(47, 16) Source(49, 32) + SourceIndex(0) -4 >Emitted(47, 17) Source(49, 33) + SourceIndex(0) -5 >Emitted(47, 18) Source(49, 34) + SourceIndex(0) +1->Emitted(48, 9) Source(49, 25) + SourceIndex(0) +2 >Emitted(48, 15) Source(49, 31) + SourceIndex(0) +3 >Emitted(48, 16) Source(49, 32) + SourceIndex(0) +4 >Emitted(48, 17) Source(49, 33) + SourceIndex(0) +5 >Emitted(48, 18) Source(49, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(48, 5) Source(49, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(49, 36) + SourceIndex(0) +1->Emitted(49, 5) Source(49, 35) + SourceIndex(0) +2 >Emitted(49, 6) Source(49, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(49, 2) Source(50, 2) + SourceIndex(0) -2 >Emitted(49, 3) Source(50, 3) + SourceIndex(0) -3 >Emitted(49, 4) Source(50, 3) + SourceIndex(0) +1->Emitted(50, 2) Source(50, 2) + SourceIndex(0) +2 >Emitted(50, 3) Source(50, 3) + SourceIndex(0) +3 >Emitted(50, 4) Source(50, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t14 4 > = 5 > ( -1->Emitted(50, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(50, 5) Source(51, 5) + SourceIndex(0) -3 >Emitted(50, 10) Source(51, 10) + SourceIndex(0) -4 >Emitted(50, 13) Source(51, 19) + SourceIndex(0) -5 >Emitted(50, 14) Source(51, 20) + SourceIndex(0) +1->Emitted(51, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(51, 5) Source(51, 5) + SourceIndex(0) +3 >Emitted(51, 10) Source(51, 10) + SourceIndex(0) +4 >Emitted(51, 13) Source(51, 19) + SourceIndex(0) +5 >Emitted(51, 14) Source(51, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(51, 5) Source(52, 5) + SourceIndex(0) -2 >Emitted(51, 6) Source(52, 6) + SourceIndex(0) -3 >Emitted(51, 8) Source(52, 8) + SourceIndex(0) -4 >Emitted(51, 10) Source(52, 10) + SourceIndex(0) +1->Emitted(52, 5) Source(52, 5) + SourceIndex(0) +2 >Emitted(52, 6) Source(52, 6) + SourceIndex(0) +3 >Emitted(52, 8) Source(52, 8) + SourceIndex(0) +4 >Emitted(52, 10) Source(52, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(52, 2) Source(53, 2) + SourceIndex(0) -2 >Emitted(52, 3) Source(53, 3) + SourceIndex(0) -3 >Emitted(52, 4) Source(53, 3) + SourceIndex(0) +1->Emitted(53, 2) Source(53, 2) + SourceIndex(0) +2 >Emitted(53, 3) Source(53, 3) + SourceIndex(0) +3 >Emitted(53, 4) Source(53, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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SourceIndex(0) -2 >Emitted(53, 5) Source(56, 7) + SourceIndex(0) -3 >Emitted(53, 9) Source(56, 11) + SourceIndex(0) +1->Emitted(54, 1) Source(56, 1) + SourceIndex(0) +2 >Emitted(54, 5) Source(56, 7) + SourceIndex(0) +3 >Emitted(54, 9) Source(56, 11) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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C4T5) +1->Emitted(55, 5) Source(58, 5) + SourceIndex(0) name (C4T5) +2 >Emitted(55, 14) Source(56, 7) + SourceIndex(0) name (C4T5) +3 >Emitted(55, 18) Source(56, 11) + SourceIndex(0) name (C4T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^ 3 > ^ 4 > ^^^ @@ -974,7 +983,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > foo: (i: number, s: string) => string; > constructor() { @@ -987,69 +996,69 @@ sourceFile:contextualTyping.ts 7 > i 8 > , 9 > s -1->Emitted(55, 9) Source(59, 9) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(55, 13) Source(59, 13) + SourceIndex(0) name (C4T5.constructor) -3 >Emitted(55, 14) Source(59, 14) + SourceIndex(0) name (C4T5.constructor) -4 >Emitted(55, 17) Source(59, 17) + SourceIndex(0) name (C4T5.constructor) -5 >Emitted(55, 20) Source(59, 20) + SourceIndex(0) name (C4T5.constructor) -6 >Emitted(55, 30) Source(59, 29) + SourceIndex(0) name (C4T5.constructor) -7 >Emitted(55, 31) Source(59, 30) + SourceIndex(0) name (C4T5.constructor) -8 >Emitted(55, 33) Source(59, 32) + SourceIndex(0) name (C4T5.constructor) -9 >Emitted(55, 34) Source(59, 33) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(56, 9) Source(59, 9) + SourceIndex(0) name (C4T5.constructor) +2 >Emitted(56, 13) Source(59, 13) + SourceIndex(0) name (C4T5.constructor) +3 >Emitted(56, 14) Source(59, 14) + SourceIndex(0) name (C4T5.constructor) +4 >Emitted(56, 17) Source(59, 17) + SourceIndex(0) name (C4T5.constructor) +5 >Emitted(56, 20) Source(59, 20) + SourceIndex(0) name (C4T5.constructor) +6 >Emitted(56, 30) Source(59, 29) + SourceIndex(0) name (C4T5.constructor) +7 >Emitted(56, 31) Source(59, 30) + SourceIndex(0) name (C4T5.constructor) +8 >Emitted(56, 33) Source(59, 32) + SourceIndex(0) name (C4T5.constructor) +9 >Emitted(56, 34) Source(59, 33) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return 3 > 4 > s 5 > ; -1->Emitted(56, 13) Source(60, 13) + SourceIndex(0) -2 >Emitted(56, 19) Source(60, 19) + SourceIndex(0) -3 >Emitted(56, 20) Source(60, 20) + SourceIndex(0) -4 >Emitted(56, 21) Source(60, 21) + SourceIndex(0) -5 >Emitted(56, 22) Source(60, 22) + SourceIndex(0) +1->Emitted(57, 13) Source(60, 13) + SourceIndex(0) +2 >Emitted(57, 19) Source(60, 19) + SourceIndex(0) +3 >Emitted(57, 20) Source(60, 20) + SourceIndex(0) +4 >Emitted(57, 21) Source(60, 21) + SourceIndex(0) +5 >Emitted(57, 22) Source(60, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nv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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 3 > -1->Emitted(57, 9) Source(61, 9) + SourceIndex(0) -2 >Emitted(57, 10) Source(61, 10) + SourceIndex(0) -3 >Emitted(57, 11) Source(61, 10) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(58, 9) Source(61, 9) + SourceIndex(0) +2 >Emitted(58, 10) Source(61, 10) + SourceIndex(0) +3 >Emitted(58, 11) Source(61, 10) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } -1->Emitted(58, 5) Source(62, 5) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(58, 6) Source(62, 6) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(59, 5) Source(62, 5) + SourceIndex(0) name (C4T5.constructor) +2 >Emitted(59, 6) Source(62, 6) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } -1->Emitted(59, 5) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(59, 16) Source(63, 2) + SourceIndex(0) name (C4T5) +1->Emitted(60, 5) Source(63, 1) + SourceIndex(0) name (C4T5) +2 >Emitted(60, 16) Source(63, 2) + SourceIndex(0) name (C4T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > @@ -1061,16 +1070,16 @@ sourceFile:contextualTyping.ts > } > } > } -1->Emitted(60, 1) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(60, 2) Source(63, 2) + SourceIndex(0) name (C4T5) -3 >Emitted(60, 2) Source(56, 1) + SourceIndex(0) -4 >Emitted(60, 6) Source(63, 2) + SourceIndex(0) +1->Emitted(61, 1) Source(63, 1) + SourceIndex(0) name (C4T5) +2 >Emitted(61, 2) Source(63, 2) + SourceIndex(0) name (C4T5) +3 >Emitted(61, 2) Source(56, 1) + SourceIndex(0) +4 >Emitted(61, 6) Source(63, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Module property assignment @@ -1083,48 +1092,48 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(61, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(61, 5) Source(66, 8) + SourceIndex(0) -3 >Emitted(61, 9) Source(66, 12) + SourceIndex(0) -4 >Emitted(61, 10) Source(71, 2) + SourceIndex(0) +1->Emitted(62, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(62, 5) Source(66, 8) + SourceIndex(0) +3 >Emitted(62, 9) Source(66, 12) + SourceIndex(0) +4 >Emitted(62, 10) Source(71, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^^^ 3 > ^^^^ 4 > ^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >module 3 > C5T5 4 > 5 > { -1->Emitted(62, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(62, 12) Source(66, 8) + SourceIndex(0) -3 >Emitted(62, 16) Source(66, 12) + SourceIndex(0) -4 >Emitted(62, 18) Source(66, 13) + SourceIndex(0) -5 >Emitted(62, 19) Source(66, 14) + SourceIndex(0) +1->Emitted(63, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(63, 12) Source(66, 8) + SourceIndex(0) +3 >Emitted(63, 16) Source(66, 12) + SourceIndex(0) +4 >Emitted(63, 18) Source(66, 13) + SourceIndex(0) +5 >Emitted(63, 19) Source(66, 14) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > export var 2 > foo: (i: number, s: string) => string 3 > ; -1->Emitted(63, 5) Source(67, 16) + SourceIndex(0) name (C5T5) -2 >Emitted(63, 13) Source(67, 53) + SourceIndex(0) name (C5T5) -3 >Emitted(63, 14) Source(67, 54) + SourceIndex(0) name (C5T5) +1->Emitted(64, 5) Source(67, 16) + SourceIndex(0) name (C5T5) +2 >Emitted(64, 13) Source(67, 53) + SourceIndex(0) name (C5T5) +3 >Emitted(64, 14) Source(67, 54) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > foo @@ -1133,52 +1142,52 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(64, 5) Source(68, 5) + SourceIndex(0) name (C5T5) -2 >Emitted(64, 13) Source(68, 8) + SourceIndex(0) name (C5T5) -3 >Emitted(64, 16) Source(68, 11) + SourceIndex(0) name (C5T5) -4 >Emitted(64, 26) Source(68, 20) + SourceIndex(0) name (C5T5) -5 >Emitted(64, 27) Source(68, 21) + SourceIndex(0) name (C5T5) -6 >Emitted(64, 29) Source(68, 23) + SourceIndex(0) name (C5T5) -7 >Emitted(64, 30) Source(68, 24) + SourceIndex(0) name (C5T5) +1->Emitted(65, 5) Source(68, 5) + SourceIndex(0) name (C5T5) +2 >Emitted(65, 13) Source(68, 8) + SourceIndex(0) name (C5T5) +3 >Emitted(65, 16) Source(68, 11) + SourceIndex(0) name (C5T5) +4 >Emitted(65, 26) Source(68, 20) + SourceIndex(0) name (C5T5) +5 >Emitted(65, 27) Source(68, 21) + SourceIndex(0) name (C5T5) +6 >Emitted(65, 29) Source(68, 23) + SourceIndex(0) name (C5T5) +7 >Emitted(65, 30) Source(68, 24) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return 3 > 4 > s 5 > ; -1->Emitted(65, 9) Source(69, 9) + SourceIndex(0) -2 >Emitted(65, 15) Source(69, 15) + SourceIndex(0) -3 >Emitted(65, 16) Source(69, 16) + SourceIndex(0) -4 >Emitted(65, 17) Source(69, 17) + SourceIndex(0) -5 >Emitted(65, 18) Source(69, 18) + SourceIndex(0) +1->Emitted(66, 9) Source(69, 9) + SourceIndex(0) +2 >Emitted(66, 15) Source(69, 15) + SourceIndex(0) +3 >Emitted(66, 16) Source(69, 16) + SourceIndex(0) +4 >Emitted(66, 17) Source(69, 17) + SourceIndex(0) +5 >Emitted(66, 18) Source(69, 18) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 3 > -1->Emitted(66, 5) Source(70, 5) + SourceIndex(0) -2 >Emitted(66, 6) Source(70, 6) + SourceIndex(0) -3 >Emitted(66, 7) Source(70, 6) + SourceIndex(0) name (C5T5) +1->Emitted(67, 5) Source(70, 5) + SourceIndex(0) +2 >Emitted(67, 6) Source(70, 6) + SourceIndex(0) +3 >Emitted(67, 7) Source(70, 6) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^^ 4 > ^^^^ 5 > ^^^^^ 6 > ^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} @@ -1192,57 +1201,66 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(67, 1) Source(71, 1) + SourceIndex(0) name (C5T5) -2 >Emitted(67, 2) Source(71, 2) + SourceIndex(0) name (C5T5) -3 >Emitted(67, 4) Source(66, 8) + SourceIndex(0) -4 >Emitted(67, 8) Source(66, 12) + SourceIndex(0) -5 >Emitted(67, 13) Source(66, 8) + SourceIndex(0) -6 >Emitted(67, 17) Source(66, 12) + SourceIndex(0) -7 >Emitted(67, 25) Source(71, 2) + SourceIndex(0) +1->Emitted(68, 1) Source(71, 1) + SourceIndex(0) name (C5T5) +2 >Emitted(68, 2) Source(71, 2) + SourceIndex(0) name (C5T5) +3 >Emitted(68, 4) Source(66, 8) + SourceIndex(0) +4 >Emitted(68, 8) Source(66, 12) + SourceIndex(0) +5 >Emitted(68, 13) Source(66, 8) + SourceIndex(0) +6 >Emitted(68, 17) Source(66, 12) + SourceIndex(0) +7 >Emitted(68, 25) Source(71, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Variable assignment > -2 >var -3 > c6t5: (n: number) => IFoo -4 > ; -1->Emitted(68, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(68, 5) Source(74, 5) + SourceIndex(0) -3 >Emitted(68, 9) Source(74, 30) + SourceIndex(0) -4 >Emitted(68, 10) Source(74, 31) + SourceIndex(0) +2 > +3 >// CONTEXT: Variable assignment +1->Emitted(69, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(69, 1) Source(73, 1) + SourceIndex(0) +3 >Emitted(69, 32) Source(73, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c6t5: (n: number) => IFoo +3 > ; +1->Emitted(70, 5) Source(74, 5) + SourceIndex(0) +2 >Emitted(70, 9) Source(74, 30) + SourceIndex(0) +3 >Emitted(70, 10) Source(74, 31) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >c6t5 3 > = <(n: number) => IFoo> 4 > function( 5 > n -1->Emitted(69, 1) Source(75, 1) + SourceIndex(0) -2 >Emitted(69, 5) Source(75, 5) + SourceIndex(0) -3 >Emitted(69, 8) Source(75, 29) + SourceIndex(0) -4 >Emitted(69, 18) Source(75, 38) + SourceIndex(0) -5 >Emitted(69, 19) Source(75, 39) + SourceIndex(0) +1->Emitted(71, 1) Source(75, 1) + SourceIndex(0) +2 >Emitted(71, 5) Source(75, 5) + SourceIndex(0) +3 >Emitted(71, 8) Source(75, 29) + SourceIndex(0) +4 >Emitted(71, 18) Source(75, 38) + SourceIndex(0) +5 >Emitted(71, 19) Source(75, 39) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -1250,43 +1268,52 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(70, 5) Source(75, 43) + SourceIndex(0) -2 >Emitted(70, 11) Source(75, 49) + SourceIndex(0) -3 >Emitted(70, 12) Source(75, 56) + SourceIndex(0) -4 >Emitted(70, 13) Source(75, 57) + SourceIndex(0) -5 >Emitted(70, 15) Source(75, 59) + SourceIndex(0) -6 >Emitted(70, 16) Source(75, 60) + SourceIndex(0) -7 >Emitted(70, 17) Source(75, 60) + SourceIndex(0) +1->Emitted(72, 5) Source(75, 43) + SourceIndex(0) +2 >Emitted(72, 11) Source(75, 49) + SourceIndex(0) +3 >Emitted(72, 12) Source(75, 56) + SourceIndex(0) +4 >Emitted(72, 13) Source(75, 57) + SourceIndex(0) +5 >Emitted(72, 15) Source(75, 59) + SourceIndex(0) +6 >Emitted(72, 16) Source(75, 60) + SourceIndex(0) +7 >Emitted(72, 17) Source(75, 60) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 2) Source(75, 62) + SourceIndex(0) -3 >Emitted(71, 3) Source(75, 63) + SourceIndex(0) +1->Emitted(73, 1) Source(75, 61) + SourceIndex(0) +2 >Emitted(73, 2) Source(75, 62) + SourceIndex(0) +3 >Emitted(73, 3) Source(75, 63) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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(0) -4 >Emitted(72, 10) Source(78, 18) + SourceIndex(0) +2 > +3 >// CONTEXT: Array index assignment +1->Emitted(74, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(74, 1) Source(77, 1) + SourceIndex(0) +3 >Emitted(74, 35) Source(77, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c7t2: IFoo[] +3 > ; +1->Emitted(75, 5) Source(78, 5) + SourceIndex(0) +2 >Emitted(75, 9) Source(78, 17) + SourceIndex(0) +3 >Emitted(75, 10) Source(78, 18) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^ @@ -1300,7 +1327,7 @@ sourceFile:contextualTyping.ts 12> ^^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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1343,22 @@ sourceFile:contextualTyping.ts 12> } 13> ) 14> ; -1->Emitted(73, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(73, 5) Source(79, 5) + SourceIndex(0) -3 >Emitted(73, 6) Source(79, 6) + SourceIndex(0) -4 >Emitted(73, 7) Source(79, 7) + SourceIndex(0) -5 >Emitted(73, 8) Source(79, 8) + SourceIndex(0) -6 >Emitted(73, 11) Source(79, 17) + SourceIndex(0) -7 >Emitted(73, 12) Source(79, 18) + SourceIndex(0) -8 >Emitted(73, 14) Source(79, 19) + SourceIndex(0) -9 >Emitted(73, 15) Source(79, 20) + SourceIndex(0) -10>Emitted(73, 17) Source(79, 22) + SourceIndex(0) -11>Emitted(73, 18) Source(79, 23) + SourceIndex(0) -12>Emitted(73, 20) Source(79, 24) + SourceIndex(0) -13>Emitted(73, 21) Source(79, 25) + SourceIndex(0) -14>Emitted(73, 22) Source(79, 26) + SourceIndex(0) +1->Emitted(76, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(76, 5) Source(79, 5) + SourceIndex(0) +3 >Emitted(76, 6) Source(79, 6) + SourceIndex(0) +4 >Emitted(76, 7) Source(79, 7) + SourceIndex(0) +5 >Emitted(76, 8) Source(79, 8) + SourceIndex(0) +6 >Emitted(76, 11) Source(79, 17) + SourceIndex(0) +7 >Emitted(76, 12) Source(79, 18) + SourceIndex(0) +8 >Emitted(76, 14) Source(79, 19) + SourceIndex(0) +9 >Emitted(76, 15) Source(79, 20) + SourceIndex(0) +10>Emitted(76, 17) Source(79, 22) + SourceIndex(0) +11>Emitted(76, 18) Source(79, 23) + SourceIndex(0) +12>Emitted(76, 20) Source(79, 24) + SourceIndex(0) +13>Emitted(76, 21) Source(79, 25) + SourceIndex(0) +14>Emitted(76, 22) Source(79, 26) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -1339,7 +1366,7 @@ sourceFile:contextualTyping.ts 6 > ^^ 7 > ^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Object property assignment @@ -1389,16 +1416,16 @@ sourceFile:contextualTyping.ts 6 > {} 7 > ) 8 > ; -1->Emitted(74, 1) Source(102, 1) + SourceIndex(0) -2 >Emitted(74, 5) Source(102, 5) + SourceIndex(0) -3 >Emitted(74, 10) Source(102, 10) + SourceIndex(0) -4 >Emitted(74, 13) Source(120, 19) + SourceIndex(0) -5 >Emitted(74, 14) Source(120, 20) + SourceIndex(0) -6 >Emitted(74, 16) Source(120, 22) + SourceIndex(0) -7 >Emitted(74, 17) Source(120, 23) + SourceIndex(0) -8 >Emitted(74, 18) Source(120, 24) + SourceIndex(0) +1->Emitted(77, 1) Source(102, 1) + SourceIndex(0) +2 >Emitted(77, 5) Source(102, 5) + SourceIndex(0) +3 >Emitted(77, 10) Source(102, 10) + SourceIndex(0) +4 >Emitted(77, 13) Source(120, 19) + SourceIndex(0) +5 >Emitted(77, 14) Source(120, 20) + SourceIndex(0) +6 >Emitted(77, 16) Source(120, 22) + SourceIndex(0) +7 >Emitted(77, 17) Source(120, 23) + SourceIndex(0) +8 >Emitted(77, 18) Source(120, 24) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1406,7 +1433,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^^^^^^^^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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-1->Emitted(75, 1) Source(122, 1) + SourceIndex(0) -2 >Emitted(75, 6) Source(122, 6) + SourceIndex(0) -3 >Emitted(75, 7) Source(122, 7) + SourceIndex(0) -4 >Emitted(75, 9) Source(122, 9) + SourceIndex(0) -5 >Emitted(75, 12) Source(122, 12) + SourceIndex(0) -6 >Emitted(75, 13) Source(122, 13) + SourceIndex(0) -7 >Emitted(75, 23) Source(122, 22) + SourceIndex(0) -8 >Emitted(75, 24) Source(122, 23) + SourceIndex(0) +1->Emitted(78, 1) Source(122, 1) + SourceIndex(0) +2 >Emitted(78, 6) Source(122, 6) + SourceIndex(0) +3 >Emitted(78, 7) Source(122, 7) + SourceIndex(0) +4 >Emitted(78, 9) Source(122, 9) + SourceIndex(0) +5 >Emitted(78, 12) Source(122, 12) + SourceIndex(0) +6 >Emitted(78, 13) Source(122, 13) + SourceIndex(0) +7 >Emitted(78, 23) Source(122, 22) + SourceIndex(0) +8 >Emitted(78, 24) Source(122, 23) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(76, 5) Source(122, 27) + SourceIndex(0) -2 >Emitted(76, 11) Source(122, 33) + SourceIndex(0) -3 >Emitted(76, 12) Source(122, 34) + SourceIndex(0) -4 >Emitted(76, 13) Source(122, 35) + SourceIndex(0) -5 >Emitted(76, 14) Source(122, 35) + SourceIndex(0) +1->Emitted(79, 5) Source(122, 27) + SourceIndex(0) +2 >Emitted(79, 11) Source(122, 33) + SourceIndex(0) +3 >Emitted(79, 12) Source(122, 34) + SourceIndex(0) +4 >Emitted(79, 13) Source(122, 35) + SourceIndex(0) +5 >Emitted(79, 14) Source(122, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(77, 1) Source(122, 36) + SourceIndex(0) -2 >Emitted(77, 2) Source(122, 37) + SourceIndex(0) -3 >Emitted(77, 3) Source(122, 38) + SourceIndex(0) -4 >Emitted(77, 4) Source(122, 39) + SourceIndex(0) +1->Emitted(80, 1) Source(122, 36) + SourceIndex(0) +2 >Emitted(80, 2) Source(122, 37) + SourceIndex(0) +3 >Emitted(80, 3) Source(122, 38) + SourceIndex(0) +4 >Emitted(80, 4) Source(122, 39) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1471,48 +1498,48 @@ sourceFile:contextualTyping.ts 4 > t2 5 > = 6 > ( -1->Emitted(78, 1) Source(123, 1) + SourceIndex(0) -2 >Emitted(78, 6) Source(123, 6) + SourceIndex(0) -3 >Emitted(78, 7) Source(123, 7) + SourceIndex(0) -4 >Emitted(78, 9) Source(123, 9) + SourceIndex(0) -5 >Emitted(78, 12) Source(123, 18) + SourceIndex(0) -6 >Emitted(78, 13) Source(123, 19) + SourceIndex(0) +1->Emitted(81, 1) Source(123, 1) + SourceIndex(0) +2 >Emitted(81, 6) Source(123, 6) + SourceIndex(0) +3 >Emitted(81, 7) Source(123, 7) + SourceIndex(0) +4 >Emitted(81, 9) Source(123, 9) + SourceIndex(0) +5 >Emitted(81, 12) Source(123, 18) + SourceIndex(0) +6 >Emitted(81, 13) Source(123, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > n 3 > : 4 > 1 -1->Emitted(79, 5) Source(124, 5) + SourceIndex(0) -2 >Emitted(79, 6) Source(124, 6) + SourceIndex(0) -3 >Emitted(79, 8) Source(124, 8) + SourceIndex(0) -4 >Emitted(79, 9) Source(124, 9) + SourceIndex(0) +1->Emitted(82, 5) Source(124, 5) + SourceIndex(0) +2 >Emitted(82, 6) Source(124, 6) + SourceIndex(0) +3 >Emitted(82, 8) Source(124, 8) + SourceIndex(0) +4 >Emitted(82, 9) Source(124, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > ; -1->Emitted(80, 2) Source(125, 2) + SourceIndex(0) -2 >Emitted(80, 3) Source(125, 3) + SourceIndex(0) -3 >Emitted(80, 4) Source(125, 4) + SourceIndex(0) +1->Emitted(83, 2) Source(125, 2) + SourceIndex(0) +2 >Emitted(83, 3) Source(125, 3) + SourceIndex(0) +3 >Emitted(83, 4) Source(125, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1521,40 +1548,40 @@ sourceFile:contextualTyping.ts 5 > = 6 > [] 7 > ; -1->Emitted(81, 1) Source(126, 1) + SourceIndex(0) -2 >Emitted(81, 6) Source(126, 6) + SourceIndex(0) -3 >Emitted(81, 7) Source(126, 7) + SourceIndex(0) -4 >Emitted(81, 9) Source(126, 9) + SourceIndex(0) -5 >Emitted(81, 12) Source(126, 12) + SourceIndex(0) -6 >Emitted(81, 14) Source(126, 14) + SourceIndex(0) -7 >Emitted(81, 15) Source(126, 15) + SourceIndex(0) +1->Emitted(84, 1) Source(126, 1) + SourceIndex(0) +2 >Emitted(84, 6) Source(126, 6) + SourceIndex(0) +3 >Emitted(84, 7) Source(126, 7) + SourceIndex(0) +4 >Emitted(84, 9) Source(126, 9) + SourceIndex(0) +5 >Emitted(84, 12) Source(126, 12) + SourceIndex(0) +6 >Emitted(84, 14) Source(126, 14) + SourceIndex(0) +7 >Emitted(84, 15) Source(126, 15) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 3 > . 4 > t4 5 > = -1->Emitted(82, 1) Source(127, 1) + SourceIndex(0) -2 >Emitted(82, 6) Source(127, 6) + SourceIndex(0) -3 >Emitted(82, 7) Source(127, 7) + SourceIndex(0) -4 >Emitted(82, 9) Source(127, 9) + SourceIndex(0) -5 >Emitted(82, 12) Source(127, 12) + SourceIndex(0) +1->Emitted(85, 1) Source(127, 1) + SourceIndex(0) +2 >Emitted(85, 6) Source(127, 6) + SourceIndex(0) +3 >Emitted(85, 7) Source(127, 7) + SourceIndex(0) +4 >Emitted(85, 9) Source(127, 9) + SourceIndex(0) +5 >Emitted(85, 12) Source(127, 12) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy)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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -1562,33 +1589,33 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(83, 5) Source(127, 25) + SourceIndex(0) -2 >Emitted(83, 11) Source(127, 31) + SourceIndex(0) -3 >Emitted(83, 12) Source(127, 38) + SourceIndex(0) -4 >Emitted(83, 13) Source(127, 39) + SourceIndex(0) -5 >Emitted(83, 15) Source(127, 41) + SourceIndex(0) -6 >Emitted(83, 16) Source(127, 42) + SourceIndex(0) -7 >Emitted(83, 17) Source(127, 42) + SourceIndex(0) +1->Emitted(86, 5) Source(127, 25) + SourceIndex(0) +2 >Emitted(86, 11) Source(127, 31) + SourceIndex(0) +3 >Emitted(86, 12) Source(127, 38) + SourceIndex(0) +4 >Emitted(86, 13) Source(127, 39) + SourceIndex(0) +5 >Emitted(86, 15) Source(127, 41) + SourceIndex(0) +6 >Emitted(86, 16) Source(127, 42) + SourceIndex(0) +7 >Emitted(86, 17) Source(127, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(84, 1) Source(127, 43) + SourceIndex(0) -2 >Emitted(84, 2) Source(127, 44) + SourceIndex(0) -3 >Emitted(84, 3) Source(127, 45) + SourceIndex(0) +1->Emitted(87, 1) Source(127, 43) + SourceIndex(0) +2 >Emitted(87, 2) Source(127, 44) + SourceIndex(0) +3 >Emitted(87, 3) Source(127, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^^^^^^^^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1597,22 +1624,22 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n -1->Emitted(85, 1) Source(128, 1) + SourceIndex(0) -2 >Emitted(85, 6) Source(128, 6) + SourceIndex(0) -3 >Emitted(85, 7) Source(128, 7) + SourceIndex(0) -4 >Emitted(85, 9) Source(128, 9) + SourceIndex(0) -5 >Emitted(85, 12) Source(128, 12) + SourceIndex(0) -6 >Emitted(85, 22) Source(128, 21) + SourceIndex(0) -7 >Emitted(85, 23) Source(128, 22) + SourceIndex(0) +1->Emitted(88, 1) Source(128, 1) + SourceIndex(0) +2 >Emitted(88, 6) Source(128, 6) + SourceIndex(0) +3 >Emitted(88, 7) Source(128, 7) + SourceIndex(0) +4 >Emitted(88, 9) Source(128, 9) + SourceIndex(0) +5 >Emitted(88, 12) Source(128, 12) + SourceIndex(0) +6 >Emitted(88, 22) Source(128, 21) + SourceIndex(0) +7 >Emitted(88, 23) Source(128, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 >Emitted(86, 13) Source(128, 40) + SourceIndex(0) -5 >Emitted(86, 15) Source(128, 42) + SourceIndex(0) -6 >Emitted(86, 16) Source(128, 43) + SourceIndex(0) -7 >Emitted(86, 17) Source(128, 43) + SourceIndex(0) +1->Emitted(89, 5) Source(128, 26) + SourceIndex(0) +2 >Emitted(89, 11) Source(128, 32) + SourceIndex(0) +3 >Emitted(89, 12) Source(128, 39) + SourceIndex(0) +4 >Emitted(89, 13) Source(128, 40) + SourceIndex(0) +5 >Emitted(89, 15) Source(128, 42) + SourceIndex(0) +6 >Emitted(89, 16) Source(128, 43) + SourceIndex(0) +7 >Emitted(89, 17) Source(128, 43) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(87, 1) Source(128, 44) + SourceIndex(0) -2 >Emitted(87, 2) Source(128, 45) + SourceIndex(0) -3 >Emitted(87, 3) Source(128, 46) + SourceIndex(0) +1->Emitted(90, 1) Source(128, 44) + SourceIndex(0) +2 >Emitted(90, 2) Source(128, 45) + SourceIndex(0) +3 >Emitted(90, 3) Source(128, 46) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1648,7 +1675,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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ile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(88, 1) Source(129, 1) + SourceIndex(0) -2 >Emitted(88, 6) Source(129, 6) + SourceIndex(0) -3 >Emitted(88, 7) Source(129, 7) + SourceIndex(0) -4 >Emitted(88, 9) Source(129, 9) + SourceIndex(0) -5 >Emitted(88, 12) Source(129, 12) + SourceIndex(0) -6 >Emitted(88, 22) Source(129, 21) + SourceIndex(0) -7 >Emitted(88, 23) Source(129, 22) + SourceIndex(0) -8 >Emitted(88, 25) Source(129, 24) + SourceIndex(0) -9 >Emitted(88, 26) Source(129, 25) + SourceIndex(0) +1->Emitted(91, 1) Source(129, 1) + SourceIndex(0) +2 >Emitted(91, 6) Source(129, 6) + SourceIndex(0) +3 >Emitted(91, 7) Source(129, 7) + SourceIndex(0) +4 >Emitted(91, 9) Source(129, 9) + SourceIndex(0) +5 >Emitted(91, 12) Source(129, 12) + SourceIndex(0) +6 >Emitted(91, 22) Source(129, 21) + SourceIndex(0) +7 >Emitted(91, 23) Source(129, 22) + SourceIndex(0) +8 >Emitted(91, 25) Source(129, 24) + SourceIndex(0) +9 >Emitted(91, 26) Source(129, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -1684,33 +1711,33 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(89, 5) Source(129, 29) + SourceIndex(0) -2 >Emitted(89, 11) Source(129, 35) + SourceIndex(0) -3 >Emitted(89, 12) Source(129, 42) + SourceIndex(0) -4 >Emitted(89, 13) Source(129, 43) + SourceIndex(0) -5 >Emitted(89, 15) Source(129, 45) + SourceIndex(0) -6 >Emitted(89, 16) Source(129, 46) + SourceIndex(0) -7 >Emitted(89, 17) Source(129, 46) + SourceIndex(0) +1->Emitted(92, 5) Source(129, 29) + SourceIndex(0) +2 >Emitted(92, 11) Source(129, 35) + SourceIndex(0) +3 >Emitted(92, 12) Source(129, 42) + SourceIndex(0) +4 >Emitted(92, 13) Source(129, 43) + SourceIndex(0) +5 >Emitted(92, 15) Source(129, 45) + SourceIndex(0) +6 >Emitted(92, 16) Source(129, 46) + SourceIndex(0) +7 >Emitted(92, 17) Source(129, 46) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(90, 1) Source(129, 47) + SourceIndex(0) -2 >Emitted(90, 2) Source(129, 48) + SourceIndex(0) -3 >Emitted(90, 3) Source(129, 49) + SourceIndex(0) +1->Emitted(93, 1) Source(129, 47) + SourceIndex(0) +2 >Emitted(93, 2) Source(129, 48) + SourceIndex(0) +3 >Emitted(93, 3) Source(129, 49) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceM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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1719,50 +1746,50 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n: number -1->Emitted(91, 1) Source(130, 1) + SourceIndex(0) -2 >Emitted(91, 6) Source(130, 6) + SourceIndex(0) -3 >Emitted(91, 7) Source(130, 7) + SourceIndex(0) -4 >Emitted(91, 9) Source(130, 9) + SourceIndex(0) -5 >Emitted(91, 12) Source(130, 12) + SourceIndex(0) -6 >Emitted(91, 22) Source(130, 21) + SourceIndex(0) -7 >Emitted(91, 23) Source(130, 30) + SourceIndex(0) +1->Emitted(94, 1) Source(130, 1) + SourceIndex(0) +2 >Emitted(94, 6) Source(130, 6) + SourceIndex(0) +3 >Emitted(94, 7) Source(130, 7) + SourceIndex(0) +4 >Emitted(94, 9) Source(130, 9) + SourceIndex(0) +5 >Emitted(94, 12) Source(130, 12) + SourceIndex(0) +6 >Emitted(94, 22) Source(130, 21) + SourceIndex(0) +7 >Emitted(94, 23) Source(130, 30) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > -1->Emitted(92, 5) Source(130, 34) + SourceIndex(0) -2 >Emitted(92, 11) Source(130, 40) + SourceIndex(0) -3 >Emitted(92, 12) Source(130, 41) + SourceIndex(0) -4 >Emitted(92, 13) Source(130, 42) + SourceIndex(0) -5 >Emitted(92, 14) Source(130, 42) + SourceIndex(0) +1->Emitted(95, 5) Source(130, 34) + SourceIndex(0) +2 >Emitted(95, 11) Source(130, 40) + SourceIndex(0) +3 >Emitted(95, 12) Source(130, 41) + SourceIndex(0) +4 >Emitted(95, 13) Source(130, 42) + SourceIndex(0) +5 >Emitted(95, 14) Source(130, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(93, 1) Source(130, 43) + SourceIndex(0) -2 >Emitted(93, 2) Source(130, 44) + SourceIndex(0) -3 >Emitted(93, 3) Source(130, 45) + SourceIndex(0) +1->Emitted(96, 1) Source(130, 43) + SourceIndex(0) +2 >Emitted(96, 2) Source(130, 44) + SourceIndex(0) +3 >Emitted(96, 3) Source(130, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^^^^^^^^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -1772,43 +1799,43 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n -1->Emitted(94, 1) Source(132, 1) + SourceIndex(0) -2 >Emitted(94, 6) Source(132, 6) + SourceIndex(0) -3 >Emitted(94, 7) Source(132, 7) + SourceIndex(0) -4 >Emitted(94, 9) Source(132, 9) + SourceIndex(0) -5 >Emitted(94, 12) Source(132, 12) + SourceIndex(0) -6 >Emitted(94, 22) Source(132, 21) + SourceIndex(0) -7 >Emitted(94, 23) Source(132, 22) + SourceIndex(0) +1->Emitted(97, 1) Source(132, 1) + SourceIndex(0) +2 >Emitted(97, 6) Source(132, 6) + SourceIndex(0) +3 >Emitted(97, 7) Source(132, 7) + SourceIndex(0) +4 >Emitted(97, 9) Source(132, 9) + SourceIndex(0) +5 >Emitted(97, 12) Source(132, 12) + SourceIndex(0) +6 >Emitted(97, 22) Source(132, 21) + SourceIndex(0) +7 >Emitted(97, 23) Source(132, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(95, 5) Source(132, 26) + SourceIndex(0) -2 >Emitted(95, 11) Source(132, 32) + SourceIndex(0) -3 >Emitted(95, 12) Source(132, 33) + SourceIndex(0) -4 >Emitted(95, 13) Source(132, 34) + SourceIndex(0) -5 >Emitted(95, 14) Source(132, 35) + SourceIndex(0) +1->Emitted(98, 5) Source(132, 26) + SourceIndex(0) +2 >Emitted(98, 11) Source(132, 32) + SourceIndex(0) +3 >Emitted(98, 12) Source(132, 33) + SourceIndex(0) +4 >Emitted(98, 13) Source(132, 34) + SourceIndex(0) +5 >Emitted(98, 14) Source(132, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(96, 1) Source(132, 36) + SourceIndex(0) -2 >Emitted(96, 2) Source(132, 37) + SourceIndex(0) -3 >Emitted(96, 3) Source(132, 38) + SourceIndex(0) +1->Emitted(99, 1) Source(132, 36) + SourceIndex(0) +2 >Emitted(99, 2) Source(132, 37) + SourceIndex(0) +3 >Emitted(99, 3) Source(132, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1819,7 +1846,7 @@ sourceFile:contextualTyping.ts 9 > ^^ 10> ^ 11> ^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1832,19 +1859,19 @@ sourceFile:contextualTyping.ts 9 > [] 10> ] 11> ; -1->Emitted(97, 1) Source(133, 1) + SourceIndex(0) -2 >Emitted(97, 6) Source(133, 6) + SourceIndex(0) -3 >Emitted(97, 7) Source(133, 7) + SourceIndex(0) -4 >Emitted(97, 9) Source(133, 9) + SourceIndex(0) -5 >Emitted(97, 12) Source(133, 12) + SourceIndex(0) -6 >Emitted(97, 13) Source(133, 13) + SourceIndex(0) -7 >Emitted(97, 15) Source(133, 15) + SourceIndex(0) -8 >Emitted(97, 17) Source(133, 16) + SourceIndex(0) -9 >Emitted(97, 19) Source(133, 18) + SourceIndex(0) -10>Emitted(97, 20) Source(133, 19) + SourceIndex(0) -11>Emitted(97, 21) Source(133, 20) + SourceIndex(0) +1->Emitted(100, 1) Source(133, 1) + SourceIndex(0) +2 >Emitted(100, 6) Source(133, 6) + SourceIndex(0) +3 >Emitted(100, 7) Source(133, 7) + SourceIndex(0) +4 >Emitted(100, 9) Source(133, 9) + SourceIndex(0) +5 >Emitted(100, 12) Source(133, 12) + SourceIndex(0) +6 >Emitted(100, 13) Source(133, 13) + SourceIndex(0) +7 >Emitted(100, 15) Source(133, 15) + SourceIndex(0) +8 >Emitted(100, 17) Source(133, 16) + SourceIndex(0) +9 >Emitted(100, 19) Source(133, 18) + SourceIndex(0) +10>Emitted(100, 20) Source(133, 19) + SourceIndex(0) +11>Emitted(100, 21) Source(133, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ @@ -1859,7 +1886,7 @@ sourceFile:contextualTyping.ts 13> ^ 14> ^ 15> ^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1876,23 +1903,23 @@ sourceFile:contextualTyping.ts 13> ) 14> ] 15> ; -1->Emitted(98, 1) Source(134, 1) + SourceIndex(0) -2 >Emitted(98, 6) Source(134, 6) + SourceIndex(0) -3 >Emitted(98, 7) Source(134, 7) + SourceIndex(0) -4 >Emitted(98, 10) Source(134, 10) + SourceIndex(0) -5 >Emitted(98, 13) Source(134, 13) + SourceIndex(0) -6 >Emitted(98, 14) Source(134, 20) + SourceIndex(0) -7 >Emitted(98, 15) Source(134, 21) + SourceIndex(0) -8 >Emitted(98, 17) Source(134, 23) + SourceIndex(0) -9 >Emitted(98, 18) Source(134, 24) + SourceIndex(0) -10>Emitted(98, 20) Source(134, 31) + SourceIndex(0) -11>Emitted(98, 21) Source(134, 32) + SourceIndex(0) -12>Emitted(98, 23) Source(134, 34) + SourceIndex(0) -13>Emitted(98, 24) Source(134, 35) + SourceIndex(0) -14>Emitted(98, 25) Source(134, 36) + SourceIndex(0) -15>Emitted(98, 26) Source(134, 37) + SourceIndex(0) +1->Emitted(101, 1) Source(134, 1) + SourceIndex(0) +2 >Emitted(101, 6) Source(134, 6) + SourceIndex(0) +3 >Emitted(101, 7) Source(134, 7) + SourceIndex(0) +4 >Emitted(101, 10) Source(134, 10) + SourceIndex(0) +5 >Emitted(101, 13) Source(134, 13) + SourceIndex(0) +6 >Emitted(101, 14) Source(134, 20) + SourceIndex(0) +7 >Emitted(101, 15) Source(134, 21) + SourceIndex(0) +8 >Emitted(101, 17) Source(134, 23) + SourceIndex(0) +9 >Emitted(101, 18) Source(134, 24) + SourceIndex(0) +10>Emitted(101, 20) Source(134, 31) + SourceIndex(0) +11>Emitted(101, 21) Source(134, 32) + SourceIndex(0) +12>Emitted(101, 23) Source(134, 34) + SourceIndex(0) +13>Emitted(101, 24) Source(134, 35) + SourceIndex(0) +14>Emitted(101, 25) Source(134, 36) + SourceIndex(0) +15>Emitted(101, 26) Source(134, 37) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ @@ -1902,7 +1929,7 @@ sourceFile:contextualTyping.ts 8 > ^ 9 > ^^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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+ SourceIndex(0) -3 >Emitted(99, 7) Source(135, 7) + SourceIndex(0) -4 >Emitted(99, 10) Source(135, 10) + SourceIndex(0) -5 >Emitted(99, 13) Source(135, 13) + SourceIndex(0) -6 >Emitted(99, 14) Source(135, 14) + SourceIndex(0) -7 >Emitted(99, 24) Source(135, 23) + SourceIndex(0) -8 >Emitted(99, 25) Source(135, 24) + SourceIndex(0) -9 >Emitted(99, 27) Source(135, 26) + SourceIndex(0) -10>Emitted(99, 28) Source(135, 27) + SourceIndex(0) +1->Emitted(102, 1) Source(135, 1) + SourceIndex(0) +2 >Emitted(102, 6) Source(135, 6) + SourceIndex(0) +3 >Emitted(102, 7) Source(135, 7) + SourceIndex(0) +4 >Emitted(102, 10) Source(135, 10) + SourceIndex(0) +5 >Emitted(102, 13) Source(135, 13) + SourceIndex(0) +6 >Emitted(102, 14) Source(135, 14) + SourceIndex(0) +7 >Emitted(102, 24) Source(135, 23) + SourceIndex(0) +8 >Emitted(102, 25) Source(135, 24) + SourceIndex(0) +9 >Emitted(102, 27) Source(135, 26) + SourceIndex(0) +10>Emitted(102, 28) Source(135, 27) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(100, 5) Source(135, 31) + SourceIndex(0) -2 >Emitted(100, 11) Source(135, 37) + SourceIndex(0) -3 >Emitted(100, 12) Source(135, 38) + SourceIndex(0) -4 >Emitted(100, 13) Source(135, 39) + SourceIndex(0) -5 >Emitted(100, 14) Source(135, 40) + SourceIndex(0) +1->Emitted(103, 5) Source(135, 31) + SourceIndex(0) +2 >Emitted(103, 11) Source(135, 37) + SourceIndex(0) +3 >Emitted(103, 12) Source(135, 38) + SourceIndex(0) +4 >Emitted(103, 13) Source(135, 39) + SourceIndex(0) +5 >Emitted(103, 14) Source(135, 40) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(101, 1) Source(135, 41) + SourceIndex(0) -2 >Emitted(101, 2) Source(135, 42) + SourceIndex(0) -3 >Emitted(101, 3) Source(135, 43) + SourceIndex(0) -4 >Emitted(101, 4) Source(135, 44) + SourceIndex(0) +1->Emitted(104, 1) Source(135, 41) + SourceIndex(0) +2 >Emitted(104, 2) Source(135, 42) + SourceIndex(0) +3 >Emitted(104, 3) Source(135, 43) + SourceIndex(0) +4 >Emitted(104, 4) Source(135, 44) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ 5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 3 > . 4 > t12 5 > = -1->Emitted(102, 1) Source(136, 1) + SourceIndex(0) -2 >Emitted(102, 6) Source(136, 6) + SourceIndex(0) -3 >Emitted(102, 7) Source(136, 7) + SourceIndex(0) -4 >Emitted(102, 10) Source(136, 10) + SourceIndex(0) -5 >Emitted(102, 13) Source(136, 13) + SourceIndex(0) +1->Emitted(105, 1) Source(136, 1) + SourceIndex(0) +2 >Emitted(105, 6) Source(136, 6) + SourceIndex(0) +3 >Emitted(105, 7) Source(136, 7) + SourceIndex(0) +4 >Emitted(105, 10) Source(136, 10) + SourceIndex(0) +5 >Emitted(105, 13) Source(136, 13) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^ 5 > ^^ 6 > ^ -7 > ^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -1988,29 +2015,29 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(103, 5) Source(137, 5) + SourceIndex(0) -2 >Emitted(103, 8) Source(137, 8) + SourceIndex(0) -3 >Emitted(103, 10) Source(137, 16) + SourceIndex(0) -4 >Emitted(103, 11) Source(137, 17) + SourceIndex(0) -5 >Emitted(103, 13) Source(137, 19) + SourceIndex(0) -6 >Emitted(103, 14) Source(137, 20) + SourceIndex(0) +1->Emitted(106, 5) Source(137, 5) + SourceIndex(0) +2 >Emitted(106, 8) Source(137, 8) + SourceIndex(0) +3 >Emitted(106, 10) Source(137, 16) + SourceIndex(0) +4 >Emitted(106, 11) Source(137, 17) + SourceIndex(0) +5 >Emitted(106, 13) Source(137, 19) + SourceIndex(0) +6 >Emitted(106, 14) Source(137, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(104, 2) Source(138, 2) + SourceIndex(0) -2 >Emitted(104, 3) Source(138, 2) + SourceIndex(0) +1->Emitted(107, 2) Source(138, 2) + SourceIndex(0) +2 >Emitted(107, 3) Source(138, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ 5 > ^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -2018,21 +2045,21 @@ sourceFile:contextualTyping.ts 4 > t13 5 > = 6 > ( -1->Emitted(105, 1) Source(139, 1) + SourceIndex(0) -2 >Emitted(105, 6) Source(139, 6) + SourceIndex(0) -3 >Emitted(105, 7) Source(139, 7) + SourceIndex(0) -4 >Emitted(105, 10) Source(139, 10) + SourceIndex(0) -5 >Emitted(105, 13) Source(139, 19) + SourceIndex(0) -6 >Emitted(105, 14) Source(139, 20) + SourceIndex(0) +1->Emitted(108, 1) Source(139, 1) + SourceIndex(0) +2 >Emitted(108, 6) Source(139, 6) + SourceIndex(0) +3 >Emitted(108, 7) Source(139, 7) + SourceIndex(0) +4 >Emitted(108, 10) Source(139, 10) + SourceIndex(0) +5 >Emitted(108, 13) Source(139, 19) + SourceIndex(0) +6 >Emitted(108, 14) Source(139, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -2041,58 +2068,58 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(106, 5) Source(140, 5) + SourceIndex(0) -2 >Emitted(106, 6) Source(140, 6) + SourceIndex(0) -3 >Emitted(106, 8) Source(140, 8) + SourceIndex(0) -4 >Emitted(106, 18) Source(140, 17) + SourceIndex(0) -5 >Emitted(106, 19) Source(140, 18) + SourceIndex(0) -6 >Emitted(106, 21) Source(140, 20) + SourceIndex(0) -7 >Emitted(106, 22) Source(140, 21) + SourceIndex(0) +1->Emitted(109, 5) Source(140, 5) + SourceIndex(0) +2 >Emitted(109, 6) Source(140, 6) + SourceIndex(0) +3 >Emitted(109, 8) Source(140, 8) + SourceIndex(0) +4 >Emitted(109, 18) Source(140, 17) + SourceIndex(0) +5 >Emitted(109, 19) Source(140, 18) + SourceIndex(0) +6 >Emitted(109, 21) Source(140, 20) + SourceIndex(0) +7 >Emitted(109, 22) Source(140, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(107, 9) Source(140, 25) + SourceIndex(0) -2 >Emitted(107, 15) Source(140, 31) + SourceIndex(0) -3 >Emitted(107, 16) Source(140, 32) + SourceIndex(0) -4 >Emitted(107, 17) Source(140, 33) + SourceIndex(0) -5 >Emitted(107, 18) Source(140, 34) + SourceIndex(0) +1->Emitted(110, 9) Source(140, 25) + SourceIndex(0) +2 >Emitted(110, 15) Source(140, 31) + SourceIndex(0) +3 >Emitted(110, 16) Source(140, 32) + SourceIndex(0) +4 >Emitted(110, 17) Source(140, 33) + SourceIndex(0) +5 >Emitted(110, 18) Source(140, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(108, 5) Source(140, 35) + SourceIndex(0) -2 >Emitted(108, 6) Source(140, 36) + SourceIndex(0) +1->Emitted(111, 5) Source(140, 35) + SourceIndex(0) +2 >Emitted(111, 6) Source(140, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(109, 2) Source(141, 2) + SourceIndex(0) -2 >Emitted(109, 3) Source(141, 3) + SourceIndex(0) -3 >Emitted(109, 4) Source(141, 3) + SourceIndex(0) +1->Emitted(112, 2) Source(141, 2) + SourceIndex(0) +2 >Emitted(112, 3) Source(141, 3) + SourceIndex(0) +3 >Emitted(112, 4) Source(141, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -2100,46 +2127,46 @@ sourceFile:contextualTyping.ts 4 > t14 5 > = 6 > ( -1->Emitted(110, 1) Source(142, 1) + SourceIndex(0) -2 >Emitted(110, 6) Source(142, 6) + SourceIndex(0) -3 >Emitted(110, 7) Source(142, 7) + SourceIndex(0) -4 >Emitted(110, 10) Source(142, 10) + SourceIndex(0) -5 >Emitted(110, 13) Source(142, 19) + SourceIndex(0) -6 >Emitted(110, 14) Source(142, 20) + SourceIndex(0) +1->Emitted(113, 1) Source(142, 1) + SourceIndex(0) +2 >Emitted(113, 6) Source(142, 6) + SourceIndex(0) +3 >Emitted(113, 7) Source(142, 7) + SourceIndex(0) +4 >Emitted(113, 10) Source(142, 10) + SourceIndex(0) +5 >Emitted(113, 13) Source(142, 19) + SourceIndex(0) +6 >Emitted(113, 14) Source(142, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(111, 5) Source(143, 5) + SourceIndex(0) -2 >Emitted(111, 6) Source(143, 6) + SourceIndex(0) -3 >Emitted(111, 8) Source(143, 8) + SourceIndex(0) -4 >Emitted(111, 10) Source(143, 10) + SourceIndex(0) +1->Emitted(114, 5) Source(143, 5) + SourceIndex(0) +2 >Emitted(114, 6) Source(143, 6) + SourceIndex(0) +3 >Emitted(114, 8) Source(143, 8) + SourceIndex(0) +4 >Emitted(114, 10) Source(143, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(112, 2) Source(144, 2) + SourceIndex(0) -2 >Emitted(112, 3) Source(144, 3) + SourceIndex(0) -3 >Emitted(112, 4) Source(144, 3) + SourceIndex(0) +1->Emitted(115, 2) Source(144, 2) + SourceIndex(0) +2 >Emitted(115, 3) Source(144, 3) + SourceIndex(0) +3 >Emitted(115, 4) Source(144, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >// CONTEXT: Function call > @@ -2147,54 +2174,54 @@ sourceFile:contextualTyping.ts 3 > c9t5 4 > ( 5 > f: (n: number) => IFoo -1->Emitted(113, 1) Source(146, 1) + SourceIndex(0) -2 >Emitted(113, 10) Source(146, 10) + SourceIndex(0) -3 >Emitted(113, 14) Source(146, 14) + SourceIndex(0) -4 >Emitted(113, 15) Source(146, 15) + SourceIndex(0) -5 >Emitted(113, 16) Source(146, 37) + SourceIndex(0) +1->Emitted(116, 1) Source(146, 1) + SourceIndex(0) +2 >Emitted(116, 10) Source(146, 10) + SourceIndex(0) +3 >Emitted(116, 14) Source(146, 14) + SourceIndex(0) +4 >Emitted(116, 15) Source(146, 15) + SourceIndex(0) +5 >Emitted(116, 16) Source(146, 37) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 >} -1->Emitted(114, 1) Source(146, 40) + SourceIndex(0) name (c9t5) -2 >Emitted(114, 2) Source(146, 41) + SourceIndex(0) name (c9t5) +1->Emitted(117, 1) Source(146, 40) + SourceIndex(0) name (c9t5) +2 >Emitted(117, 2) Source(146, 41) + SourceIndex(0) name (c9t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >; -1->Emitted(115, 1) Source(146, 41) + SourceIndex(0) -2 >Emitted(115, 2) Source(146, 42) + SourceIndex(0) +1->Emitted(118, 1) Source(146, 41) + SourceIndex(0) +2 >Emitted(118, 2) Source(146, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >c9t5 3 > ( 4 > function( 5 > n -1->Emitted(116, 1) Source(147, 1) + SourceIndex(0) -2 >Emitted(116, 5) Source(147, 5) + SourceIndex(0) -3 >Emitted(116, 6) Source(147, 6) + SourceIndex(0) -4 >Emitted(116, 16) Source(147, 15) + SourceIndex(0) -5 >Emitted(116, 17) Source(147, 16) + SourceIndex(0) +1->Emitted(119, 1) Source(147, 1) + SourceIndex(0) +2 >Emitted(119, 5) Source(147, 5) + SourceIndex(0) +3 >Emitted(119, 6) Source(147, 6) + SourceIndex(0) +4 >Emitted(119, 16) Source(147, 15) + SourceIndex(0) +5 >Emitted(119, 17) Source(147, 16) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -2203,71 +2230,80 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > ; -1->Emitted(117, 5) Source(148, 5) + SourceIndex(0) -2 >Emitted(117, 11) Source(148, 11) + SourceIndex(0) -3 >Emitted(117, 12) Source(148, 18) + SourceIndex(0) -4 >Emitted(117, 13) Source(148, 19) + SourceIndex(0) -5 >Emitted(117, 15) Source(148, 21) + SourceIndex(0) -6 >Emitted(117, 16) Source(148, 22) + SourceIndex(0) -7 >Emitted(117, 17) Source(148, 23) + SourceIndex(0) +1->Emitted(120, 5) Source(148, 5) + SourceIndex(0) +2 >Emitted(120, 11) Source(148, 11) + SourceIndex(0) +3 >Emitted(120, 12) Source(148, 18) + SourceIndex(0) +4 >Emitted(120, 13) Source(148, 19) + SourceIndex(0) +5 >Emitted(120, 15) Source(148, 21) + SourceIndex(0) +6 >Emitted(120, 16) Source(148, 22) + SourceIndex(0) +7 >Emitted(120, 17) Source(148, 23) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} 3 > ) 4 > ; -1->Emitted(118, 1) Source(149, 1) + SourceIndex(0) -2 >Emitted(118, 2) Source(149, 2) + SourceIndex(0) -3 >Emitted(118, 3) Source(149, 3) + SourceIndex(0) -4 >Emitted(118, 4) Source(149, 4) + SourceIndex(0) +1->Emitted(121, 1) Source(149, 1) + SourceIndex(0) +2 >Emitted(121, 2) Source(149, 2) + SourceIndex(0) +3 >Emitted(121, 3) Source(149, 3) + SourceIndex(0) +4 >Emitted(121, 4) Source(149, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Return statement > -2 >var -3 > c10t5 -4 > : () => (n: number) => IFoo = -1->Emitted(119, 1) Source(152, 1) + SourceIndex(0) -2 >Emitted(119, 5) Source(152, 5) + SourceIndex(0) -3 >Emitted(119, 10) Source(152, 10) + SourceIndex(0) -4 >Emitted(119, 13) Source(152, 40) + SourceIndex(0) +2 > +3 >// CONTEXT: Return statement +1->Emitted(122, 1) Source(152, 1) + SourceIndex(0) +2 >Emitted(122, 1) Source(151, 1) + SourceIndex(0) +3 >Emitted(122, 29) Source(151, 29) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx,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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c10t5 +3 > : () => (n: number) => IFoo = +1->Emitted(123, 5) Source(152, 5) + SourceIndex(0) +2 >Emitted(123, 10) Source(152, 10) + SourceIndex(0) +3 >Emitted(123, 13) Source(152, 40) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > 4 > function( 5 > n -1->Emitted(120, 5) Source(152, 53) + SourceIndex(0) -2 >Emitted(120, 11) Source(152, 59) + SourceIndex(0) -3 >Emitted(120, 12) Source(152, 60) + SourceIndex(0) -4 >Emitted(120, 22) Source(152, 69) + SourceIndex(0) -5 >Emitted(120, 23) Source(152, 70) + SourceIndex(0) +1->Emitted(124, 5) Source(152, 53) + SourceIndex(0) +2 >Emitted(124, 11) Source(152, 59) + SourceIndex(0) +3 >Emitted(124, 12) Source(152, 60) + SourceIndex(0) +4 >Emitted(124, 22) Source(152, 69) + SourceIndex(0) +5 >Emitted(124, 23) Source(152, 70) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2275,106 +2311,106 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(121, 9) Source(152, 74) + SourceIndex(0) -2 >Emitted(121, 15) Source(152, 80) + SourceIndex(0) -3 >Emitted(121, 16) Source(152, 87) + SourceIndex(0) -4 >Emitted(121, 17) Source(152, 88) + SourceIndex(0) -5 >Emitted(121, 19) Source(152, 90) + SourceIndex(0) -6 >Emitted(121, 20) Source(152, 91) + SourceIndex(0) -7 >Emitted(121, 21) Source(152, 91) + SourceIndex(0) +1->Emitted(125, 9) Source(152, 74) + SourceIndex(0) +2 >Emitted(125, 15) Source(152, 80) + SourceIndex(0) +3 >Emitted(125, 16) Source(152, 87) + SourceIndex(0) +4 >Emitted(125, 17) Source(152, 88) + SourceIndex(0) +5 >Emitted(125, 19) Source(152, 90) + SourceIndex(0) +6 >Emitted(125, 20) Source(152, 91) + SourceIndex(0) +7 >Emitted(125, 21) Source(152, 91) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 6) Source(152, 93) + SourceIndex(0) +3 >Emitted(126, 7) Source(152, 93) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(123, 1) Source(152, 94) + SourceIndex(0) -2 >Emitted(123, 2) Source(152, 95) + SourceIndex(0) -3 >Emitted(123, 3) Source(152, 96) + SourceIndex(0) +1->Emitted(127, 1) Source(152, 94) + SourceIndex(0) +2 >Emitted(127, 2) Source(152, 95) + SourceIndex(0) +3 >Emitted(127, 3) Source(152, 96) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Newing a class > 2 >class 3 > C11t5 -1->Emitted(124, 1) Source(155, 1) + SourceIndex(0) -2 >Emitted(124, 5) Source(155, 7) + SourceIndex(0) -3 >Emitted(124, 10) Source(155, 12) + SourceIndex(0) +1->Emitted(128, 1) Source(155, 1) + SourceIndex(0) +2 >Emitted(128, 5) Source(155, 7) + SourceIndex(0) +3 >Emitted(128, 10) Source(155, 12) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { 2 > 3 > C11t5 4 > { constructor( 5 > f: (n: number) => IFoo -1->Emitted(125, 5) Source(155, 15) + SourceIndex(0) name (C11t5) -2 >Emitted(125, 14) Source(155, 7) + SourceIndex(0) name (C11t5) -3 >Emitted(125, 19) Source(155, 12) + SourceIndex(0) name (C11t5) -4 >Emitted(125, 20) Source(155, 27) + SourceIndex(0) name (C11t5) -5 >Emitted(125, 21) Source(155, 49) + SourceIndex(0) name (C11t5) +1->Emitted(129, 5) Source(155, 15) + SourceIndex(0) name (C11t5) +2 >Emitted(129, 14) Source(155, 7) + SourceIndex(0) name (C11t5) +3 >Emitted(129, 19) Source(155, 12) + SourceIndex(0) name (C11t5) +4 >Emitted(129, 20) Source(155, 27) + SourceIndex(0) name (C11t5) +5 >Emitted(129, 21) Source(155, 49) + SourceIndex(0) name (C11t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > } -1->Emitted(126, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) -2 >Emitted(126, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) +1->Emitted(130, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) +2 >Emitted(130, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(127, 5) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(127, 17) Source(155, 56) + SourceIndex(0) name (C11t5) +1->Emitted(131, 5) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(131, 17) Source(155, 56) + SourceIndex(0) name (C11t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > 4 > class C11t5 { constructor(f: (n: number) => IFoo) { } } -1->Emitted(128, 1) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(128, 2) Source(155, 56) + SourceIndex(0) name (C11t5) -3 >Emitted(128, 2) Source(155, 1) + SourceIndex(0) -4 >Emitted(128, 6) Source(155, 56) + SourceIndex(0) +1->Emitted(132, 1) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(132, 2) Source(155, 56) + SourceIndex(0) name (C11t5) +3 >Emitted(132, 2) Source(155, 1) + SourceIndex(0) +4 >Emitted(132, 6) Source(155, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >; -1->Emitted(129, 1) Source(155, 56) + SourceIndex(0) -2 >Emitted(129, 2) Source(155, 57) + SourceIndex(0) +1->Emitted(133, 1) Source(155, 56) + SourceIndex(0) +2 >Emitted(133, 2) Source(155, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^^^ @@ -2383,7 +2419,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^^^^^^^^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2394,24 +2430,24 @@ sourceFile:contextualTyping.ts 7 > ( 8 > function( 9 > n -1->Emitted(130, 1) Source(156, 1) + SourceIndex(0) -2 >Emitted(130, 5) Source(156, 5) + SourceIndex(0) -3 >Emitted(130, 6) Source(156, 6) + SourceIndex(0) -4 >Emitted(130, 9) Source(156, 9) + SourceIndex(0) -5 >Emitted(130, 13) Source(156, 13) + SourceIndex(0) -6 >Emitted(130, 18) Source(156, 18) + SourceIndex(0) -7 >Emitted(130, 19) Source(156, 19) + SourceIndex(0) -8 >Emitted(130, 29) Source(156, 28) + SourceIndex(0) -9 >Emitted(130, 30) Source(156, 29) + SourceIndex(0) +1->Emitted(134, 1) Source(156, 1) + SourceIndex(0) +2 >Emitted(134, 5) Source(156, 5) + SourceIndex(0) +3 >Emitted(134, 6) Source(156, 6) + SourceIndex(0) +4 >Emitted(134, 9) Source(156, 9) + SourceIndex(0) +5 >Emitted(134, 13) Source(156, 13) + SourceIndex(0) +6 >Emitted(134, 18) Source(156, 18) + SourceIndex(0) +7 >Emitted(134, 19) Source(156, 19) + SourceIndex(0) +8 >Emitted(134, 29) Source(156, 28) + SourceIndex(0) +9 >Emitted(134, 30) Source(156, 29) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2419,137 +2455,146 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(131, 5) Source(156, 33) + SourceIndex(0) -2 >Emitted(131, 11) Source(156, 39) + SourceIndex(0) -3 >Emitted(131, 12) Source(156, 46) + SourceIndex(0) -4 >Emitted(131, 13) Source(156, 47) + SourceIndex(0) -5 >Emitted(131, 15) Source(156, 49) + SourceIndex(0) -6 >Emitted(131, 16) Source(156, 50) + SourceIndex(0) -7 >Emitted(131, 17) Source(156, 50) + SourceIndex(0) +1->Emitted(135, 5) Source(156, 33) + SourceIndex(0) +2 >Emitted(135, 11) Source(156, 39) + SourceIndex(0) +3 >Emitted(135, 12) Source(156, 46) + SourceIndex(0) +4 >Emitted(135, 13) Source(156, 47) + SourceIndex(0) +5 >Emitted(135, 15) Source(156, 49) + SourceIndex(0) +6 >Emitted(135, 16) Source(156, 50) + SourceIndex(0) +7 >Emitted(135, 17) Source(156, 50) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(132, 1) Source(156, 51) + SourceIndex(0) -2 >Emitted(132, 2) Source(156, 52) + SourceIndex(0) -3 >Emitted(132, 3) Source(156, 53) + SourceIndex(0) -4 >Emitted(132, 4) Source(156, 54) + SourceIndex(0) +1->Emitted(136, 1) Source(156, 51) + SourceIndex(0) +2 >Emitted(136, 2) Source(156, 52) + SourceIndex(0) +3 >Emitted(136, 3) Source(156, 53) + SourceIndex(0) +4 >Emitted(136, 4) Source(156, 54) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Type annotated expression > -2 >var -3 > c12t1 -4 > = <(s: string) => string> -5 > ( -6 > function( -7 > s -1->Emitted(133, 1) Source(159, 1) + SourceIndex(0) -2 >Emitted(133, 5) Source(159, 5) + SourceIndex(0) -3 >Emitted(133, 10) Source(159, 10) + SourceIndex(0) -4 >Emitted(133, 13) Source(159, 37) + SourceIndex(0) -5 >Emitted(133, 14) Source(159, 38) + SourceIndex(0) -6 >Emitted(133, 24) Source(159, 47) + SourceIndex(0) -7 >Emitted(133, 25) Source(159, 48) + SourceIndex(0) +2 > +3 >// CONTEXT: Type annotated expression +1->Emitted(137, 1) Source(159, 1) + SourceIndex(0) +2 >Emitted(137, 1) Source(158, 1) + SourceIndex(0) +3 >Emitted(137, 38) Source(158, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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emitted(138, 14) Source(159, 38) + SourceIndex(0) +5 >Emitted(138, 24) Source(159, 47) + SourceIndex(0) +6 >Emitted(138, 25) Source(159, 48) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(134, 5) Source(159, 52) + SourceIndex(0) -2 >Emitted(134, 11) Source(159, 58) + SourceIndex(0) -3 >Emitted(134, 12) Source(159, 59) + SourceIndex(0) -4 >Emitted(134, 13) Source(159, 60) + SourceIndex(0) -5 >Emitted(134, 14) Source(159, 60) + SourceIndex(0) +1->Emitted(139, 5) Source(159, 52) + SourceIndex(0) +2 >Emitted(139, 11) Source(159, 58) + SourceIndex(0) +3 >Emitted(139, 12) Source(159, 59) + SourceIndex(0) +4 >Emitted(139, 13) Source(159, 60) + SourceIndex(0) +5 >Emitted(139, 14) Source(159, 60) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(135, 1) Source(159, 61) + SourceIndex(0) -2 >Emitted(135, 2) Source(159, 62) + SourceIndex(0) -3 >Emitted(135, 3) Source(159, 63) + SourceIndex(0) -4 >Emitted(135, 4) Source(159, 64) + SourceIndex(0) +1->Emitted(140, 1) Source(159, 61) + SourceIndex(0) +2 >Emitted(140, 2) Source(159, 62) + SourceIndex(0) +3 >Emitted(140, 3) Source(159, 63) + SourceIndex(0) +4 >Emitted(140, 4) Source(159, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t2 4 > = 5 > ( -1->Emitted(136, 1) Source(160, 1) + SourceIndex(0) -2 >Emitted(136, 5) Source(160, 5) + SourceIndex(0) -3 >Emitted(136, 10) Source(160, 10) + SourceIndex(0) -4 >Emitted(136, 13) Source(160, 20) + SourceIndex(0) -5 >Emitted(136, 14) Source(160, 21) + SourceIndex(0) +1->Emitted(141, 1) Source(160, 1) + SourceIndex(0) +2 >Emitted(141, 5) Source(160, 5) + SourceIndex(0) +3 >Emitted(141, 10) Source(160, 10) + SourceIndex(0) +4 >Emitted(141, 13) Source(160, 20) + SourceIndex(0) +5 >Emitted(141, 14) Source(160, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > n 3 > : 4 > 1 -1->Emitted(137, 5) Source(161, 5) + SourceIndex(0) -2 >Emitted(137, 6) Source(161, 6) + SourceIndex(0) -3 >Emitted(137, 8) Source(161, 8) + SourceIndex(0) -4 >Emitted(137, 9) Source(161, 9) + SourceIndex(0) +1->Emitted(142, 5) Source(161, 5) + SourceIndex(0) +2 >Emitted(142, 6) Source(161, 6) + SourceIndex(0) +3 >Emitted(142, 8) Source(161, 8) + SourceIndex(0) +4 >Emitted(142, 9) Source(161, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > ; -1->Emitted(138, 2) Source(162, 2) + SourceIndex(0) -2 >Emitted(138, 3) Source(162, 3) + SourceIndex(0) -3 >Emitted(138, 4) Source(162, 4) + SourceIndex(0) +1->Emitted(143, 2) Source(162, 2) + SourceIndex(0) +2 >Emitted(143, 3) Source(162, 3) + SourceIndex(0) +3 >Emitted(143, 4) Source(162, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2557,36 +2602,36 @@ sourceFile:contextualTyping.ts 4 > = 5 > [] 6 > ; -1->Emitted(139, 1) Source(163, 1) + SourceIndex(0) -2 >Emitted(139, 5) Source(163, 5) + SourceIndex(0) -3 >Emitted(139, 10) Source(163, 10) + SourceIndex(0) -4 >Emitted(139, 13) Source(163, 24) + SourceIndex(0) -5 >Emitted(139, 15) Source(163, 26) + SourceIndex(0) -6 >Emitted(139, 16) Source(163, 27) + SourceIndex(0) +1->Emitted(144, 1) Source(163, 1) + SourceIndex(0) +2 >Emitted(144, 5) Source(163, 5) + SourceIndex(0) +3 >Emitted(144, 10) Source(163, 10) + SourceIndex(0) +4 >Emitted(144, 13) Source(163, 24) + SourceIndex(0) +5 >Emitted(144, 15) Source(163, 26) + SourceIndex(0) +6 >Emitted(144, 16) Source(163, 27) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t4 4 > = <() => IFoo> -1->Emitted(140, 1) Source(164, 1) + SourceIndex(0) -2 >Emitted(140, 5) Source(164, 5) + SourceIndex(0) -3 >Emitted(140, 10) Source(164, 10) + SourceIndex(0) -4 >Emitted(140, 13) Source(164, 26) + SourceIndex(0) +1->Emitted(145, 1) Source(164, 1) + SourceIndex(0) +2 >Emitted(145, 5) Source(164, 5) + SourceIndex(0) +3 >Emitted(145, 10) Source(164, 10) + SourceIndex(0) +4 >Emitted(145, 13) Source(164, 26) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -2594,32 +2639,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(141, 5) Source(164, 39) + SourceIndex(0) -2 >Emitted(141, 11) Source(164, 45) + SourceIndex(0) -3 >Emitted(141, 12) Source(164, 52) + SourceIndex(0) -4 >Emitted(141, 13) Source(164, 53) + SourceIndex(0) -5 >Emitted(141, 15) Source(164, 55) + SourceIndex(0) -6 >Emitted(141, 16) Source(164, 56) + SourceIndex(0) -7 >Emitted(141, 17) Source(164, 56) + SourceIndex(0) +1->Emitted(146, 5) Source(164, 39) + SourceIndex(0) +2 >Emitted(146, 11) Source(164, 45) + SourceIndex(0) +3 >Emitted(146, 12) Source(164, 52) + SourceIndex(0) +4 >Emitted(146, 13) Source(164, 53) + SourceIndex(0) +5 >Emitted(146, 15) Source(164, 55) + SourceIndex(0) +6 >Emitted(146, 16) Source(164, 56) + SourceIndex(0) +7 >Emitted(146, 17) Source(164, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, d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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(142, 1) Source(164, 57) + SourceIndex(0) -2 >Emitted(142, 2) Source(164, 58) + SourceIndex(0) -3 >Emitted(142, 3) Source(164, 59) + SourceIndex(0) +1->Emitted(147, 1) Source(164, 57) + SourceIndex(0) +2 >Emitted(147, 2) Source(164, 58) + SourceIndex(0) +3 >Emitted(147, 3) Source(164, 59) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2627,21 +2672,21 @@ sourceFile:contextualTyping.ts 4 > = <(n: number) => IFoo> 5 > function( 6 > n -1->Emitted(143, 1) Source(165, 1) + SourceIndex(0) -2 >Emitted(143, 5) Source(165, 5) + SourceIndex(0) -3 >Emitted(143, 10) Source(165, 10) + SourceIndex(0) -4 >Emitted(143, 13) Source(165, 35) + SourceIndex(0) -5 >Emitted(143, 23) Source(165, 44) + SourceIndex(0) -6 >Emitted(143, 24) Source(165, 45) + SourceIndex(0) +1->Emitted(148, 1) Source(165, 1) + SourceIndex(0) +2 >Emitted(148, 5) Source(165, 5) + SourceIndex(0) +3 >Emitted(148, 10) Source(165, 10) + SourceIndex(0) +4 >Emitted(148, 13) Source(165, 35) + SourceIndex(0) +5 >Emitted(148, 23) Source(165, 44) + SourceIndex(0) +6 >Emitted(148, 24) Source(165, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2649,26 +2694,26 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(144, 5) Source(165, 49) + SourceIndex(0) -2 >Emitted(144, 11) Source(165, 55) + SourceIndex(0) -3 >Emitted(144, 12) Source(165, 62) + SourceIndex(0) -4 >Emitted(144, 13) Source(165, 63) + SourceIndex(0) -5 >Emitted(144, 15) Source(165, 65) + SourceIndex(0) -6 >Emitted(144, 16) Source(165, 66) + SourceIndex(0) -7 >Emitted(144, 17) Source(165, 66) + SourceIndex(0) +1->Emitted(149, 5) Source(165, 49) + SourceIndex(0) +2 >Emitted(149, 11) Source(165, 55) + SourceIndex(0) +3 >Emitted(149, 12) Source(165, 62) + SourceIndex(0) +4 >Emitted(149, 13) Source(165, 63) + SourceIndex(0) +5 >Emitted(149, 15) Source(165, 65) + SourceIndex(0) +6 >Emitted(149, 16) Source(165, 66) + SourceIndex(0) +7 >Emitted(149, 17) Source(165, 66) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(145, 1) Source(165, 67) + SourceIndex(0) -2 >Emitted(145, 2) Source(165, 68) + SourceIndex(0) -3 >Emitted(145, 3) Source(165, 69) + SourceIndex(0) +1->Emitted(150, 1) Source(165, 67) + SourceIndex(0) +2 >Emitted(150, 2) Source(165, 68) + SourceIndex(0) +3 >Emitted(150, 3) Source(165, 69) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -2676,7 +2721,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2686,23 +2731,23 @@ sourceFile:contextualTyping.ts 6 > n 7 > , 8 > s -1->Emitted(146, 1) Source(166, 1) + SourceIndex(0) -2 >Emitted(146, 5) Source(166, 5) + SourceIndex(0) -3 >Emitted(146, 10) Source(166, 10) + SourceIndex(0) -4 >Emitted(146, 13) Source(166, 46) + SourceIndex(0) -5 >Emitted(146, 23) Source(166, 55) + SourceIndex(0) -6 >Emitted(146, 24) Source(166, 56) + SourceIndex(0) -7 >Emitted(146, 26) Source(166, 58) + SourceIndex(0) -8 >Emitted(146, 27) Source(166, 59) + SourceIndex(0) +1->Emitted(151, 1) Source(166, 1) + SourceIndex(0) +2 >Emitted(151, 5) Source(166, 5) + SourceIndex(0) +3 >Emitted(151, 10) Source(166, 10) + SourceIndex(0) +4 >Emitted(151, 13) Source(166, 46) + SourceIndex(0) +5 >Emitted(151, 23) Source(166, 55) + SourceIndex(0) +6 >Emitted(151, 24) Source(166, 56) + SourceIndex(0) +7 >Emitted(151, 26) Source(166, 58) + SourceIndex(0) +8 >Emitted(151, 27) Source(166, 59) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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(0) -2 >Emitted(147, 11) Source(166, 69) + SourceIndex(0) -3 >Emitted(147, 12) Source(166, 76) + SourceIndex(0) -4 >Emitted(147, 13) Source(166, 77) + SourceIndex(0) -5 >Emitted(147, 15) Source(166, 79) + SourceIndex(0) -6 >Emitted(147, 16) Source(166, 80) + SourceIndex(0) -7 >Emitted(147, 17) Source(166, 80) + SourceIndex(0) +1->Emitted(152, 5) Source(166, 63) + SourceIndex(0) +2 >Emitted(152, 11) Source(166, 69) + SourceIndex(0) +3 >Emitted(152, 12) Source(166, 76) + SourceIndex(0) +4 >Emitted(152, 13) Source(166, 77) + SourceIndex(0) +5 >Emitted(152, 15) Source(166, 79) + SourceIndex(0) +6 >Emitted(152, 16) Source(166, 80) + SourceIndex(0) +7 >Emitted(152, 17) Source(166, 80) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(148, 1) Source(166, 81) + SourceIndex(0) -2 >Emitted(148, 2) Source(166, 82) + SourceIndex(0) -3 >Emitted(148, 3) Source(166, 83) + SourceIndex(0) +1->Emitted(153, 1) Source(166, 81) + SourceIndex(0) +2 >Emitted(153, 2) Source(166, 82) + SourceIndex(0) +3 >Emitted(153, 3) Source(166, 83) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^-> 1-> > 2 >var @@ -2746,48 +2791,48 @@ sourceFile:contextualTyping.ts > }> 5 > function( 6 > n:number -1->Emitted(149, 1) Source(167, 1) + SourceIndex(0) -2 >Emitted(149, 5) Source(167, 5) + SourceIndex(0) -3 >Emitted(149, 10) Source(167, 10) + SourceIndex(0) -4 >Emitted(149, 13) Source(170, 4) + SourceIndex(0) -5 >Emitted(149, 23) Source(170, 13) + SourceIndex(0) -6 >Emitted(149, 24) Source(170, 21) + SourceIndex(0) +1->Emitted(154, 1) Source(167, 1) + SourceIndex(0) +2 >Emitted(154, 5) Source(167, 5) + SourceIndex(0) +3 >Emitted(154, 10) Source(167, 10) + SourceIndex(0) +4 >Emitted(154, 13) Source(170, 4) + SourceIndex(0) +5 >Emitted(154, 23) Source(170, 13) + SourceIndex(0) +6 >Emitted(154, 24) Source(170, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > -1->Emitted(150, 5) Source(170, 25) + SourceIndex(0) -2 >Emitted(150, 11) Source(170, 31) + SourceIndex(0) -3 >Emitted(150, 12) Source(170, 32) + SourceIndex(0) -4 >Emitted(150, 13) Source(170, 33) + SourceIndex(0) -5 >Emitted(150, 14) Source(170, 33) + SourceIndex(0) +1->Emitted(155, 5) Source(170, 25) + SourceIndex(0) +2 >Emitted(155, 11) Source(170, 31) + SourceIndex(0) +3 >Emitted(155, 12) Source(170, 32) + SourceIndex(0) +4 >Emitted(155, 13) Source(170, 33) + SourceIndex(0) +5 >Emitted(155, 14) Source(170, 33) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(151, 1) Source(170, 34) + SourceIndex(0) -2 >Emitted(151, 2) Source(170, 35) + SourceIndex(0) -3 >Emitted(151, 3) Source(170, 36) + SourceIndex(0) +1->Emitted(156, 1) Source(170, 34) + SourceIndex(0) +2 >Emitted(156, 2) Source(170, 35) + SourceIndex(0) +3 >Emitted(156, 3) Source(170, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -2796,42 +2841,42 @@ sourceFile:contextualTyping.ts 4 > = <(n: number, s: string) => number> 5 > function( 6 > n -1->Emitted(152, 1) Source(172, 1) + SourceIndex(0) -2 >Emitted(152, 5) Source(172, 5) + SourceIndex(0) -3 >Emitted(152, 10) Source(172, 10) + SourceIndex(0) -4 >Emitted(152, 13) Source(172, 48) + SourceIndex(0) -5 >Emitted(152, 23) Source(172, 57) + SourceIndex(0) -6 >Emitted(152, 24) Source(172, 58) + SourceIndex(0) +1->Emitted(157, 1) Source(172, 1) + SourceIndex(0) +2 >Emitted(157, 5) Source(172, 5) + SourceIndex(0) +3 >Emitted(157, 10) Source(172, 10) + SourceIndex(0) +4 >Emitted(157, 13) Source(172, 48) + SourceIndex(0) +5 >Emitted(157, 23) Source(172, 57) + SourceIndex(0) +6 >Emitted(157, 24) Source(172, 58) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(153, 5) Source(172, 62) + SourceIndex(0) -2 >Emitted(153, 11) Source(172, 68) + SourceIndex(0) -3 >Emitted(153, 12) Source(172, 69) + SourceIndex(0) -4 >Emitted(153, 13) Source(172, 70) + SourceIndex(0) -5 >Emitted(153, 14) Source(172, 71) + SourceIndex(0) +1->Emitted(158, 5) Source(172, 62) + SourceIndex(0) +2 >Emitted(158, 11) Source(172, 68) + SourceIndex(0) +3 >Emitted(158, 12) Source(172, 69) + SourceIndex(0) +4 >Emitted(158, 13) Source(172, 70) + SourceIndex(0) +5 >Emitted(158, 14) Source(172, 71) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(154, 1) Source(172, 72) + SourceIndex(0) -2 >Emitted(154, 2) Source(172, 73) + SourceIndex(0) -3 >Emitted(154, 3) Source(172, 74) + SourceIndex(0) +1->Emitted(159, 1) Source(172, 72) + SourceIndex(0) +2 >Emitted(159, 2) Source(172, 73) + SourceIndex(0) +3 >Emitted(159, 3) Source(172, 74) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -2841,7 +2886,7 @@ sourceFile:contextualTyping.ts 8 > ^^ 9 > ^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2853,18 +2898,18 @@ sourceFile:contextualTyping.ts 8 > [] 9 > ] 10> ; -1->Emitted(155, 1) Source(173, 1) + SourceIndex(0) -2 >Emitted(155, 5) Source(173, 5) + SourceIndex(0) -3 >Emitted(155, 10) Source(173, 10) + SourceIndex(0) -4 >Emitted(155, 13) Source(173, 26) + SourceIndex(0) -5 >Emitted(155, 14) Source(173, 27) + SourceIndex(0) -6 >Emitted(155, 16) Source(173, 29) + SourceIndex(0) -7 >Emitted(155, 18) Source(173, 30) + SourceIndex(0) -8 >Emitted(155, 20) Source(173, 32) + SourceIndex(0) -9 >Emitted(155, 21) Source(173, 33) + SourceIndex(0) -10>Emitted(155, 22) Source(173, 34) + SourceIndex(0) +1->Emitted(160, 1) Source(173, 1) + SourceIndex(0) +2 >Emitted(160, 5) Source(173, 5) + SourceIndex(0) +3 >Emitted(160, 10) Source(173, 10) + SourceIndex(0) +4 >Emitted(160, 13) Source(173, 26) + SourceIndex(0) +5 >Emitted(160, 14) Source(173, 27) + SourceIndex(0) +6 >Emitted(160, 16) Source(173, 29) + SourceIndex(0) +7 >Emitted(160, 18) Source(173, 30) + SourceIndex(0) +8 >Emitted(160, 20) Source(173, 32) + SourceIndex(0) +9 >Emitted(160, 21) Source(173, 33) + SourceIndex(0) +10>Emitted(160, 22) Source(173, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ @@ -2878,7 +2923,7 @@ sourceFile:contextualTyping.ts 12> ^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2894,22 +2939,22 @@ sourceFile:contextualTyping.ts 12> ) 13> ] 14> ; -1->Emitted(156, 1) Source(174, 1) + SourceIndex(0) -2 >Emitted(156, 5) Source(174, 5) + SourceIndex(0) -3 >Emitted(156, 11) Source(174, 11) + SourceIndex(0) -4 >Emitted(156, 14) Source(174, 23) + SourceIndex(0) -5 >Emitted(156, 15) Source(174, 30) + SourceIndex(0) -6 >Emitted(156, 16) Source(174, 31) + SourceIndex(0) -7 >Emitted(156, 18) Source(174, 33) + SourceIndex(0) -8 >Emitted(156, 19) Source(174, 34) + SourceIndex(0) -9 >Emitted(156, 21) Source(174, 41) + SourceIndex(0) -10>Emitted(156, 22) Source(174, 42) + SourceIndex(0) -11>Emitted(156, 24) Source(174, 44) + SourceIndex(0) -12>Emitted(156, 25) Source(174, 45) + SourceIndex(0) -13>Emitted(156, 26) Source(174, 46) + SourceIndex(0) -14>Emitted(156, 27) Source(174, 47) + SourceIndex(0) +1->Emitted(161, 1) Source(174, 1) + SourceIndex(0) +2 >Emitted(161, 5) Source(174, 5) + SourceIndex(0) +3 >Emitted(161, 11) Source(174, 11) + SourceIndex(0) +4 >Emitted(161, 14) Source(174, 23) + SourceIndex(0) +5 >Emitted(161, 15) Source(174, 30) + SourceIndex(0) +6 >Emitted(161, 16) Source(174, 31) + SourceIndex(0) +7 >Emitted(161, 18) Source(174, 33) + SourceIndex(0) +8 >Emitted(161, 19) Source(174, 34) + SourceIndex(0) +9 >Emitted(161, 21) Source(174, 41) + SourceIndex(0) +10>Emitted(161, 22) Source(174, 42) + SourceIndex(0) +11>Emitted(161, 24) Source(174, 44) + SourceIndex(0) +12>Emitted(161, 25) Source(174, 45) + SourceIndex(0) +13>Emitted(161, 26) Source(174, 46) + SourceIndex(0) +14>Emitted(161, 27) Source(174, 47) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ @@ -2918,7 +2963,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2929,69 +2974,69 @@ sourceFile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(157, 1) Source(175, 1) + SourceIndex(0) -2 >Emitted(157, 5) Source(175, 5) + SourceIndex(0) -3 >Emitted(157, 11) Source(175, 11) + SourceIndex(0) -4 >Emitted(157, 14) Source(175, 52) + SourceIndex(0) -5 >Emitted(157, 15) Source(175, 53) + SourceIndex(0) -6 >Emitted(157, 25) Source(175, 62) + SourceIndex(0) -7 >Emitted(157, 26) Source(175, 63) + SourceIndex(0) -8 >Emitted(157, 28) Source(175, 65) + SourceIndex(0) -9 >Emitted(157, 29) Source(175, 66) + SourceIndex(0) +1->Emitted(162, 1) Source(175, 1) + SourceIndex(0) +2 >Emitted(162, 5) Source(175, 5) + SourceIndex(0) +3 >Emitted(162, 11) Source(175, 11) + SourceIndex(0) +4 >Emitted(162, 14) Source(175, 52) + SourceIndex(0) +5 >Emitted(162, 15) Source(175, 53) + SourceIndex(0) +6 >Emitted(162, 25) Source(175, 62) + SourceIndex(0) +7 >Emitted(162, 26) Source(175, 63) + SourceIndex(0) +8 >Emitted(162, 28) Source(175, 65) + SourceIndex(0) +9 >Emitted(162, 29) Source(175, 66) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(158, 5) Source(175, 70) + SourceIndex(0) -2 >Emitted(158, 11) Source(175, 76) + SourceIndex(0) -3 >Emitted(158, 12) Source(175, 77) + SourceIndex(0) -4 >Emitted(158, 13) Source(175, 78) + SourceIndex(0) -5 >Emitted(158, 14) Source(175, 79) + SourceIndex(0) +1->Emitted(163, 5) Source(175, 70) + SourceIndex(0) +2 >Emitted(163, 11) Source(175, 76) + SourceIndex(0) +3 >Emitted(163, 12) Source(175, 77) + SourceIndex(0) +4 >Emitted(163, 13) Source(175, 78) + SourceIndex(0) +5 >Emitted(163, 14) Source(175, 79) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(159, 1) Source(175, 80) + SourceIndex(0) -2 >Emitted(159, 2) Source(175, 81) + SourceIndex(0) -3 >Emitted(159, 3) Source(175, 82) + SourceIndex(0) -4 >Emitted(159, 4) Source(175, 83) + SourceIndex(0) +1->Emitted(164, 1) Source(175, 80) + SourceIndex(0) +2 >Emitted(164, 2) Source(175, 81) + SourceIndex(0) +3 >Emitted(164, 3) Source(175, 82) + SourceIndex(0) +4 >Emitted(164, 4) Source(175, 83) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t12 4 > = -1->Emitted(160, 1) Source(176, 1) + SourceIndex(0) -2 >Emitted(160, 5) Source(176, 5) + SourceIndex(0) -3 >Emitted(160, 11) Source(176, 11) + SourceIndex(0) -4 >Emitted(160, 14) Source(176, 21) + SourceIndex(0) +1->Emitted(165, 1) Source(176, 1) + SourceIndex(0) +2 >Emitted(165, 5) Source(176, 5) + SourceIndex(0) +3 >Emitted(165, 11) Source(176, 11) + SourceIndex(0) +4 >Emitted(165, 14) Source(176, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -2999,48 +3044,48 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(161, 5) Source(177, 5) + SourceIndex(0) -2 >Emitted(161, 8) Source(177, 8) + SourceIndex(0) -3 >Emitted(161, 10) Source(177, 16) + SourceIndex(0) -4 >Emitted(161, 11) Source(177, 17) + SourceIndex(0) -5 >Emitted(161, 13) Source(177, 19) + SourceIndex(0) -6 >Emitted(161, 14) Source(177, 20) + SourceIndex(0) +1->Emitted(166, 5) Source(177, 5) + SourceIndex(0) +2 >Emitted(166, 8) Source(177, 8) + SourceIndex(0) +3 >Emitted(166, 10) Source(177, 16) + SourceIndex(0) +4 >Emitted(166, 11) Source(177, 17) + SourceIndex(0) +5 >Emitted(166, 13) Source(177, 19) + SourceIndex(0) +6 >Emitted(166, 14) Source(177, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(162, 2) Source(178, 2) + SourceIndex(0) -2 >Emitted(162, 3) Source(178, 2) + SourceIndex(0) +1->Emitted(167, 2) Source(178, 2) + SourceIndex(0) +2 >Emitted(167, 3) Source(178, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t13 4 > = 5 > ( -1->Emitted(163, 1) Source(179, 1) + SourceIndex(0) -2 >Emitted(163, 5) Source(179, 5) + SourceIndex(0) -3 >Emitted(163, 11) Source(179, 11) + SourceIndex(0) -4 >Emitted(163, 14) Source(179, 21) + SourceIndex(0) -5 >Emitted(163, 15) Source(179, 22) + SourceIndex(0) +1->Emitted(168, 1) Source(179, 1) + SourceIndex(0) +2 >Emitted(168, 5) Source(179, 5) + SourceIndex(0) +3 >Emitted(168, 11) Source(179, 11) + SourceIndex(0) +4 >Emitted(168, 14) Source(179, 21) + SourceIndex(0) +5 >Emitted(168, 15) Source(179, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -3049,104 +3094,104 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(164, 5) Source(180, 5) + SourceIndex(0) -2 >Emitted(164, 6) Source(180, 6) + SourceIndex(0) -3 >Emitted(164, 8) Source(180, 8) + SourceIndex(0) -4 >Emitted(164, 18) Source(180, 17) + SourceIndex(0) -5 >Emitted(164, 19) Source(180, 18) + SourceIndex(0) -6 >Emitted(164, 21) Source(180, 20) + SourceIndex(0) -7 >Emitted(164, 22) Source(180, 21) + SourceIndex(0) +1->Emitted(169, 5) Source(180, 5) + SourceIndex(0) +2 >Emitted(169, 6) Source(180, 6) + SourceIndex(0) +3 >Emitted(169, 8) Source(180, 8) + SourceIndex(0) +4 >Emitted(169, 18) Source(180, 17) + SourceIndex(0) +5 >Emitted(169, 19) Source(180, 18) + SourceIndex(0) +6 >Emitted(169, 21) Source(180, 20) + SourceIndex(0) +7 >Emitted(169, 22) Source(180, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(165, 9) Source(180, 25) + SourceIndex(0) -2 >Emitted(165, 15) Source(180, 31) + SourceIndex(0) -3 >Emitted(165, 16) Source(180, 32) + SourceIndex(0) -4 >Emitted(165, 17) Source(180, 33) + SourceIndex(0) -5 >Emitted(165, 18) Source(180, 34) + SourceIndex(0) +1->Emitted(170, 9) Source(180, 25) + SourceIndex(0) +2 >Emitted(170, 15) Source(180, 31) + SourceIndex(0) +3 >Emitted(170, 16) Source(180, 32) + SourceIndex(0) +4 >Emitted(170, 17) Source(180, 33) + SourceIndex(0) +5 >Emitted(170, 18) Source(180, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(166, 5) Source(180, 35) + SourceIndex(0) -2 >Emitted(166, 6) Source(180, 36) + SourceIndex(0) +1->Emitted(171, 5) Source(180, 35) + SourceIndex(0) +2 >Emitted(171, 6) Source(180, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(167, 2) Source(181, 2) + SourceIndex(0) -2 >Emitted(167, 3) Source(181, 3) + SourceIndex(0) -3 >Emitted(167, 4) Source(181, 3) + SourceIndex(0) +1->Emitted(172, 2) Source(181, 2) + SourceIndex(0) +2 >Emitted(172, 3) Source(181, 3) + SourceIndex(0) +3 >Emitted(172, 4) Source(181, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t14 4 > = 5 > ( -1->Emitted(168, 1) Source(182, 1) + SourceIndex(0) -2 >Emitted(168, 5) Source(182, 5) + SourceIndex(0) -3 >Emitted(168, 11) Source(182, 11) + SourceIndex(0) -4 >Emitted(168, 14) Source(182, 21) + SourceIndex(0) -5 >Emitted(168, 15) Source(182, 22) + SourceIndex(0) +1->Emitted(173, 1) Source(182, 1) + SourceIndex(0) +2 >Emitted(173, 5) Source(182, 5) + SourceIndex(0) +3 >Emitted(173, 11) Source(182, 11) + SourceIndex(0) +4 >Emitted(173, 14) Source(182, 21) + SourceIndex(0) +5 >Emitted(173, 15) Source(182, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(169, 5) Source(183, 5) + SourceIndex(0) -2 >Emitted(169, 6) Source(183, 6) + SourceIndex(0) -3 >Emitted(169, 8) Source(183, 8) + SourceIndex(0) -4 >Emitted(169, 10) Source(183, 10) + SourceIndex(0) +1->Emitted(174, 5) Source(183, 5) + SourceIndex(0) +2 >Emitted(174, 6) Source(183, 6) + SourceIndex(0) +3 >Emitted(174, 8) Source(183, 8) + SourceIndex(0) +4 >Emitted(174, 10) Source(183, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(170, 2) Source(184, 2) + SourceIndex(0) -2 >Emitted(170, 3) Source(184, 3) + SourceIndex(0) -3 >Emitted(170, 4) Source(184, 3) + SourceIndex(0) +1->Emitted(175, 2) Source(184, 2) + SourceIndex(0) +2 >Emitted(175, 3) Source(184, 3) + SourceIndex(0) +3 >Emitted(175, 4) Source(184, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + d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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Contextual typing declarations @@ -3161,22 +3206,22 @@ sourceFile:contextualTyping.ts 5 > a 6 > , 7 > b -1->Emitted(171, 1) Source(191, 1) + SourceIndex(0) -2 >Emitted(171, 10) Source(191, 10) + SourceIndex(0) -3 >Emitted(171, 13) Source(191, 13) + SourceIndex(0) -4 >Emitted(171, 14) Source(191, 14) + SourceIndex(0) -5 >Emitted(171, 15) Source(191, 15) + SourceIndex(0) -6 >Emitted(171, 17) Source(191, 16) + SourceIndex(0) -7 >Emitted(171, 18) Source(191, 17) + SourceIndex(0) +1->Emitted(176, 1) Source(191, 1) + SourceIndex(0) +2 >Emitted(176, 10) Source(191, 10) + SourceIndex(0) +3 >Emitted(176, 13) Source(191, 13) + SourceIndex(0) +4 >Emitted(176, 14) Source(191, 14) + SourceIndex(0) +5 >Emitted(176, 15) Source(191, 15) + SourceIndex(0) +6 >Emitted(176, 17) Source(191, 16) + SourceIndex(0) +7 >Emitted(176, 18) Source(191, 17) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -3184,23 +3229,23 @@ sourceFile:contextualTyping.ts 5 > + 6 > b 7 > ; -1->Emitted(172, 5) Source(191, 21) + SourceIndex(0) name (EF1) -2 >Emitted(172, 11) Source(191, 27) + SourceIndex(0) name (EF1) -3 >Emitted(172, 12) Source(191, 28) + SourceIndex(0) name (EF1) -4 >Emitted(172, 13) Source(191, 29) + SourceIndex(0) name (EF1) -5 >Emitted(172, 16) Source(191, 30) + SourceIndex(0) name (EF1) -6 >Emitted(172, 17) Source(191, 31) + SourceIndex(0) name (EF1) -7 >Emitted(172, 18) Source(191, 32) + SourceIndex(0) name (EF1) +1->Emitted(177, 5) Source(191, 21) + SourceIndex(0) name (EF1) +2 >Emitted(177, 11) Source(191, 27) + SourceIndex(0) name (EF1) +3 >Emitted(177, 12) Source(191, 28) + SourceIndex(0) name (EF1) +4 >Emitted(177, 13) Source(191, 29) + SourceIndex(0) name (EF1) +5 >Emitted(177, 16) Source(191, 30) + SourceIndex(0) name (EF1) +6 >Emitted(177, 17) Source(191, 31) + SourceIndex(0) name (EF1) +7 >Emitted(177, 18) Source(191, 32) + SourceIndex(0) name (EF1) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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1-> 2 >} -1->Emitted(173, 1) Source(191, 33) + SourceIndex(0) name (EF1) -2 >Emitted(173, 2) Source(191, 34) + SourceIndex(0) name (EF1) +1->Emitted(178, 1) Source(191, 33) + SourceIndex(0) name (EF1) +2 >Emitted(178, 2) Source(191, 34) + SourceIndex(0) name (EF1) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^ 4 > ^^^ @@ -3211,7 +3256,7 @@ sourceFile:contextualTyping.ts 9 > ^ 10> ^ 11> ^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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-3 >Emitted(174, 8) Source(193, 8) + SourceIndex(0) -4 >Emitted(174, 11) Source(193, 11) + SourceIndex(0) -5 >Emitted(174, 14) Source(193, 14) + SourceIndex(0) -6 >Emitted(174, 15) Source(193, 15) + SourceIndex(0) -7 >Emitted(174, 16) Source(193, 16) + SourceIndex(0) -8 >Emitted(174, 18) Source(193, 17) + SourceIndex(0) -9 >Emitted(174, 19) Source(193, 18) + SourceIndex(0) -10>Emitted(174, 20) Source(193, 19) + SourceIndex(0) -11>Emitted(174, 21) Source(193, 20) + SourceIndex(0) +1->Emitted(179, 1) Source(193, 1) + SourceIndex(0) +2 >Emitted(179, 5) Source(193, 5) + SourceIndex(0) +3 >Emitted(179, 8) Source(193, 8) + SourceIndex(0) +4 >Emitted(179, 11) Source(193, 11) + SourceIndex(0) +5 >Emitted(179, 14) Source(193, 14) + SourceIndex(0) +6 >Emitted(179, 15) Source(193, 15) + SourceIndex(0) +7 >Emitted(179, 16) Source(193, 16) + SourceIndex(0) +8 >Emitted(179, 18) Source(193, 17) + SourceIndex(0) +9 >Emitted(179, 19) Source(193, 18) + SourceIndex(0) +10>Emitted(179, 20) Source(193, 19) + SourceIndex(0) +11>Emitted(179, 21) Source(193, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^ 3 > ^^^^^ 4 > ^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3266,22 +3311,22 @@ sourceFile:contextualTyping.ts 5 > x 6 > , 7 > y -1->Emitted(175, 1) Source(207, 1) + SourceIndex(0) -2 >Emitted(175, 10) Source(207, 10) + SourceIndex(0) -3 >Emitted(175, 15) Source(207, 15) + SourceIndex(0) -4 >Emitted(175, 16) Source(207, 16) + SourceIndex(0) -5 >Emitted(175, 17) Source(207, 17) + SourceIndex(0) -6 >Emitted(175, 19) Source(207, 19) + SourceIndex(0) -7 >Emitted(175, 20) Source(207, 20) + SourceIndex(0) +1->Emitted(180, 1) Source(207, 1) + SourceIndex(0) +2 >Emitted(180, 10) Source(207, 10) + SourceIndex(0) +3 >Emitted(180, 15) Source(207, 15) + SourceIndex(0) +4 >Emitted(180, 16) Source(207, 16) + SourceIndex(0) +5 >Emitted(180, 17) Source(207, 17) + SourceIndex(0) +6 >Emitted(180, 19) Source(207, 19) + SourceIndex(0) +7 >Emitted(180, 20) Source(207, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > this @@ -3290,22 +3335,22 @@ sourceFile:contextualTyping.ts 5 > = 6 > x 7 > ; -1->Emitted(176, 5) Source(208, 5) + SourceIndex(0) name (Point) -2 >Emitted(176, 9) Source(208, 9) + SourceIndex(0) name (Point) -3 >Emitted(176, 10) Source(208, 10) + SourceIndex(0) name (Point) -4 >Emitted(176, 11) Source(208, 11) + SourceIndex(0) name (Point) -5 >Emitted(176, 14) Source(208, 14) + SourceIndex(0) name (Point) -6 >Emitted(176, 15) Source(208, 15) + SourceIndex(0) name (Point) -7 >Emitted(176, 16) Source(208, 16) + SourceIndex(0) name (Point) +1->Emitted(181, 5) Source(208, 5) + SourceIndex(0) name (Point) +2 >Emitted(181, 9) Source(208, 9) + SourceIndex(0) name (Point) +3 >Emitted(181, 10) Source(208, 10) + SourceIndex(0) name (Point) +4 >Emitted(181, 11) Source(208, 11) + SourceIndex(0) name (Point) +5 >Emitted(181, 14) Source(208, 14) + SourceIndex(0) name (Point) +6 >Emitted(181, 15) Source(208, 15) + SourceIndex(0) name (Point) +7 >Emitted(181, 16) Source(208, 16) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > this @@ -3314,20 +3359,20 @@ sourceFile:contextualTyping.ts 5 > = 6 > y 7 > ; -1->Emitted(177, 5) Source(209, 5) + SourceIndex(0) name (Point) -2 >Emitted(177, 9) Source(209, 9) + SourceIndex(0) name (Point) -3 >Emitted(177, 10) Source(209, 10) + SourceIndex(0) name (Point) -4 >Emitted(177, 11) Source(209, 11) + SourceIndex(0) name (Point) -5 >Emitted(177, 14) Source(209, 14) + SourceIndex(0) name (Point) -6 >Emitted(177, 15) Source(209, 15) + SourceIndex(0) name (Point) -7 >Emitted(177, 16) Source(209, 16) + SourceIndex(0) name (Point) +1->Emitted(182, 5) Source(209, 5) + SourceIndex(0) name (Point) +2 >Emitted(182, 9) Source(209, 9) + SourceIndex(0) name (Point) +3 >Emitted(182, 10) Source(209, 10) + SourceIndex(0) name (Point) +4 >Emitted(182, 11) Source(209, 11) + SourceIndex(0) name (Point) +5 >Emitted(182, 14) Source(209, 14) + SourceIndex(0) name (Point) +6 >Emitted(182, 15) Source(209, 15) + SourceIndex(0) name (Point) +7 >Emitted(182, 16) Source(209, 16) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3335,22 +3380,22 @@ sourceFile:contextualTyping.ts 3 > 4 > this 5 > ; -1->Emitted(178, 5) Source(211, 5) + SourceIndex(0) name (Point) -2 >Emitted(178, 11) Source(211, 11) + SourceIndex(0) name (Point) -3 >Emitted(178, 12) Source(211, 12) + SourceIndex(0) name (Point) -4 >Emitted(178, 16) Source(211, 16) + SourceIndex(0) name (Point) -5 >Emitted(178, 17) Source(211, 17) + SourceIndex(0) name (Point) +1->Emitted(183, 5) Source(211, 5) + SourceIndex(0) name (Point) +2 >Emitted(183, 11) Source(211, 11) + SourceIndex(0) name (Point) +3 >Emitted(183, 12) Source(211, 12) + SourceIndex(0) name (Point) +4 >Emitted(183, 16) Source(211, 16) + SourceIndex(0) name (Point) +5 >Emitted(183, 17) Source(211, 17) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} -1->Emitted(179, 1) Source(212, 1) + SourceIndex(0) name (Point) -2 >Emitted(179, 2) Source(212, 2) + SourceIndex(0) name (Point) +1->Emitted(184, 1) Source(212, 1) + SourceIndex(0) name (Point) +2 >Emitted(184, 2) Source(212, 2) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^ @@ -3363,7 +3408,7 @@ sourceFile:contextualTyping.ts 11> ^ 12> ^ 13> ^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3379,21 +3424,21 @@ sourceFile:contextualTyping.ts 11> 0 12> ) 13> ; -1->Emitted(180, 1) Source(214, 1) + SourceIndex(0) -2 >Emitted(180, 6) Source(214, 6) + SourceIndex(0) -3 >Emitted(180, 7) Source(214, 7) + SourceIndex(0) -4 >Emitted(180, 13) Source(214, 13) + SourceIndex(0) -5 >Emitted(180, 16) Source(214, 16) + SourceIndex(0) -6 >Emitted(180, 20) Source(214, 20) + SourceIndex(0) -7 >Emitted(180, 25) Source(214, 25) + SourceIndex(0) -8 >Emitted(180, 26) Source(214, 26) + SourceIndex(0) -9 >Emitted(180, 27) Source(214, 27) + SourceIndex(0) -10>Emitted(180, 29) Source(214, 29) + SourceIndex(0) -11>Emitted(180, 30) Source(214, 30) + SourceIndex(0) -12>Emitted(180, 31) Source(214, 31) + SourceIndex(0) -13>Emitted(180, 32) Source(214, 32) + SourceIndex(0) +1->Emitted(185, 1) Source(214, 1) + SourceIndex(0) +2 >Emitted(185, 6) Source(214, 6) + SourceIndex(0) +3 >Emitted(185, 7) Source(214, 7) + SourceIndex(0) +4 >Emitted(185, 13) Source(214, 13) + SourceIndex(0) +5 >Emitted(185, 16) Source(214, 16) + SourceIndex(0) +6 >Emitted(185, 20) Source(214, 20) + SourceIndex(0) +7 >Emitted(185, 25) Source(214, 25) + SourceIndex(0) +8 >Emitted(185, 26) Source(214, 26) + SourceIndex(0) +9 >Emitted(185, 27) Source(214, 27) + SourceIndex(0) +10>Emitted(185, 29) Source(214, 29) + SourceIndex(0) +11>Emitted(185, 30) Source(214, 30) + SourceIndex(0) +12>Emitted(185, 31) Source(214, 31) + SourceIndex(0) +13>Emitted(185, 32) Source(214, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^^^^ @@ -3404,7 +3449,7 @@ sourceFile:contextualTyping.ts 9 > ^^ 10> ^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3418,19 +3463,19 @@ sourceFile:contextualTyping.ts 9 > dx 10> , 11> dy -1->Emitted(181, 1) Source(216, 1) + SourceIndex(0) -2 >Emitted(181, 6) Source(216, 6) + SourceIndex(0) -3 >Emitted(181, 7) Source(216, 7) + SourceIndex(0) -4 >Emitted(181, 16) Source(216, 16) + SourceIndex(0) -5 >Emitted(181, 17) Source(216, 17) + SourceIndex(0) -6 >Emitted(181, 20) Source(216, 20) + SourceIndex(0) -7 >Emitted(181, 23) Source(216, 23) + SourceIndex(0) -8 >Emitted(181, 33) Source(216, 32) + SourceIndex(0) -9 >Emitted(181, 35) Source(216, 34) + SourceIndex(0) -10>Emitted(181, 37) Source(216, 36) + SourceIndex(0) -11>Emitted(181, 39) Source(216, 38) + SourceIndex(0) +1->Emitted(186, 1) Source(216, 1) + SourceIndex(0) +2 >Emitted(186, 6) Source(216, 6) + SourceIndex(0) +3 >Emitted(186, 7) Source(216, 7) + SourceIndex(0) +4 >Emitted(186, 16) Source(216, 16) + SourceIndex(0) +5 >Emitted(186, 17) Source(216, 17) + SourceIndex(0) +6 >Emitted(186, 20) Source(216, 20) + SourceIndex(0) +7 >Emitted(186, 23) Source(216, 23) + SourceIndex(0) +8 >Emitted(186, 33) Source(216, 32) + SourceIndex(0) +9 >Emitted(186, 35) Source(216, 34) + SourceIndex(0) +10>Emitted(186, 37) Source(216, 36) + SourceIndex(0) +11>Emitted(186, 39) Source(216, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ @@ -3449,7 +3494,7 @@ sourceFile:contextualTyping.ts 17> ^^ 18> ^ 19> ^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -3470,44 +3515,44 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(182, 5) Source(217, 5) + SourceIndex(0) -2 >Emitted(182, 11) Source(217, 11) + SourceIndex(0) -3 >Emitted(182, 12) Source(217, 12) + SourceIndex(0) -4 >Emitted(182, 16) Source(217, 16) + SourceIndex(0) -5 >Emitted(182, 21) Source(217, 21) + SourceIndex(0) -6 >Emitted(182, 22) Source(217, 22) + SourceIndex(0) -7 >Emitted(182, 26) Source(217, 26) + SourceIndex(0) -8 >Emitted(182, 27) Source(217, 27) + SourceIndex(0) -9 >Emitted(182, 28) Source(217, 28) + SourceIndex(0) -10>Emitted(182, 31) Source(217, 31) + SourceIndex(0) -11>Emitted(182, 33) Source(217, 33) + SourceIndex(0) -12>Emitted(182, 35) Source(217, 35) + SourceIndex(0) -13>Emitted(182, 39) Source(217, 39) + SourceIndex(0) -14>Emitted(182, 40) Source(217, 40) + SourceIndex(0) -15>Emitted(182, 41) Source(217, 41) + SourceIndex(0) -16>Emitted(182, 44) Source(217, 44) + SourceIndex(0) -17>Emitted(182, 46) Source(217, 46) + SourceIndex(0) -18>Emitted(182, 47) Source(217, 47) + SourceIndex(0) -19>Emitted(182, 48) Source(217, 48) + SourceIndex(0) +1->Emitted(187, 5) Source(217, 5) + SourceIndex(0) +2 >Emitted(187, 11) Source(217, 11) + SourceIndex(0) +3 >Emitted(187, 12) Source(217, 12) + SourceIndex(0) +4 >Emitted(187, 16) Source(217, 16) + SourceIndex(0) +5 >Emitted(187, 21) Source(217, 21) + SourceIndex(0) +6 >Emitted(187, 22) Source(217, 22) + SourceIndex(0) +7 >Emitted(187, 26) Source(217, 26) + SourceIndex(0) +8 >Emitted(187, 27) Source(217, 27) + SourceIndex(0) +9 >Emitted(187, 28) Source(217, 28) + SourceIndex(0) +10>Emitted(187, 31) Source(217, 31) + SourceIndex(0) +11>Emitted(187, 33) Source(217, 33) + SourceIndex(0) +12>Emitted(187, 35) Source(217, 35) + SourceIndex(0) +13>Emitted(187, 39) Source(217, 39) + SourceIndex(0) +14>Emitted(187, 40) Source(217, 40) + SourceIndex(0) +15>Emitted(187, 41) Source(217, 41) + SourceIndex(0) +16>Emitted(187, 44) Source(217, 44) + SourceIndex(0) +17>Emitted(187, 46) Source(217, 46) + SourceIndex(0) +18>Emitted(187, 47) Source(217, 47) + SourceIndex(0) +19>Emitted(187, 48) Source(217, 48) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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1) + SourceIndex(0) -2 >Emitted(183, 2) Source(218, 2) + SourceIndex(0) -3 >Emitted(183, 3) Source(218, 3) + SourceIndex(0) +1->Emitted(188, 1) Source(218, 1) + SourceIndex(0) +2 >Emitted(188, 2) Source(218, 2) + SourceIndex(0) +3 >Emitted(188, 3) Source(218, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^^^^ 5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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, 7) + SourceIndex(0) -4 >Emitted(184, 16) Source(220, 16) + SourceIndex(0) -5 >Emitted(184, 19) Source(220, 19) + SourceIndex(0) +1->Emitted(189, 1) Source(220, 1) + SourceIndex(0) +2 >Emitted(189, 6) Source(220, 6) + SourceIndex(0) +3 >Emitted(189, 7) Source(220, 7) + SourceIndex(0) +4 >Emitted(189, 16) Source(220, 16) + SourceIndex(0) +5 >Emitted(189, 19) Source(220, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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(185, 6) Source(221, 6) + SourceIndex(0) -3 >Emitted(185, 8) Source(221, 8) + SourceIndex(0) -4 >Emitted(185, 9) Source(221, 9) + SourceIndex(0) +1->Emitted(190, 5) Source(221, 5) + SourceIndex(0) +2 >Emitted(190, 6) Source(221, 6) + SourceIndex(0) +3 >Emitted(190, 8) Source(221, 8) + SourceIndex(0) +4 >Emitted(190, 9) Source(221, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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) -3 >Emitted(186, 8) Source(222, 8) + SourceIndex(0) -4 >Emitted(186, 9) Source(222, 9) + SourceIndex(0) +1->Emitted(191, 5) Source(222, 5) + SourceIndex(0) +2 >Emitted(191, 6) Source(222, 6) + SourceIndex(0) +3 >Emitted(191, 8) Source(222, 8) + SourceIndex(0) +4 >Emitted(191, 9) Source(222, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^^ 6 > ^^ 7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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source(223, 8) + SourceIndex(0) -3 >Emitted(187, 10) Source(223, 10) + SourceIndex(0) -4 >Emitted(187, 20) Source(223, 19) + SourceIndex(0) -5 >Emitted(187, 22) Source(223, 21) + SourceIndex(0) -6 >Emitted(187, 24) Source(223, 23) + SourceIndex(0) -7 >Emitted(187, 26) Source(223, 25) + SourceIndex(0) +1->Emitted(192, 5) Source(223, 5) + SourceIndex(0) +2 >Emitted(192, 8) Source(223, 8) + SourceIndex(0) +3 >Emitted(192, 10) Source(223, 10) + SourceIndex(0) +4 >Emitted(192, 20) Source(223, 19) + SourceIndex(0) +5 >Emitted(192, 22) Source(223, 21) + SourceIndex(0) +6 >Emitted(192, 24) Source(223, 23) + SourceIndex(0) +7 >Emitted(192, 26) Source(223, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ @@ -3594,7 +3639,7 @@ sourceFile:contextualTyping.ts 17> ^^ 18> ^ 19> ^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -3615,51 +3660,51 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(188, 9) Source(224, 9) + SourceIndex(0) -2 >Emitted(188, 15) Source(224, 15) + SourceIndex(0) -3 >Emitted(188, 16) Source(224, 16) + SourceIndex(0) -4 >Emitted(188, 20) Source(224, 20) + SourceIndex(0) -5 >Emitted(188, 25) Source(224, 25) + SourceIndex(0) -6 >Emitted(188, 26) Source(224, 26) + SourceIndex(0) -7 >Emitted(188, 30) Source(224, 30) + SourceIndex(0) -8 >Emitted(188, 31) Source(224, 31) + SourceIndex(0) -9 >Emitted(188, 32) Source(224, 32) + SourceIndex(0) -10>Emitted(188, 35) Source(224, 35) + SourceIndex(0) -11>Emitted(188, 37) Source(224, 37) + SourceIndex(0) -12>Emitted(188, 39) Source(224, 39) + SourceIndex(0) -13>Emitted(188, 43) Source(224, 43) + SourceIndex(0) -14>Emitted(188, 44) Source(224, 44) + SourceIndex(0) -15>Emitted(188, 45) Source(224, 45) + SourceIndex(0) -16>Emitted(188, 48) Source(224, 48) + SourceIndex(0) -17>Emitted(188, 50) Source(224, 50) + SourceIndex(0) -18>Emitted(188, 51) Source(224, 51) + SourceIndex(0) -19>Emitted(188, 52) Source(224, 52) + SourceIndex(0) +1->Emitted(193, 9) Source(224, 9) + SourceIndex(0) +2 >Emitted(193, 15) Source(224, 15) + SourceIndex(0) +3 >Emitted(193, 16) Source(224, 16) + SourceIndex(0) +4 >Emitted(193, 20) Source(224, 20) + SourceIndex(0) +5 >Emitted(193, 25) Source(224, 25) + SourceIndex(0) +6 >Emitted(193, 26) Source(224, 26) + SourceIndex(0) +7 >Emitted(193, 30) Source(224, 30) + SourceIndex(0) +8 >Emitted(193, 31) Source(224, 31) + SourceIndex(0) +9 >Emitted(193, 32) Source(224, 32) + SourceIndex(0) +10>Emitted(193, 35) Source(224, 35) + SourceIndex(0) +11>Emitted(193, 37) Source(224, 37) + SourceIndex(0) +12>Emitted(193, 39) Source(224, 39) + SourceIndex(0) +13>Emitted(193, 43) Source(224, 43) + SourceIndex(0) +14>Emitted(193, 44) Source(224, 44) + SourceIndex(0) +15>Emitted(193, 45) Source(224, 45) + SourceIndex(0) +16>Emitted(193, 48) Source(224, 48) + SourceIndex(0) +17>Emitted(193, 50) Source(224, 50) + SourceIndex(0) +18>Emitted(193, 51) Source(224, 51) + SourceIndex(0) +19>Emitted(193, 52) Source(224, 52) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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> 1-> > 2 > } -1->Emitted(189, 5) Source(225, 5) + SourceIndex(0) -2 >Emitted(189, 6) Source(225, 6) + SourceIndex(0) +1->Emitted(194, 5) Source(225, 5) + SourceIndex(0) +2 >Emitted(194, 6) Source(225, 6) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ; -1->Emitted(190, 2) Source(226, 2) + SourceIndex(0) -2 >Emitted(190, 3) Source(226, 3) + SourceIndex(0) +1->Emitted(195, 2) Source(226, 2) + SourceIndex(0) +2 >Emitted(195, 3) Source(226, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >interface A { x: string; } @@ -3670,10 +3715,10 @@ sourceFile:contextualTyping.ts 4 > : B = 5 > { } 6 > ; -1->Emitted(191, 1) Source(230, 1) + SourceIndex(0) -2 >Emitted(191, 5) Source(230, 5) + SourceIndex(0) -3 >Emitted(191, 6) Source(230, 6) + SourceIndex(0) -4 >Emitted(191, 9) Source(230, 12) + SourceIndex(0) -5 >Emitted(191, 11) Source(230, 15) + SourceIndex(0) -6 >Emitted(191, 12) Source(230, 16) + SourceIndex(0) +1->Emitted(196, 1) Source(230, 1) + SourceIndex(0) +2 >Emitted(196, 5) Source(230, 5) + SourceIndex(0) +3 >Emitted(196, 6) Source(230, 6) + SourceIndex(0) +4 >Emitted(196, 9) Source(230, 12) + SourceIndex(0) +5 >Emitted(196, 11) Source(230, 15) + SourceIndex(0) +6 >Emitted(196, 12) Source(230, 16) + SourceIndex(0) --- \ No newline at end of file diff --git a/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js b/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js index d5b27792603..b2a8bf0dba1 100644 --- a/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js +++ b/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js @@ -21,6 +21,7 @@ var r6 = _.forEach(c2, (x) => { return x.toFixed() }); //// [contextualTypingOfGenericFunctionTypedArguments1.js] var c2; var _; +// errors on all 3 lines, bug was that r5 was the only line with errors var f = function (x) { return x.toFixed(); }; diff --git a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js index 8e69f08601e..f548b6daaad 100644 --- a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js +++ b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js @@ -17,6 +17,7 @@ f3 = (x, y) => { return x } //// [contextualTypingWithGenericAndNonGenericSignature.js] +//• If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2; f2 = function (x, y) { return x; diff --git a/tests/baselines/reference/contextualTypingWithGenericSignature.js b/tests/baselines/reference/contextualTypingWithGenericSignature.js index 8eb51fe6b99..a1417e90b43 100644 --- a/tests/baselines/reference/contextualTypingWithGenericSignature.js +++ b/tests/baselines/reference/contextualTypingWithGenericSignature.js @@ -8,6 +8,7 @@ var f2: { f2 = (x, y) => { return x } //// [contextualTypingWithGenericSignature.js] +// If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2; f2 = function (x, y) { return x; diff --git a/tests/baselines/reference/convertKeywordsYes.js b/tests/baselines/reference/convertKeywordsYes.js index b6572cf9cf9..deae65b54c9 100644 --- a/tests/baselines/reference/convertKeywordsYes.js +++ b/tests/baselines/reference/convertKeywordsYes.js @@ -306,6 +306,7 @@ module bigModule { } //// [convertKeywordsYes.js] +// reserved ES5 future in strict mode var constructor = 0; var any = 0; var boolean = 0; diff --git a/tests/baselines/reference/declFileRegressionTests.js b/tests/baselines/reference/declFileRegressionTests.js index a2e287a4875..f8d0edbe48a 100644 --- a/tests/baselines/reference/declFileRegressionTests.js +++ b/tests/baselines/reference/declFileRegressionTests.js @@ -6,6 +6,8 @@ var n = { w: null, x: '', y: () => { }, z: 32 }; //// [declFileRegressionTests.js] +// 'null' not converted to 'any' in d.ts +// function types not piped through correctly var n = { w: null, x: '', y: function () { }, z: 32 }; diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js index 2b6216a7851..983ca4b6cf0 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js @@ -49,6 +49,7 @@ objA.a--; M.n--; //// [decrementOperatorWithAnyOtherType.js] +// -- operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -63,10 +64,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = --ANY; var ResultIsNumber2 = --ANY1; var ResultIsNumber3 = ANY1--; var ResultIsNumber4 = ANY1--; +// expressions var ResultIsNumber5 = --ANY2[0]; var ResultIsNumber6 = --obj.x; var ResultIsNumber7 = --obj.y; diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js index 30dce46eba3..c72bf171043 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -73,6 +73,7 @@ ANY2--; ++ANY2[0]--; //// [decrementOperatorWithAnyOtherTypeInvalidOperations.js] +// -- operator on any type var ANY1; var ANY2 = ["", ""]; var obj; @@ -96,6 +97,7 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = --ANY2; var ResultIsNumber2 = --A; var ResultIsNumber3 = --M; @@ -106,12 +108,14 @@ var ResultIsNumber7 = A--; var ResultIsNumber8 = M--; var ResultIsNumber9 = obj--; var ResultIsNumber10 = obj1--; +// any type literal var ResultIsNumber11 = --{}; var ResultIsNumber12 = --null; var ResultIsNumber13 = --undefined; var ResultIsNumber14 = null--; var ResultIsNumber15 = {}--; var ResultIsNumber16 = undefined--; +// any type expressions var ResultIsNumber17 = --foo(); var ResultIsNumber18 = --A.foo(); var ResultIsNumber19 = --(null + undefined); diff --git a/tests/baselines/reference/decrementOperatorWithEnumType.js b/tests/baselines/reference/decrementOperatorWithEnumType.js index 993fe2487bb..8d180fc308e 100644 --- a/tests/baselines/reference/decrementOperatorWithEnumType.js +++ b/tests/baselines/reference/decrementOperatorWithEnumType.js @@ -20,6 +20,7 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// expression var ResultIsNumber1 = --ENUM1[1]; var ResultIsNumber2 = ENUM1[1]--; --ENUM1[1]; diff --git a/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js index a8c552ada59..4964e79d573 100644 --- a/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js @@ -34,10 +34,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = --ENUM; var ResultIsNumber2 = --ENUM1; var ResultIsNumber3 = ENUM--; var ResultIsNumber4 = ENUM1--; +// enum type expressions var ResultIsNumber5 = --(ENUM[1] + ENUM[2]); var ResultIsNumber6 = (ENUM[1] + ENUM[2])--; --ENUM; diff --git a/tests/baselines/reference/decrementOperatorWithNumberType.js b/tests/baselines/reference/decrementOperatorWithNumberType.js index 381ad2b534f..c8631a6afbe 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberType.js +++ b/tests/baselines/reference/decrementOperatorWithNumberType.js @@ -40,6 +40,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithNumberType.js] +// -- operator on number type var NUMBER; var NUMBER1 = [1, 2]; var A = (function () { @@ -52,8 +53,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = --NUMBER; var ResultIsNumber2 = NUMBER--; +// expressions var ResultIsNumber3 = --objA.a; var ResultIsNumber4 = --M.n; var ResultIsNumber5 = objA.a--; diff --git a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js index e9b2ff0e87f..bbe69efa1bd 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js @@ -47,6 +47,7 @@ NUMBER1--; foo()--; //// [decrementOperatorWithNumberTypeInvalidOperations.js] +// -- operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -65,8 +66,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +//number type var var ResultIsNumber1 = --NUMBER1; var ResultIsNumber2 = NUMBER1--; +// number type literal var ResultIsNumber3 = --1; var ResultIsNumber4 = --{ x: 1, y: 2 }; var ResultIsNumber5 = --{ x: 1, y: function (n) { @@ -77,6 +80,7 @@ var ResultIsNumber7 = { x: 1, y: 2 }--; var ResultIsNumber8 = { x: 1, y: function (n) { return n; } }--; +// number type expressions var ResultIsNumber9 = --foo(); var ResultIsNumber10 = --A.foo(); var ResultIsNumber11 = --(NUMBER + NUMBER); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js index cffee508431..c113ea6ef3b 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js @@ -55,6 +55,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithUnsupportedBooleanType.js] +// -- operator on boolean type var BOOLEAN; function foo() { return true; @@ -72,8 +73,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = --BOOLEAN; var ResultIsNumber2 = BOOLEAN--; +// boolean type literal var ResultIsNumber3 = --true; var ResultIsNumber4 = --{ x: true, y: false }; var ResultIsNumber5 = --{ x: true, y: function (n) { @@ -84,6 +87,7 @@ var ResultIsNumber7 = { x: true, y: false }--; var ResultIsNumber8 = { x: true, y: function (n) { return n; } }--; +// boolean type expressions var ResultIsNumber9 = --objA.a; var ResultIsNumber10 = --M.n; var ResultIsNumber11 = --foo(); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js index 7eb26de8a67..2fe2748d55c 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js @@ -66,6 +66,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithUnsupportedStringType.js] +// -- operator on string type var STRING; var STRING1 = ["", ""]; function foo() { @@ -84,10 +85,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = --STRING; var ResultIsNumber2 = --STRING1; var ResultIsNumber3 = STRING--; var ResultIsNumber4 = STRING1--; +// string type literal var ResultIsNumber5 = --""; var ResultIsNumber6 = --{ x: "", y: "" }; var ResultIsNumber7 = --{ x: "", y: function (s) { @@ -98,6 +101,7 @@ var ResultIsNumber9 = { x: "", y: "" }--; var ResultIsNumber10 = { x: "", y: function (s) { return s; } }--; +// string type expressions var ResultIsNumber11 = --objA.a; var ResultIsNumber12 = --M.n; var ResultIsNumber13 = --STRING1[0]; diff --git a/tests/baselines/reference/defaultArgsForwardReferencing.js b/tests/baselines/reference/defaultArgsForwardReferencing.js index 5926dd7105f..4e9a5ae60e3 100644 --- a/tests/baselines/reference/defaultArgsForwardReferencing.js +++ b/tests/baselines/reference/defaultArgsForwardReferencing.js @@ -90,6 +90,7 @@ var C = (function () { }; return C; })(); +// Function expressions var x = function (a, b, c) { if (a === void 0) { a = b; } if (b === void 0) { b = c; } diff --git a/tests/baselines/reference/defaultArgsInFunctionExpressions.js b/tests/baselines/reference/defaultArgsInFunctionExpressions.js index a5872ceac7b..991c45d6973 100644 --- a/tests/baselines/reference/defaultArgsInFunctionExpressions.js +++ b/tests/baselines/reference/defaultArgsInFunctionExpressions.js @@ -40,6 +40,7 @@ var n = f(4); n = f(); var s = f(''); s = f(); +// Type check the default argument with the type annotation var f2 = function (a) { if (a === void 0) { a = 3; } return a; @@ -47,12 +48,15 @@ var f2 = function (a) { s = f2(''); s = f2(); n = f2(); +// Contextually type the default arg with the type annotation var f3 = function (a) { if (a === void 0) { a = function (s) { return s; }; } }; +// Type check using the function's contextual type var f4 = function (a) { if (a === void 0) { a = ""; } }; +// Contextually type the default arg using the function's contextual type var f5 = function (a) { if (a === void 0) { a = function (s) { return s; }; } }; diff --git a/tests/baselines/reference/defaultIndexProps2.js b/tests/baselines/reference/defaultIndexProps2.js index 67a894bf9e1..9f8b97c1350 100644 --- a/tests/baselines/reference/defaultIndexProps2.js +++ b/tests/baselines/reference/defaultIndexProps2.js @@ -23,6 +23,7 @@ var Foo = (function () { return Foo; })(); var f = new Foo(); +// WScript.Echo(f[0]); var o = { v: "Yo2" }; 1[0]; var q = "s"[0]; diff --git a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js index 167ce961b3a..a344262a266 100644 --- a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js @@ -62,6 +62,7 @@ delete objA.a; delete M.n; //// [deleteOperatorWithAnyOtherType.js] +// delete operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -86,14 +87,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsBoolean1 = delete ANY1; var ResultIsBoolean2 = delete ANY2; var ResultIsBoolean3 = delete A; var ResultIsBoolean4 = delete M; var ResultIsBoolean5 = delete obj; var ResultIsBoolean6 = delete obj1; +// any type literal var ResultIsBoolean7 = delete undefined; var ResultIsBoolean8 = delete null; +// any type expressions var ResultIsBoolean9 = delete ANY2[0]; var ResultIsBoolean10 = delete obj1.x; var ResultIsBoolean11 = delete obj1.y; @@ -105,6 +109,7 @@ var ResultIsBoolean16 = delete (ANY + ANY1); var ResultIsBoolean17 = delete (null + undefined); var ResultIsBoolean18 = delete (null + null); var ResultIsBoolean19 = delete (undefined + undefined); +// multiple delete operators var ResultIsBoolean20 = delete delete ANY; var ResultIsBoolean21 = delete delete delete (ANY + ANY1); delete ANY; diff --git a/tests/baselines/reference/deleteOperatorWithBooleanType.js b/tests/baselines/reference/deleteOperatorWithBooleanType.js index 198e3c73b7a..c0257d29048 100644 --- a/tests/baselines/reference/deleteOperatorWithBooleanType.js +++ b/tests/baselines/reference/deleteOperatorWithBooleanType.js @@ -39,6 +39,7 @@ delete objA.a; delete M.n; //// [deleteOperatorWithBooleanType.js] +// delete operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsBoolean1 = delete BOOLEAN; +// boolean type literal var ResultIsBoolean2 = delete true; var ResultIsBoolean3 = delete { x: true, y: false }; +// boolean type expressions var ResultIsBoolean4 = delete objA.a; var ResultIsBoolean5 = delete M.n; var ResultIsBoolean6 = delete foo(); var ResultIsBoolean7 = delete A.foo(); +// multiple delete operator var ResultIsBoolean8 = delete delete BOOLEAN; delete true; delete BOOLEAN; diff --git a/tests/baselines/reference/deleteOperatorWithEnumType.js b/tests/baselines/reference/deleteOperatorWithEnumType.js index fd5e1e674f6..7d1398ce7ad 100644 --- a/tests/baselines/reference/deleteOperatorWithEnumType.js +++ b/tests/baselines/reference/deleteOperatorWithEnumType.js @@ -34,10 +34,13 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsBoolean1 = delete ENUM; var ResultIsBoolean2 = delete ENUM1; +// enum type expressions var ResultIsBoolean3 = delete ENUM1[0]; var ResultIsBoolean4 = delete (ENUM[0] + ENUM1[1]); +// multiple delete operators var ResultIsBoolean5 = delete delete ENUM; var ResultIsBoolean6 = delete delete delete (ENUM[0] + ENUM1[1]); delete ENUM; diff --git a/tests/baselines/reference/deleteOperatorWithNumberType.js b/tests/baselines/reference/deleteOperatorWithNumberType.js index 7b6cdcb962b..6c5a4a6c449 100644 --- a/tests/baselines/reference/deleteOperatorWithNumberType.js +++ b/tests/baselines/reference/deleteOperatorWithNumberType.js @@ -46,6 +46,7 @@ delete M.n; delete objA.a, M.n; //// [deleteOperatorWithNumberType.js] +// delete operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -64,19 +65,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsBoolean1 = delete NUMBER; var ResultIsBoolean2 = delete NUMBER1; +// number type literal var ResultIsBoolean3 = delete 1; var ResultIsBoolean4 = delete { x: 1, y: 2 }; var ResultIsBoolean5 = delete { x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsBoolean6 = delete objA.a; var ResultIsBoolean7 = delete M.n; var ResultIsBoolean8 = delete NUMBER1[0]; var ResultIsBoolean9 = delete foo(); var ResultIsBoolean10 = delete A.foo(); var ResultIsBoolean11 = delete (NUMBER + NUMBER); +// multiple delete operator var ResultIsBoolean12 = delete delete NUMBER; var ResultIsBoolean13 = delete delete delete (NUMBER + NUMBER); delete 1; diff --git a/tests/baselines/reference/deleteOperatorWithStringType.js b/tests/baselines/reference/deleteOperatorWithStringType.js index 65a1ed5ef18..3697e04c3d1 100644 --- a/tests/baselines/reference/deleteOperatorWithStringType.js +++ b/tests/baselines/reference/deleteOperatorWithStringType.js @@ -45,6 +45,7 @@ delete foo(); delete objA.a,M.n; //// [deleteOperatorWithStringType.js] +// delete operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -63,13 +64,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsBoolean1 = delete STRING; var ResultIsBoolean2 = delete STRING1; +// string type literal var ResultIsBoolean3 = delete ""; var ResultIsBoolean4 = delete { x: "", y: "" }; var ResultIsBoolean5 = delete { x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsBoolean6 = delete objA.a; var ResultIsBoolean7 = delete M.n; var ResultIsBoolean8 = delete STRING1[0]; @@ -77,6 +81,7 @@ var ResultIsBoolean9 = delete foo(); var ResultIsBoolean10 = delete A.foo(); var ResultIsBoolean11 = delete (STRING + STRING); var ResultIsBoolean12 = delete STRING.charAt(0); +// multiple delete operator var ResultIsBoolean13 = delete delete STRING; var ResultIsBoolean14 = delete delete delete (STRING + STRING); delete ""; diff --git a/tests/baselines/reference/duplicateAnonymousInners1.js b/tests/baselines/reference/duplicateAnonymousInners1.js index 58b6aa476c9..ccb950d330e 100644 --- a/tests/baselines/reference/duplicateAnonymousInners1.js +++ b/tests/baselines/reference/duplicateAnonymousInners1.js @@ -38,6 +38,7 @@ var Foo; } return Inner; })(); + // Inner should show up in intellisense Foo.Outer = 0; })(Foo || (Foo = {})); var Foo; diff --git a/tests/baselines/reference/duplicateVarAndImport.js b/tests/baselines/reference/duplicateVarAndImport.js index 245ed733a44..38148c6ce53 100644 --- a/tests/baselines/reference/duplicateVarAndImport.js +++ b/tests/baselines/reference/duplicateVarAndImport.js @@ -6,4 +6,5 @@ module M { } import a = M; //// [duplicateVarAndImport.js] +// no error since module is not instantiated var a; diff --git a/tests/baselines/reference/duplicateVarAndImport2.js b/tests/baselines/reference/duplicateVarAndImport2.js index b0c05f254a6..42d500d588a 100644 --- a/tests/baselines/reference/duplicateVarAndImport2.js +++ b/tests/baselines/reference/duplicateVarAndImport2.js @@ -5,6 +5,7 @@ module M { export var x = 1; } import a = M; //// [duplicateVarAndImport2.js] +// error since module is instantiated var a; var M; (function (M) { diff --git a/tests/baselines/reference/duplicateVariablesWithAny.js b/tests/baselines/reference/duplicateVariablesWithAny.js index 44b52ed04d1..c21bef01770 100644 --- a/tests/baselines/reference/duplicateVariablesWithAny.js +++ b/tests/baselines/reference/duplicateVariablesWithAny.js @@ -18,6 +18,7 @@ var z: any; var z; // ok //// [duplicateVariablesWithAny.js] +// They should have to be the same even when one of the types is 'any' var x; var x = 2; var y = ""; diff --git a/tests/baselines/reference/emitBOM.js b/tests/baselines/reference/emitBOM.js index c1616f6386d..f243e715991 100644 --- a/tests/baselines/reference/emitBOM.js +++ b/tests/baselines/reference/emitBOM.js @@ -4,7 +4,8 @@ var x; //// [emitBOM.js] -var x; +// JS and d.ts output should have a BOM but not the sourcemap +var x; //# sourceMappingURL=emitBOM.js.map //// [emitBOM.d.ts] diff --git a/tests/baselines/reference/emitBOM.js.map b/tests/baselines/reference/emitBOM.js.map index 46a584bf79d..af5fd260813 100644 --- a/tests/baselines/reference/emitBOM.js.map +++ b/tests/baselines/reference/emitBOM.js.map @@ -1,2 +1,2 @@ //// [emitBOM.js.map] -{"version":3,"file":"emitBOM.js","sourceRoot":"","sources":["emitBOM.ts"],"names":[],"mappings":"AAEA,IAAI,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"emitBOM.js","sourceRoot":"","sources":["emitBOM.ts"],"names":[],"mappings":"AAEA,AADA,6DAA6D;IACzD,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/emitBOM.sourcemap.txt b/tests/baselines/reference/emitBOM.sourcemap.txt index 19dd3247a7b..cd49155d24f 100644 --- a/tests/baselines/reference/emitBOM.sourcemap.txt +++ b/tests/baselines/reference/emitBOM.sourcemap.txt @@ -8,21 +8,30 @@ sources: emitBOM.ts emittedFile:tests/cases/compiler/emitBOM.js sourceFile:emitBOM.ts ------------------------------------------------------------------- ->>>var x; +>>>// JS and d.ts output should have a BOM but not the sourcemap 1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > >// JS and d.ts output should have a BOM but not the sourcemap > -2 >var -3 > x -4 > ; +2 > +3 >// JS and d.ts output should have a BOM but not the sourcemap 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 6) Source(3, 6) + SourceIndex(0) -4 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) +2 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 62) Source(2, 62) + SourceIndex(0) +--- +>>>var x; +1 >^^^^ +2 > ^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >var +2 > x +3 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(2, 7) Source(3, 7) + SourceIndex(0) --- >>>//# sourceMappingURL=emitBOM.js.map \ No newline at end of file diff --git a/tests/baselines/reference/emitPreComments.js b/tests/baselines/reference/emitPreComments.js index 4b70720cd5e..5a79a430175 100644 --- a/tests/baselines/reference/emitPreComments.js +++ b/tests/baselines/reference/emitPreComments.js @@ -31,4 +31,5 @@ var y = 10; //// [emitPreComments.js] +// This is pre comment var y = 10; diff --git a/tests/baselines/reference/enumBasics.js b/tests/baselines/reference/enumBasics.js index 3cf1ca50d95..10ef73e8d27 100644 --- a/tests/baselines/reference/enumBasics.js +++ b/tests/baselines/reference/enumBasics.js @@ -87,10 +87,13 @@ var E1; E1[E1["B"] = 1] = "B"; E1[E1["C"] = 2] = "C"; })(E1 || (E1 = {})); +// Enum type is a subtype of Number var x = 0 /* A */; +// Enum object type is anonymous with properties of the enum type and numeric indexer var e = E1; var e; var e; +// Reverse mapping of enum returns string name of property var s = E1[0 /* A */]; var s; var E2; @@ -136,6 +139,8 @@ var E9; E9[E9["A"] = 0] = "A"; E9[E9["B"] = E9.A] = "B"; })(E9 || (E9 = {})); +// (refer to .js to validate) +// Enum constant members are propagated var doNotPropagate = [ E8.B, E7.A, @@ -144,6 +149,7 @@ var doNotPropagate = [ E3.Y, E3.Z ]; +// Enum computed members are not propagated var doPropagate = [ 0 /* A */, E9.B, diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index f68e540cee4..d562b825ab0 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -120,6 +120,17 @@ l\u0061bel4: } //// [escapedIdentifiers.js] +/* + 0 .. \u0030 + 9 .. \u0039 + + A .. \u0041 + Z .. \u005a + + a .. \u0061 + z .. \u00za +*/ +// var decl var \u0061 = 1; a++; \u0061++; diff --git a/tests/baselines/reference/everyTypeWithInitializer.js b/tests/baselines/reference/everyTypeWithInitializer.js index 59b00b2c37c..74904a5ea30 100644 --- a/tests/baselines/reference/everyTypeWithInitializer.js +++ b/tests/baselines/reference/everyTypeWithInitializer.js @@ -91,4 +91,5 @@ var aLambda = function (x) { return 2; }; var aModule = M; var aClassInModule = new M.A(); var aFunctionInModule = M.F2; +// no initializer or annotation, so this is an 'any' var x; diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index 0fd36aa5d8f..ad34855a97b 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -46,6 +46,7 @@ var foo; }; return C2; })(); + // None of the types are exported, so per section 10.3, should all be errors foo.e; foo.f; foo.g; diff --git a/tests/baselines/reference/functionCalls.js b/tests/baselines/reference/functionCalls.js index 66ec8938c81..a2a938b2298 100644 --- a/tests/baselines/reference/functionCalls.js +++ b/tests/baselines/reference/functionCalls.js @@ -37,6 +37,7 @@ func(); //// [functionCalls.js] +// Invoke function call on value of type 'any' with no type arguments var anyVar; anyVar(0); anyVar(''); @@ -50,6 +51,8 @@ subFunc(); subFunc(0); subFunc(''); subFunc(); +// Invoke function call on value of type Function with no call signatures with type arguments +// These should be errors var func; func(0); func(''); diff --git a/tests/baselines/reference/functionImplementationErrors.js b/tests/baselines/reference/functionImplementationErrors.js index 3d1f750bb4c..257f12326c1 100644 --- a/tests/baselines/reference/functionImplementationErrors.js +++ b/tests/baselines/reference/functionImplementationErrors.js @@ -45,6 +45,7 @@ undefined === function (): number { //// [functionImplementationErrors.js] +// FunctionExpression with no return type annotation with multiple return statements with unrelated types var f1 = function () { return ''; return 3; @@ -57,6 +58,7 @@ var f3 = function () { return ''; return 3; }; +// FunctionExpression with no return type annotation with return branch of number[] and other of string[] var f4 = function () { if (true) { return ['']; diff --git a/tests/baselines/reference/functionImplementations.js b/tests/baselines/reference/functionImplementations.js index 9693def8c54..68707776146 100644 --- a/tests/baselines/reference/functionImplementations.js +++ b/tests/baselines/reference/functionImplementations.js @@ -131,14 +131,17 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// FunctionExpression with no return type annotation and no return statement returns void var v = function () { }(); +// FunctionExpression f with no return type annotation and directly references f in its body returns any var a = function f() { return f; }; var a = function f() { return f(); }; +// FunctionExpression f with no return type annotation and indirectly references f in its body returns any var a = function f() { var x = f; return x; @@ -160,23 +163,29 @@ function rec4() { var n; var n = rec3(); var n = rec4(); +// FunctionExpression with no return type annotation and returns a number var n = function () { return 3; }(); +// FunctionExpression with no return type annotation and returns null var nu = null; var nu = function () { return null; }(); +// FunctionExpression with no return type annotation and returns undefined var un = undefined; var un = function () { return undefined; }(); +// FunctionExpression with no return type annotation and returns a type parameter type var n = function (x) { return x; }(4); +// FunctionExpression with no return type annotation and returns a constrained type parameter type var n = function (x) { return x; }(4); +// FunctionExpression with no return type annotation with multiple return statements with identical types var n = function () { return 3; return 5; @@ -198,6 +207,7 @@ var b = function () { return new Base(); return new Derived(); }(); +// FunctionExpression with no return type annotation with multiple return statements with one a recursive call var a = function f() { return new Base(); return new Derived(); diff --git a/tests/baselines/reference/functionLiteral.js b/tests/baselines/reference/functionLiteral.js index 8e5e382b4a6..8ee515e8f8c 100644 --- a/tests/baselines/reference/functionLiteral.js +++ b/tests/baselines/reference/functionLiteral.js @@ -14,6 +14,7 @@ var z: { new (x: number): number; }; var z: new (x: number) => number; //// [functionLiteral.js] +// basic valid forms of function literals var x = function () { return 1; }; var x; var y; diff --git a/tests/baselines/reference/functionLiteralForOverloads.js b/tests/baselines/reference/functionLiteralForOverloads.js index 2db12d4fb97..1a0bc874c48 100644 --- a/tests/baselines/reference/functionLiteralForOverloads.js +++ b/tests/baselines/reference/functionLiteralForOverloads.js @@ -22,6 +22,7 @@ var f4: { } = (x) => x; //// [functionLiteralForOverloads.js] +// basic uses of function literals with overloads var f = function (x) { return x; }; var f2 = function (x) { return x; }; var f3 = function (x) { return x; }; diff --git a/tests/baselines/reference/functionLiterals.js b/tests/baselines/reference/functionLiterals.js index 75b210613ee..65dc491eb35 100644 --- a/tests/baselines/reference/functionLiterals.js +++ b/tests/baselines/reference/functionLiterals.js @@ -58,6 +58,7 @@ c2.func5 = c2.func4; //// [functionLiterals.js] +// PropName(ParamList):ReturnType is equivalent to PropName: { (ParamList): ReturnType } var b; b.func1 = b.func2; b.func1 = b.func3; @@ -68,6 +69,7 @@ b.func3 = b.func2; var c; c.func4 = c.func5; c.func5 = c.func4; +// generic versions var b2; b2.func1 = b2.func2; b2.func1 = b2.func3; diff --git a/tests/baselines/reference/functionWithMultipleReturnStatements2.js b/tests/baselines/reference/functionWithMultipleReturnStatements2.js index aacd83b1513..c3476a31abe 100644 --- a/tests/baselines/reference/functionWithMultipleReturnStatements2.js +++ b/tests/baselines/reference/functionWithMultipleReturnStatements2.js @@ -134,6 +134,13 @@ function f6(x) { return null; } } +//function f7(x: T, y: U) { +// if (true) { +// return x; +// } else { +// return y; +// } +//} var a; var b; function f9() { diff --git a/tests/baselines/reference/genericArray1.js b/tests/baselines/reference/genericArray1.js index b636707f04b..68f0d8e1552 100644 --- a/tests/baselines/reference/genericArray1.js +++ b/tests/baselines/reference/genericArray1.js @@ -15,6 +15,17 @@ var lengths = ["a", "b", "c"].map(x => x.length); //// [genericArray1.js] +/* +var n: number[]; + +interface Array { +map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; +} + +interface String{ + length: number; +} +*/ var lengths = ["a", "b", "c"].map(function (x) { return x.length; }); diff --git a/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js b/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js index eed8b43a608..0ef7d0546e3 100644 --- a/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js +++ b/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js @@ -31,6 +31,7 @@ function foo(arg) { } var arg; var r = foo(arg); +// more args not allowed var arg2; var r2 = foo(arg2); var arg3; @@ -38,6 +39,7 @@ var r3 = foo(arg3); function foo2(arg) { return new arg.cb(null, null); } +// fewer args ok var r4 = foo(arg); var arg4; var r6 = foo(arg4); diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js index 74e5d301b77..cd61b1d69f5 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js @@ -21,6 +21,7 @@ var b: { var r2 = foo4(b); // T is {} (candidates boolean and {}), U is any (candidates any and {}) //// [genericCallWithFunctionTypedArguments3.js] +// No inference is made from function typed arguments which have multiple call signatures var a; function foo4(cb) { var u; diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js b/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js index 4e4703615bb..f875c99fcc6 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js @@ -28,11 +28,13 @@ function foo(arg) { } var arg = { cb: function (x) { return ''; } }; var r = foo(arg); +// more args not allowed var r2 = foo({ cb: function (x, y) { return ''; } }); var r3 = foo({ cb: function (x, y) { return ''; } }); function foo2(arg) { return arg.cb(null, null); } +// fewer args ok var r4 = foo(arg); var r5 = foo({ cb: function (x) { return ''; } }); var r6 = foo({ cb: function (x) { return ''; } }); diff --git a/tests/baselines/reference/genericCallWithGenericSignatureArguments.js b/tests/baselines/reference/genericCallWithGenericSignatureArguments.js index 5084f94f66d..741225fe848 100644 --- a/tests/baselines/reference/genericCallWithGenericSignatureArguments.js +++ b/tests/baselines/reference/genericCallWithGenericSignatureArguments.js @@ -47,6 +47,7 @@ function foo(a, b) { var r; return r; } +//var r1 = foo((x: number) => 1, (x: string) => ''); // error var r1b = foo(function (x) { return 1; }, function (x) { return ''; }); var r2 = foo(function (x) { return null; }, function (x) { return ''; }); var r3 = foo(function (x) { return 1; }, function (x) { return null; }); diff --git a/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js b/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js index e266159d289..1bc5c4217e5 100644 --- a/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js +++ b/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js @@ -44,6 +44,7 @@ function foo(a, b) { var r1 = foo(function (x) { return 1; }, function (x) { return ''; }); function other2(x) { var r7 = foo(function (a) { return a; }, function (b) { return b; }); + // BUG 835518 var r9 = r7(new Date()); var r10 = r7(1); } diff --git a/tests/baselines/reference/genericCallWithObjectLiteralArgs.js b/tests/baselines/reference/genericCallWithObjectLiteralArgs.js index f942b1ff256..7ff09340d71 100644 --- a/tests/baselines/reference/genericCallWithObjectLiteralArgs.js +++ b/tests/baselines/reference/genericCallWithObjectLiteralArgs.js @@ -15,5 +15,6 @@ function foo(x) { } var r = foo({ bar: 1, baz: '' }); var r2 = foo({ bar: 1, baz: 1 }); +// BUG 835724 var r3 = foo({ bar: foo, baz: foo }); var r4 = foo({ bar: 1, baz: '' }); diff --git a/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js b/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js index 4bf498f8146..b731e5fe942 100644 --- a/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js +++ b/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js @@ -12,6 +12,7 @@ function foo(n, m) { return m; } var x = foo({ x: 3, y: "" }, 4); +// these are all errors var x2 = foo({ x: 3, y: "" }, 4); var x3 = foo({ x: 3, y: "" }, 4); var x4 = foo({ x: "", y: 4 }, ""); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js index 66ecc4326e1..1658fd142ef 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js @@ -77,6 +77,7 @@ var r3 = f2({ x: new Derived(), y: new Derived2() }); function f3(y, x) { return y(null); } +// all ok - T gets fixed too early, but then defaults to Base and everything works out var r4 = f3(function (x) { return x; }, new Base()); var r5 = f3(function (x) { return x; }, new Derived()); var r6 = f3(function (x) { return x; }, null); diff --git a/tests/baselines/reference/genericPrototypeProperty.js b/tests/baselines/reference/genericPrototypeProperty.js index 64e03a8c2d7..c38cdb753a7 100644 --- a/tests/baselines/reference/genericPrototypeProperty.js +++ b/tests/baselines/reference/genericPrototypeProperty.js @@ -19,5 +19,6 @@ var C = (function () { return C; })(); var r = C.prototype; +// should be any var r2 = r.x; var r3 = r.foo(null); diff --git a/tests/baselines/reference/genericsAndHigherOrderFunctions.js b/tests/baselines/reference/genericsAndHigherOrderFunctions.js index d99164bd5f6..1086bd78c54 100644 --- a/tests/baselines/reference/genericsAndHigherOrderFunctions.js +++ b/tests/baselines/reference/genericsAndHigherOrderFunctions.js @@ -18,5 +18,6 @@ var foo: (g: (x: K) => N) => (f: (_: N) => (_: R) => R) => h(combine(f)(g)) //// [genericsAndHigherOrderFunctions.js] +// no errors expected var combine = function (f) { return function (g) { return function (x) { return f(g(x)); }; }; }; var foo = function (g) { return function (h) { return function (f) { return h(combine(f)(g)); }; }; }; diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.js b/tests/baselines/reference/heterogeneousArrayLiterals.js index f16c398e398..048c88e04bb 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.js +++ b/tests/baselines/reference/heterogeneousArrayLiterals.js @@ -138,6 +138,7 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [1, '']; var b = [1, null]; var c = [1, '', null]; @@ -189,6 +190,7 @@ var Derived; })(Derived || (Derived = {})); var WithContextualType; (function (WithContextualType) { + // no errors var a = [derived, derived2]; var b = [null]; var c = []; diff --git a/tests/baselines/reference/ifDoWhileStatements.js b/tests/baselines/reference/ifDoWhileStatements.js index 3597a21498d..13db187c7d8 100644 --- a/tests/baselines/reference/ifDoWhileStatements.js +++ b/tests/baselines/reference/ifDoWhileStatements.js @@ -302,6 +302,7 @@ while (new D()) { } do { } while (new D()); +// references var a = true; if (a) { } diff --git a/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js b/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js index 23184bcd69c..33dad54f8ea 100644 --- a/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js +++ b/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js @@ -18,6 +18,7 @@ var lambda10 = function temp1() { return 5; } //// [implicitAnyDeclareFunctionExprWithoutFormalType.js] +// these should be errors for implicit any parameter var lambda = function (l1) { }; var lambd2 = function (ll1, ll2) { @@ -27,6 +28,7 @@ var lamda3 = function myLambda3(myParam) { var lamda4 = function () { return null; }; +// these should be error for implicit any return type var lambda5 = function temp() { return null; }; @@ -39,6 +41,7 @@ var lambda7 = function temp() { var lambda8 = function () { return undefined; }; +// this shouldn't be an error var lambda9 = function () { return 5; }; diff --git a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js index 274c263d4f2..8e9f91fa138 100644 --- a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js +++ b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js @@ -23,11 +23,13 @@ var C = (function () { } return C; })(); +// this should be an error var x; var x1; var x11; var x2; var x3; +// this should not be an error var bar; var foo; var x4; diff --git a/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js b/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js index 514d9c1dd76..fd2bb9e103f 100644 --- a/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js +++ b/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js @@ -12,11 +12,13 @@ declare var bar2: any; var x1: any; var y1 = new x1; //// [implicitAnyDeclareVariablesWithoutTypeAndInit.js] +// this should be an error var x; function func(k) { } ; func(x); +// this shouldn't be an error var bar = 3; var bar1; var x1; diff --git a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js index f5dbea07b93..eeb13957cdf 100644 --- a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js +++ b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js @@ -36,6 +36,7 @@ var newC2 = new C([], null) //// [implicitAnyFunctionInvocationWithAnyArguements.js] +// this should be errors var arg0 = null; var anyArray = [null, undefined]; var objL; diff --git a/tests/baselines/reference/implicitAnyWidenToAny.js b/tests/baselines/reference/implicitAnyWidenToAny.js index cad9ade340e..75388d5d267 100644 --- a/tests/baselines/reference/implicitAnyWidenToAny.js +++ b/tests/baselines/reference/implicitAnyWidenToAny.js @@ -28,6 +28,7 @@ var obj1 = anyReturnFunc(); //// [implicitAnyWidenToAny.js] +// these should be errors var x = null; var x1 = undefined; var widenArray = [null, undefined]; diff --git a/tests/baselines/reference/inOperatorWithInvalidOperands.js b/tests/baselines/reference/inOperatorWithInvalidOperands.js index d8c99c072f8..eb117aafde3 100644 --- a/tests/baselines/reference/inOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/inOperatorWithInvalidOperands.js @@ -46,6 +46,8 @@ var E; E[E["a"] = 0] = "a"; })(E || (E = {})); var x; +// invalid left operands +// the left operand is required to be of type Any, the String primitive type, or the Number primitive type var a1; var a2; var a3; @@ -59,6 +61,8 @@ var ra6 = undefined in x; var ra7 = 0 /* a */ in x; var ra8 = false in x; var ra9 = {} in x; +// invalid right operands +// the right operand is required to be of type Any, an object type, or a type parameter type var b1; var b2; var b3; @@ -72,4 +76,5 @@ var rb6 = x in false; var rb7 = x in ''; var rb8 = x in null; var rb9 = x in undefined; +// both operands are invalid var rc1 = {} in ''; diff --git a/tests/baselines/reference/inOperatorWithValidOperands.js b/tests/baselines/reference/inOperatorWithValidOperands.js index b9b40d75f55..16df96f22fb 100644 --- a/tests/baselines/reference/inOperatorWithValidOperands.js +++ b/tests/baselines/reference/inOperatorWithValidOperands.js @@ -25,6 +25,8 @@ function foo(t: T) { //// [inOperatorWithValidOperands.js] var x; +// valid left operands +// the left operand is required to be of type Any, the String primitive type, or the Number primitive type var a1; var a2; var ra1 = x in x; @@ -32,6 +34,8 @@ var ra2 = a1 in x; var ra3 = a2 in x; var ra4 = '' in x; var ra5 = 0 in x; +// valid right operands +// the right operand is required to be of type Any, an object type, or a type parameter type var b1; var rb1 = x in b1; var rb2 = x in {}; diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js index f7b9fb4effc..551c54feeda 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js @@ -49,6 +49,7 @@ objA.a++; M.n++; //// [incrementOperatorWithAnyOtherType.js] +// ++ operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -63,10 +64,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = ++ANY; var ResultIsNumber2 = ++ANY1; var ResultIsNumber3 = ANY1++; var ResultIsNumber4 = ANY1++; +// expressions var ResultIsNumber5 = ++ANY2[0]; var ResultIsNumber6 = ++obj.x; var ResultIsNumber7 = ++obj.y; diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js index 928f0a59e4d..fb9c5fd1e60 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -70,6 +70,7 @@ ANY2++; ++ANY2[0]++; //// [incrementOperatorWithAnyOtherTypeInvalidOperations.js] +// ++ operator on any type var ANY1; var ANY2 = [1, 2]; var obj; @@ -93,6 +94,7 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = ++ANY2; var ResultIsNumber2 = ++A; var ResultIsNumber3 = ++M; @@ -103,12 +105,14 @@ var ResultIsNumber7 = A++; var ResultIsNumber8 = M++; var ResultIsNumber9 = obj++; var ResultIsNumber10 = obj1++; +// any type literal var ResultIsNumber11 = ++{}; var ResultIsNumber12 = ++null; var ResultIsNumber13 = ++undefined; var ResultIsNumber14 = null++; var ResultIsNumber15 = {}++; var ResultIsNumber16 = undefined++; +// any type expressions var ResultIsNumber17 = ++foo(); var ResultIsNumber18 = ++A.foo(); var ResultIsNumber19 = ++(null + undefined); diff --git a/tests/baselines/reference/incrementOperatorWithEnumType.js b/tests/baselines/reference/incrementOperatorWithEnumType.js index 34faaf2201a..cd92b6b1e5e 100644 --- a/tests/baselines/reference/incrementOperatorWithEnumType.js +++ b/tests/baselines/reference/incrementOperatorWithEnumType.js @@ -20,6 +20,7 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// expression var ResultIsNumber1 = ++ENUM1[1]; var ResultIsNumber2 = ENUM1[1]++; ++ENUM1[1]; diff --git a/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js index fa6e778c235..23149c23874 100644 --- a/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js @@ -34,10 +34,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = ++ENUM; var ResultIsNumber2 = ++ENUM1; var ResultIsNumber3 = ENUM++; var ResultIsNumber4 = ENUM1++; +// enum type expressions var ResultIsNumber5 = ++(ENUM[1] + ENUM[2]); var ResultIsNumber6 = (ENUM[1] + ENUM[2])++; ++ENUM; diff --git a/tests/baselines/reference/incrementOperatorWithNumberType.js b/tests/baselines/reference/incrementOperatorWithNumberType.js index 90c23de9adc..e78892077c0 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberType.js +++ b/tests/baselines/reference/incrementOperatorWithNumberType.js @@ -40,6 +40,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithNumberType.js] +// ++ operator on number type var NUMBER; var NUMBER1 = [1, 2]; var A = (function () { @@ -52,8 +53,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = ++NUMBER; var ResultIsNumber2 = NUMBER++; +// expressions var ResultIsNumber3 = ++objA.a; var ResultIsNumber4 = ++M.n; var ResultIsNumber5 = objA.a++; diff --git a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js index a328d49cf63..6319774d505 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js @@ -47,6 +47,7 @@ NUMBER1++; foo()++; //// [incrementOperatorWithNumberTypeInvalidOperations.js] +// ++ operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -65,8 +66,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +//number type var var ResultIsNumber1 = ++NUMBER1; var ResultIsNumber2 = NUMBER1++; +// number type literal var ResultIsNumber3 = ++1; var ResultIsNumber4 = ++{ x: 1, y: 2 }; var ResultIsNumber5 = ++{ x: 1, y: function (n) { @@ -77,6 +80,7 @@ var ResultIsNumber7 = { x: 1, y: 2 }++; var ResultIsNumber8 = { x: 1, y: function (n) { return n; } }++; +// number type expressions var ResultIsNumber9 = ++foo(); var ResultIsNumber10 = ++A.foo(); var ResultIsNumber11 = ++(NUMBER + NUMBER); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js index f321ba1f238..a409b0bc95b 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js @@ -55,6 +55,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithUnsupportedBooleanType.js] +// ++ operator on boolean type var BOOLEAN; function foo() { return true; @@ -72,8 +73,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = ++BOOLEAN; var ResultIsNumber2 = BOOLEAN++; +// boolean type literal var ResultIsNumber3 = ++true; var ResultIsNumber4 = ++{ x: true, y: false }; var ResultIsNumber5 = ++{ x: true, y: function (n) { @@ -84,6 +87,7 @@ var ResultIsNumber7 = { x: true, y: false }++; var ResultIsNumber8 = { x: true, y: function (n) { return n; } }++; +// boolean type expressions var ResultIsNumber9 = ++objA.a; var ResultIsNumber10 = ++M.n; var ResultIsNumber11 = ++foo(); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js index 1e426c964a1..c932542c3fb 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js @@ -66,6 +66,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithUnsupportedStringType.js] +// ++ operator on string type var STRING; var STRING1 = ["", ""]; function foo() { @@ -84,10 +85,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = ++STRING; var ResultIsNumber2 = ++STRING1; var ResultIsNumber3 = STRING++; var ResultIsNumber4 = STRING1++; +// string type literal var ResultIsNumber5 = ++""; var ResultIsNumber6 = ++{ x: "", y: "" }; var ResultIsNumber7 = ++{ x: "", y: function (s) { @@ -98,6 +101,7 @@ var ResultIsNumber9 = { x: "", y: "" }++; var ResultIsNumber10 = { x: "", y: function (s) { return s; } }++; +// string type expressions var ResultIsNumber11 = ++objA.a; var ResultIsNumber12 = ++M.n; var ResultIsNumber13 = ++STRING1[0]; diff --git a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js index 1894150ac27..1300e52e77b 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js +++ b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js @@ -35,12 +35,14 @@ s = map("", ("", identity)); //// [inferentialTypingWithFunctionTypeSyntacticScenarios.js] var s; +// dotted name var dottedIdentity = { x: identity }; s = map("", dottedIdentity.x); s = map("", dottedIdentity['x']); s = map("", (function () { return identity; })()); var ic; s = map("", new ic()); +// assignment var t; s = map("", t = identity); s = map("", identity); diff --git a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js index 54089541fd3..affae8a2f02 100644 --- a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js +++ b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js @@ -40,6 +40,7 @@ var x5: void = b('A0'); var b; b('foo').charAt(0); var b; +// non of these lines should error var x1 = b('B2'); var x2 = b('B1'); var x3 = b('A2'); diff --git a/tests/baselines/reference/initializersWidened.js b/tests/baselines/reference/initializersWidened.js index d16b6ec6889..fce0750a600 100644 --- a/tests/baselines/reference/initializersWidened.js +++ b/tests/baselines/reference/initializersWidened.js @@ -5,5 +5,6 @@ var x = null; var y = undefined; //// [initializersWidened.js] +// these are widened to any at the point of assignment var x = null; var y = undefined; diff --git a/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js b/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js index af530635e5e..ebe38a18f82 100644 --- a/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js +++ b/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js @@ -17,5 +17,7 @@ takesCallback( function takesCallback(callback) { } takesCallback(function inner(n) { + // this line should raise an error + // otherwise, there's a bug in overload resolution / partial typechecking var k = 10; }); diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js index 0089ac167bc..8309b7e7c01 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js @@ -55,6 +55,8 @@ var C = (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 var a1; var a2; var a3; @@ -68,6 +70,8 @@ var ra6 = true instanceof x; var ra7 = '' instanceof x; var ra8 = null instanceof x; var ra9 = undefined instanceof x; +// invalid right operand +// the right operand to be of type Any or a subtype of the 'Function' interface type var b1; var b2; var b3; @@ -85,4 +89,5 @@ var rb7 = x instanceof ''; var rb8 = x instanceof o1; var rb9 = x instanceof o2; var rb10 = x instanceof o3; +// both operands are invalid var rc1 = '' instanceof {}; diff --git a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js index 5a83ab54f06..3fc0c7476d5 100644 --- a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js +++ b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js @@ -28,4 +28,5 @@ var D = (function () { } return D; })(); +// BUG 794238 var d = new D(); diff --git a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js index 5faaaea027d..8298dd04250 100644 --- a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js +++ b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js @@ -31,4 +31,5 @@ var r = new Foo(); var f; var r2 = new f(); var a; +// BUG 790977 var r2 = new a(); diff --git a/tests/baselines/reference/instantiatedModule.js b/tests/baselines/reference/instantiatedModule.js index ab5081c7797..ec5ae773f35 100644 --- a/tests/baselines/reference/instantiatedModule.js +++ b/tests/baselines/reference/instantiatedModule.js @@ -65,6 +65,7 @@ var M; (function (M) { M.Point = 1; })(M || (M = {})); +// primary expression var m; var m = M; var a1; @@ -86,6 +87,7 @@ var M2; })(M2 || (M2 = {})); var m2; var m2 = M2; +// static side of the class var a2; var a2 = m2.Point; var a2 = M2.Point; diff --git a/tests/baselines/reference/interfaceAssignmentCompat.js b/tests/baselines/reference/interfaceAssignmentCompat.js index d6ff0978735..d85dae45159 100644 --- a/tests/baselines/reference/interfaceAssignmentCompat.js +++ b/tests/baselines/reference/interfaceAssignmentCompat.js @@ -76,6 +76,7 @@ var M; x[1] = { color: 1 /* Blue */ }; x[2] = { color: 0 /* Green */ }; x = x.sort(CompareYeux); + // type of z inferred from specialized array type var z = x.sort(CompareEyes); for (var i = 0, len = z.length; i < len; i++) { result += ((Color._map[z[i].color]) + "\r\n"); diff --git a/tests/baselines/reference/interfaceImplementation1.js b/tests/baselines/reference/interfaceImplementation1.js index 6a7687e45f9..68c6fe5ad7e 100644 --- a/tests/baselines/reference/interfaceImplementation1.js +++ b/tests/baselines/reference/interfaceImplementation1.js @@ -64,6 +64,9 @@ var a = function () { return new C2(); }; new a(); +/*var b:I4 = C2; +new b(); +*/ var c; c[5]; c["foo"]; diff --git a/tests/baselines/reference/invalidImportAliasIdentifiers.js b/tests/baselines/reference/invalidImportAliasIdentifiers.js index c0b6092fd1e..2b31f5abebd 100644 --- a/tests/baselines/reference/invalidImportAliasIdentifiers.js +++ b/tests/baselines/reference/invalidImportAliasIdentifiers.js @@ -25,6 +25,7 @@ import i = I; //// [invalidImportAliasIdentifiers.js] +// none of these should work, since non are actually modules var V = 12; var C = (function () { function C() { diff --git a/tests/baselines/reference/invalidMultipleVariableDeclarations.js b/tests/baselines/reference/invalidMultipleVariableDeclarations.js index bf8261cbaa8..fe3d62c4ba5 100644 --- a/tests/baselines/reference/invalidMultipleVariableDeclarations.js +++ b/tests/baselines/reference/invalidMultipleVariableDeclarations.js @@ -93,6 +93,7 @@ var M; } M.F2 = F2; })(M || (M = {})); +// all of these are errors var a; var a = 1; var a = 'a string'; diff --git a/tests/baselines/reference/library_RegExpExecArraySlice.js b/tests/baselines/reference/library_RegExpExecArraySlice.js index f5a07524726..ae510e90dcb 100644 --- a/tests/baselines/reference/library_RegExpExecArraySlice.js +++ b/tests/baselines/reference/library_RegExpExecArraySlice.js @@ -6,6 +6,7 @@ regExpExecArrayValue.slice(0); regExpExecArrayValue.slice(0,1); //// [library_RegExpExecArraySlice.js] +// RegExpExecArray.slice can have zero, one, or two arguments var regExpExecArrayValue; regExpExecArrayValue.slice(); regExpExecArrayValue.slice(0); diff --git a/tests/baselines/reference/literals-negative.js b/tests/baselines/reference/literals-negative.js index a16e1524e8c..8dafcf0287c 100644 --- a/tests/baselines/reference/literals-negative.js +++ b/tests/baselines/reference/literals-negative.js @@ -12,6 +12,8 @@ if(null === isVoid()) { } //// [literals-negative.js] +// Type type of the null literal is the Null type. +// Null can be converted to anything except Void var n = (null); var s = (null); var b = (n); diff --git a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js index 555f6f95e6e..c1ec8aeffc4 100644 --- a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js @@ -60,6 +60,7 @@ var ResultIsBoolean21 = !!!(ANY + ANY1); !M.n; //// [logicalNotOperatorWithAnyOtherType.js] +// ! operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -84,14 +85,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsBoolean1 = !ANY1; var ResultIsBoolean2 = !ANY2; var ResultIsBoolean3 = !A; var ResultIsBoolean4 = !M; var ResultIsBoolean5 = !obj; var ResultIsBoolean6 = !obj1; +// any type literal var ResultIsBoolean7 = !undefined; var ResultIsBoolean8 = !null; +// any type expressions var ResultIsBoolean9 = !ANY2[0]; var ResultIsBoolean10 = !obj1.x; var ResultIsBoolean11 = !obj1.y; @@ -103,6 +107,7 @@ var ResultIsBoolean16 = !(ANY + ANY1); var ResultIsBoolean17 = !(null + undefined); var ResultIsBoolean18 = !(null + null); var ResultIsBoolean19 = !(undefined + undefined); +// multiple ! operators var ResultIsBoolean20 = !!ANY; var ResultIsBoolean21 = !!!(ANY + ANY1); !ANY; diff --git a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js index 9b7e774138f..4254153d304 100644 --- a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js @@ -39,6 +39,7 @@ var ResultIsBoolean = !!BOOLEAN; !M.n; //// [logicalNotOperatorWithBooleanType.js] +// ! operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsBoolean1 = !BOOLEAN; +// boolean type literal var ResultIsBoolean2 = !true; var ResultIsBoolean3 = !{ x: true, y: false }; +// boolean type expressions var ResultIsBoolean4 = !objA.a; var ResultIsBoolean5 = !M.n; var ResultIsBoolean6 = !foo(); var ResultIsBoolean7 = !A.foo(); +// multiple ! operators var ResultIsBoolean = !!BOOLEAN; !true; !BOOLEAN; diff --git a/tests/baselines/reference/logicalNotOperatorWithEnumType.js b/tests/baselines/reference/logicalNotOperatorWithEnumType.js index 2c5ddc04e58..7c32b423c18 100644 --- a/tests/baselines/reference/logicalNotOperatorWithEnumType.js +++ b/tests/baselines/reference/logicalNotOperatorWithEnumType.js @@ -33,9 +33,12 @@ var ENUM1; (function (ENUM1) { })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsBoolean1 = !ENUM; +// enum type expressions var ResultIsBoolean2 = !ENUM[1]; var ResultIsBoolean3 = !(ENUM[1] + ENUM[2]); +// multiple ! operators var ResultIsBoolean4 = !!ENUM; var ResultIsBoolean5 = !!!(ENUM[1] + ENUM[2]); !ENUM; diff --git a/tests/baselines/reference/logicalNotOperatorWithNumberType.js b/tests/baselines/reference/logicalNotOperatorWithNumberType.js index 6ab8b76a81e..6a7d82304ab 100644 --- a/tests/baselines/reference/logicalNotOperatorWithNumberType.js +++ b/tests/baselines/reference/logicalNotOperatorWithNumberType.js @@ -46,6 +46,7 @@ var ResultIsBoolean13 = !!!(NUMBER + NUMBER); !objA.a, M.n; //// [logicalNotOperatorWithNumberType.js] +// ! operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -64,19 +65,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsBoolean1 = !NUMBER; var ResultIsBoolean2 = !NUMBER1; +// number type literal var ResultIsBoolean3 = !1; var ResultIsBoolean4 = !{ x: 1, y: 2 }; var ResultIsBoolean5 = !{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsBoolean6 = !objA.a; var ResultIsBoolean7 = !M.n; var ResultIsBoolean8 = !NUMBER1[0]; var ResultIsBoolean9 = !foo(); var ResultIsBoolean10 = !A.foo(); var ResultIsBoolean11 = !(NUMBER + NUMBER); +// multiple ! operator var ResultIsBoolean12 = !!NUMBER; var ResultIsBoolean13 = !!!(NUMBER + NUMBER); !1; diff --git a/tests/baselines/reference/logicalNotOperatorWithStringType.js b/tests/baselines/reference/logicalNotOperatorWithStringType.js index e259741e2f4..120c21c2e29 100644 --- a/tests/baselines/reference/logicalNotOperatorWithStringType.js +++ b/tests/baselines/reference/logicalNotOperatorWithStringType.js @@ -45,6 +45,7 @@ var ResultIsBoolean14 = !!!(STRING + STRING); !objA.a,M.n; //// [logicalNotOperatorWithStringType.js] +// ! operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -63,13 +64,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsBoolean1 = !STRING; var ResultIsBoolean2 = !STRING1; +// string type literal var ResultIsBoolean3 = !""; var ResultIsBoolean4 = !{ x: "", y: "" }; var ResultIsBoolean5 = !{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsBoolean6 = !objA.a; var ResultIsBoolean7 = !M.n; var ResultIsBoolean8 = !STRING1[0]; @@ -77,6 +81,7 @@ var ResultIsBoolean9 = !foo(); var ResultIsBoolean10 = !A.foo(); var ResultIsBoolean11 = !(STRING + STRING); var ResultIsBoolean12 = !STRING.charAt(0); +// multiple ! operator var ResultIsBoolean13 = !!STRING; var ResultIsBoolean14 = !!!(STRING + STRING); !""; diff --git a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js index 7997ecb0f2b..64bdc871571 100644 --- a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js +++ b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js @@ -7,4 +7,8 @@ var r: { a: string } = { a: '', b: 123 } || { a: '', b: true }; //// [logicalOrExpressionIsContextuallyTyped.js] +// The || operator permits the operands to be of any type. +// If the || expression is contextually typed, the operands are contextually typed by the +// same type and the result is of the best common type of the contextual type and the two +// operand types. var r = { a: '', b: 123 } || { a: '', b: true }; diff --git a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js index 8de01245b31..73e1c33a4e0 100644 --- a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js +++ b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js @@ -11,5 +11,10 @@ var a: (a: string) => string; var r = a || ((a) => a.toLowerCase()); //// [logicalOrExpressionIsNotContextuallyTyped.js] +// The || operator permits the operands to be of any type. +// If the || expression is not contextually typed, the right operand is contextually typed +// by the type of the left operand and the result is of the best common type of the two +// operand types. var a; +// bug 786110 var r = a || (function (a) { return a.toLowerCase(); }); diff --git a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js index 0a246ea49b4..042d72db50b 100644 --- a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js +++ b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js @@ -32,6 +32,7 @@ function fn1(t, u) { } function fn2(t, u, v) { var r1 = t || u; + //var r2: T = t || u; var r3 = u || u; var r4 = u || u; var r5 = u || v; diff --git a/tests/baselines/reference/memberOverride.js b/tests/baselines/reference/memberOverride.js index aadeff78e8a..6191652131a 100644 --- a/tests/baselines/reference/memberOverride.js +++ b/tests/baselines/reference/memberOverride.js @@ -9,6 +9,8 @@ var x = { var n: number = x.a; //// [memberOverride.js] +// An object initialiser accepts the first definition for the same property with a different type signature +// Should compile, since the second declaration of a overrides the first var x = { a: "", a: 5 diff --git a/tests/baselines/reference/mergeThreeInterfaces.js b/tests/baselines/reference/mergeThreeInterfaces.js index e31395b5837..74da0a6c0f3 100644 --- a/tests/baselines/reference/mergeThreeInterfaces.js +++ b/tests/baselines/reference/mergeThreeInterfaces.js @@ -91,10 +91,14 @@ var M; (function (M) { var a; var r1 = a.foo; + // BUG 856491 var r2 = a.bar; + // BUG 856491 var r3 = a.baz; var b; var r4 = b.foo; + // BUG 856491 var r5 = b.bar; + // BUG 856491 var r6 = b.baz; })(M || (M = {})); diff --git a/tests/baselines/reference/mergeTwoInterfaces.js b/tests/baselines/reference/mergeTwoInterfaces.js index eb5bc7b621d..14194a9a138 100644 --- a/tests/baselines/reference/mergeTwoInterfaces.js +++ b/tests/baselines/reference/mergeTwoInterfaces.js @@ -68,8 +68,10 @@ var M; (function (M) { var a; var r1 = a.foo; + // BUG 856491 var r2 = a.bar; var b; var r3 = b.foo; + // BUG 856491 var r4 = b.bar; })(M || (M = {})); diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js index 70e8de4c62a..fab0f72dada 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js @@ -51,6 +51,7 @@ var M; (function (plop) { })(_plop.plop || (_plop.plop = {})); var plop = _plop.plop; + // Emit these references as follows var v1 = gunk; var v2 = buz; _plop.v3 = _plop.doom; diff --git a/tests/baselines/reference/methodSignaturesWithOverloads.js b/tests/baselines/reference/methodSignaturesWithOverloads.js index bbff03bcc75..7f80ecbb2d0 100644 --- a/tests/baselines/reference/methodSignaturesWithOverloads.js +++ b/tests/baselines/reference/methodSignaturesWithOverloads.js @@ -20,5 +20,6 @@ var c2: { }; //// [methodSignaturesWithOverloads.js] +// Object type literals permit overloads with optionality but they must match var c; var c2; diff --git a/tests/baselines/reference/methodSignaturesWithOverloads2.js b/tests/baselines/reference/methodSignaturesWithOverloads2.js index 95f642e6b54..63252090b2c 100644 --- a/tests/baselines/reference/methodSignaturesWithOverloads2.js +++ b/tests/baselines/reference/methodSignaturesWithOverloads2.js @@ -29,6 +29,7 @@ c2.func4 = c2.func5; c2.func5 = c2.func4; //// [methodSignaturesWithOverloads2.js] +// Object type literals permit overloads with optionality but they must match var c; c.func4 = c.func5; c.func5 = c.func4; diff --git a/tests/baselines/reference/moduleIdentifiers.js b/tests/baselines/reference/moduleIdentifiers.js index 61298825f04..e2050d98f5d 100644 --- a/tests/baselines/reference/moduleIdentifiers.js +++ b/tests/baselines/reference/moduleIdentifiers.js @@ -15,4 +15,6 @@ var M; (function (M) { M.a = 1; })(M || (M = {})); +//var p: M.P; +//var m: M = M; var x1 = M.a; diff --git a/tests/baselines/reference/nameCollision.js b/tests/baselines/reference/nameCollision.js index 307e30053e5..ed0f6abd476 100644 --- a/tests/baselines/reference/nameCollision.js +++ b/tests/baselines/reference/nameCollision.js @@ -49,6 +49,8 @@ module D { //// [nameCollision.js] var A; (function (__A) { + // these 2 statements force an underscore before the 'A' + // in the generated function call. var A = 12; var _A = ''; })(A || (A = {})); diff --git a/tests/baselines/reference/negateOperatorWithAnyOtherType.js b/tests/baselines/reference/negateOperatorWithAnyOtherType.js index 2652ddf81d5..58c1ba58e39 100644 --- a/tests/baselines/reference/negateOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/negateOperatorWithAnyOtherType.js @@ -54,6 +54,7 @@ var ResultIsNumber15 = -(ANY - ANY1); -M.n; //// [negateOperatorWithAnyOtherType.js] +// - operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -78,14 +79,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = -ANY1; var ResultIsNumber2 = -ANY2; var ResultIsNumber3 = -A; var ResultIsNumber4 = -M; var ResultIsNumber5 = -obj; var ResultIsNumber6 = -obj1; +// any type literal var ResultIsNumber7 = -undefined; var ResultIsNumber = -null; +// any type expressions var ResultIsNumber8 = -ANY2[0]; var ResultIsNumber9 = -obj1.x; var ResultIsNumber10 = -obj1.y; diff --git a/tests/baselines/reference/negateOperatorWithBooleanType.js b/tests/baselines/reference/negateOperatorWithBooleanType.js index a05e053bb4d..9ca22347acd 100644 --- a/tests/baselines/reference/negateOperatorWithBooleanType.js +++ b/tests/baselines/reference/negateOperatorWithBooleanType.js @@ -36,6 +36,7 @@ var ResultIsNumber7 = -A.foo(); -M.n; //// [negateOperatorWithBooleanType.js] +// - operator on boolean type var BOOLEAN; function foo() { return true; @@ -53,9 +54,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = -BOOLEAN; +// boolean type literal var ResultIsNumber2 = -true; var ResultIsNumber3 = -{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = -objA.a; var ResultIsNumber5 = -M.n; var ResultIsNumber6 = -foo(); diff --git a/tests/baselines/reference/negateOperatorWithEnumType.js b/tests/baselines/reference/negateOperatorWithEnumType.js index fa45b524df5..d4759e1dc10 100644 --- a/tests/baselines/reference/negateOperatorWithEnumType.js +++ b/tests/baselines/reference/negateOperatorWithEnumType.js @@ -29,7 +29,9 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = -ENUM; +// expressions var ResultIsNumber2 = -ENUM1[1]; var ResultIsNumber3 = -(ENUM1[1] + ENUM1[2]); -ENUM; diff --git a/tests/baselines/reference/negateOperatorWithNumberType.js b/tests/baselines/reference/negateOperatorWithNumberType.js index a68e1351d41..901ce55fce6 100644 --- a/tests/baselines/reference/negateOperatorWithNumberType.js +++ b/tests/baselines/reference/negateOperatorWithNumberType.js @@ -42,6 +42,7 @@ var ResultIsNumber11 = -(NUMBER - NUMBER); -objA.a, M.n; //// [negateOperatorWithNumberType.js] +// - operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -60,13 +61,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = -NUMBER; var ResultIsNumber2 = -NUMBER1; +// number type literal var ResultIsNumber3 = -1; var ResultIsNumber4 = -{ x: 1, y: 2 }; var ResultIsNumber5 = -{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = -objA.a; var ResultIsNumber7 = -M.n; var ResultIsNumber8 = -NUMBER1[0]; diff --git a/tests/baselines/reference/negateOperatorWithStringType.js b/tests/baselines/reference/negateOperatorWithStringType.js index abcb6a6056f..a30a0204616 100644 --- a/tests/baselines/reference/negateOperatorWithStringType.js +++ b/tests/baselines/reference/negateOperatorWithStringType.js @@ -41,6 +41,7 @@ var ResultIsNumber12 = -STRING.charAt(0); -objA.a,M.n; //// [negateOperatorWithStringType.js] +// - operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -59,13 +60,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = -STRING; var ResultIsNumber2 = -STRING1; +// string type literal var ResultIsNumber3 = -""; var ResultIsNumber4 = -{ x: "", y: "" }; var ResultIsNumber5 = -{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = -objA.a; var ResultIsNumber7 = -M.n; var ResultIsNumber8 = -STRING1[0]; diff --git a/tests/baselines/reference/newOperatorConformance.js b/tests/baselines/reference/newOperatorConformance.js index 0fe5565c2f7..31eba450a05 100644 --- a/tests/baselines/reference/newOperatorConformance.js +++ b/tests/baselines/reference/newOperatorConformance.js @@ -82,12 +82,16 @@ var T = (function () { var anyCtor; var anyCtor1; var nestedCtor; +// Construct expression with no parentheses for construct signature with 0 parameters var a = new C0; var a; +// Generic construct expression with no parentheses var c1 = new T; var c1; +// Construct expression where constructor is of type 'any' with no parentheses var d = new anyCtor; var d; +// Construct expression where constructor is of type 'any' with > 1 arg var d = new anyCtor1(undefined); function newFn1(s) { var p = new s; @@ -101,6 +105,7 @@ function fnVoid() { } var t = new fnVoid(); var t; +// Chained new expressions var nested = new (new (new nestedCtor())())(); var n = new nested(); var n = new nested(); diff --git a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js index 24425ff0d0c..5392b163477 100644 --- a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js +++ b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js @@ -13,4 +13,5 @@ var x = new Something(); //// [app.js] +/// var x = new Something(); diff --git a/tests/baselines/reference/noImplicitAnyForIn.js b/tests/baselines/reference/noImplicitAnyForIn.js index d60d08313ec..c8743936a9a 100644 --- a/tests/baselines/reference/noImplicitAnyForIn.js +++ b/tests/baselines/reference/noImplicitAnyForIn.js @@ -35,19 +35,23 @@ for (n[idx++] in m); var x = [[1, 2, 3], ["hello"]]; for (var i in x) { for (var j in x[i]) { + //Should yield an implicit 'any' error var _j = x[i][j]; } for (var k in x[0]) { var k1 = x[0]; + //Should yield an implicit 'any' error var k2 = k1[k]; } } for (var a in x) { + // Should yield an implicit 'any' error. var b; var c = a || b; } var idx = 0; var m = [1, 2, 3, 4, 5]; +// Should yield an implicit 'any' error. var n = [[]] || []; for (n[idx++] in m) ; diff --git a/tests/baselines/reference/noImplicitAnyIndexing.js b/tests/baselines/reference/noImplicitAnyIndexing.js index 0e7bc3e328f..ebadbd9a121 100644 --- a/tests/baselines/reference/noImplicitAnyIndexing.js +++ b/tests/baselines/reference/noImplicitAnyIndexing.js @@ -54,14 +54,21 @@ var MyEmusEnum; (function (MyEmusEnum) { MyEmusEnum[MyEmusEnum["emu"] = 0] = "emu"; })(MyEmusEnum || (MyEmusEnum = {})); +// Should be okay; should be a string. var strRepresentation1 = MyEmusEnum[0]; +// Should be okay; should be a string. var strRepresentation2 = MyEmusEnum[0 /* emu */]; +// Should be implicit 'any' ; property access fails, no string indexer. var strRepresentation3 = MyEmusEnum["monehh"]; +// Should be okay; should be a MyEmusEnum var strRepresentation4 = MyEmusEnum["emu"]; +// Should report an implicit 'any'. var x = {}["hi"]; +// Should report an implicit 'any'. var y = {}[10]; var hi = "hi"; var emptyObj = {}; +// Should report an implicit 'any'. var z1 = emptyObj[hi]; var z2 = emptyObj[hi]; var m = { diff --git a/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js b/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js index cef6b8faa16..3618d1b530a 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js +++ b/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js @@ -69,10 +69,15 @@ function f7(x) { } function f8(x3, y3) { } +// No implicit-'any' errors. var f9 = function () { return ""; }; +// Implicit-'any' errors for x. var f10 = function (x) { return ""; }; +// Implicit-'any' errors for x, y, and z. var f11 = function (x, y, z) { return ""; }; +// Implicit-'any' errors for x and z. var f12 = function (x, y, z) { return ""; }; +// Implicit-'any[]' error for r. var f13 = function () { var r = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -80,6 +85,7 @@ var f13 = function () { } return ""; }; +// Implicit-'any'/'any[]' errors for x, r. var f14 = function (x) { var r = []; for (var _i = 1; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/noImplicitAnyParametersInModule.js b/tests/baselines/reference/noImplicitAnyParametersInModule.js index d606f8d2f53..0f8253c1e32 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInModule.js +++ b/tests/baselines/reference/noImplicitAnyParametersInModule.js @@ -73,10 +73,15 @@ var M; } function m_f8(x3, y3) { } + // No implicit-'any' errors. var m_f9 = function () { return ""; }; + // Implicit-'any' error for x. var m_f10 = function (x) { return ""; }; + // Implicit-'any' errors for x, y, and z. var m_f11 = function (x, y, z) { return ""; }; + // Implicit-'any' errors for x and z. var m_f12 = function (x, y, z) { return ""; }; + // Implicit-'any[]' errors for r. var m_f13 = function () { var r = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -84,6 +89,7 @@ var M; } return ""; }; + // Implicit-'any'/'any[]' errors for x and r. var m_f14 = function (x) { var r = []; for (var _i = 1; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/nonInstantiatedModule.js b/tests/baselines/reference/nonInstantiatedModule.js index 1284b38fe16..cf69d5b1bf6 100644 --- a/tests/baselines/reference/nonInstantiatedModule.js +++ b/tests/baselines/reference/nonInstantiatedModule.js @@ -50,6 +50,7 @@ var M; (function (M) { M.a = 1; })(M || (M = {})); +// primary expression var m; var m = M; var a1; diff --git a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js index c7f31731d0e..ae86031ca0c 100644 --- a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js +++ b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js @@ -92,6 +92,7 @@ var r20 = true ? null : {}; //// [nullIsSubtypeOfEverythingButUndefined.js] +// null is a subtype of any other types except undefined var r0 = true ? null : null; var r0 = true ? null : null; var u; @@ -175,6 +176,10 @@ function f18(x) { var r18 = true ? x : null; var r18 = true ? null : x; } +//function f18(x: U) { +// var r18 = true ? x : null; +// var r18 = true ? null : x; +//} var r19 = true ? new Object() : null; var r19 = true ? null : new Object(); var r20 = true ? {} : null; diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index 16b5c0f1470..c1cb06601a7 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -76,6 +76,7 @@ var Foo = (function () { return Foo; })(); var a; +// error var b = { 1.0: new A(), 2.0: new B(), diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index d5430dd52e5..f3c5760ae63 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -134,5 +134,6 @@ var Slug = (function () { } 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/objectLitStructuralTypeMismatch.js b/tests/baselines/reference/objectLitStructuralTypeMismatch.js index 421f30fe6a9..380b8a2aacf 100644 --- a/tests/baselines/reference/objectLitStructuralTypeMismatch.js +++ b/tests/baselines/reference/objectLitStructuralTypeMismatch.js @@ -3,4 +3,5 @@ var x: { a: number; } = { b: 5 }; //// [objectLitStructuralTypeMismatch.js] +// Shouldn't compile var x = { b: 5 }; diff --git a/tests/baselines/reference/objectLiteralWidened.js b/tests/baselines/reference/objectLiteralWidened.js index 30dc1109ef0..4de228cb14a 100644 --- a/tests/baselines/reference/objectLiteralWidened.js +++ b/tests/baselines/reference/objectLiteralWidened.js @@ -15,6 +15,7 @@ var y = { } //// [objectLiteralWidened.js] +// object literal properties are widened to any var x = { foo: null, bar: undefined diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js index d2fc04fabdf..34f81e0cf59 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js @@ -143,6 +143,7 @@ var r3 = c[1.]; var r5 = c['1..']; var r6 = c['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -161,6 +162,7 @@ var r3 = c[1.]; var r5 = i['1..']; var r6 = i['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -179,6 +181,7 @@ var r3 = c[1.]; var r5 = a['1..']; var r6 = a['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -206,6 +209,7 @@ var r3 = c[1.]; var r5 = b['1..']; var r6 = b['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; diff --git a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js index 9c674854cdc..5d7073db876 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js +++ b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js @@ -63,16 +63,19 @@ var c; var r = c[" "]; var r2 = c[" "]; var r3 = c["a b"]; +// BUG 817263 var r4 = c["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var i; var r = i[" "]; var r2 = i[" "]; var r3 = i["a b"]; +// BUG 817263 var r4 = i["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var a; var r = a[" "]; var r2 = a[" "]; var r3 = a["a b"]; +// BUG 817263 var r4 = a["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var b = { " ": 1, @@ -82,4 +85,5 @@ var b = { var r = b[" "]; var r2 = b[" "]; var r3 = b["a b"]; +// BUG 817263 var r4 = b["~!@#$%^&*()_+{}|:'<>?\/.,`"]; diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js index ba8f45a82d7..5e0f49bc295 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js @@ -36,6 +36,7 @@ var a1 = new a({}); //// [overloadBindingAcrossDeclarationBoundaries.js] var a; +// These should all be Opt3 var a1 = a.a({}); var a1 = a({}); var a1 = new a({}); diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js index 6037f45bc1e..f2eb0d6b886 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js @@ -42,6 +42,7 @@ var a1 = new a({}); //// [overloadBindingAcrossDeclarationBoundaries_file0.js] //// [overloadBindingAcrossDeclarationBoundaries_file1.js] var a; +// These should all be Opt3 var a1 = a.a({}); var a1 = a({}); var a1 = new a({}); diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js index 5d542baa07c..6d7b72ef951 100644 --- a/tests/baselines/reference/overloadResolution.js +++ b/tests/baselines/reference/overloadResolution.js @@ -138,6 +138,7 @@ function fn2() { } var d = fn2(0, undefined); var d; +// Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = fn2(0, ''); fn2('', 0); fn2('', 0); @@ -148,6 +149,7 @@ var s = fn3(3); var s = fn3('', 3, ''); var n = fn3(5, 5, 5); var n; +// Generic overloads with differing arity called with type arguments matching each overload type parameter count var s = fn3(4); var s = fn3('', '', ''); var n = fn3('', '', 3); diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js index dadb6af41e8..431720e7a90 100644 --- a/tests/baselines/reference/overloadResolutionClassConstructors.js +++ b/tests/baselines/reference/overloadResolutionClassConstructors.js @@ -147,6 +147,7 @@ var fn2 = (function () { 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, ''); new fn2('', 0); new fn2('', 0); diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js index c018922c23d..0c076f80a7d 100644 --- a/tests/baselines/reference/overloadResolutionConstructors.js +++ b/tests/baselines/reference/overloadResolutionConstructors.js @@ -136,12 +136,14 @@ var SomeDerived3 = (function (_super) { return SomeDerived3; })(SomeBase); var fn1; +// Ambiguous call picks the first overload in declaration order var s = new fn1(undefined); var s; new fn1({}); var fn2; var d = new fn2(0, undefined); var d; +// Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = new fn2(0, ''); new fn2('', 0); new fn2('', 0); @@ -150,6 +152,7 @@ var s = new fn3(3); var s = new fn3('', 3, ''); var n = new fn3(5, 5, 5); var n; +// Generic overloads with differing arity called with type arguments matching each overload type parameter count var s = new fn3(4); var s = new fn3('', '', ''); var n = new fn3('', '', 3); diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index 8ba27fa41bf..e325e7ad8c0 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -67,10 +67,12 @@ var Derived3 = (function (_super) { return Derived3; })(Base); var d2; +// these are ok var htmlElement = d2.createElement("yo"); var htmlCanvasElement = d2.createElement("canvas"); var htmlDivElement = d2.createElement("div"); var htmlSpanElement = d2.createElement("span"); +// these are errors var htmlElement2 = d2.createElement("yo"); var htmlCanvasElement2 = d2.createElement("canvas"); var htmlDivElement2 = d2.createElement("div"); diff --git a/tests/baselines/reference/parserS7.2_A1.5_T2.js b/tests/baselines/reference/parserS7.2_A1.5_T2.js index d3b58e3d9b3..4df6144f86a 100644 --- a/tests/baselines/reference/parserS7.2_A1.5_T2.js +++ b/tests/baselines/reference/parserS7.2_A1.5_T2.js @@ -29,6 +29,7 @@ eval("\u00A0var x\u00A0= 1\u00A0"); if (x !== 1) { $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); } +//CHECK#2 var x = 1; if (x !== 1) { $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/parserS7.3_A1.1_T2.js b/tests/baselines/reference/parserS7.3_A1.1_T2.js index bb16f0e0d8e..69a7d22d01a 100644 --- a/tests/baselines/reference/parserS7.3_A1.1_T2.js +++ b/tests/baselines/reference/parserS7.3_A1.1_T2.js @@ -21,6 +21,15 @@ if (x !== 1) { //// [parserS7.3_A1.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * LINE FEED (U+000A) may occur between any two tokens + * + * @path ch07/7.3/S7.3_A1.1_T2.js + * @description Insert real LINE FEED between tokens of var x=1 + */ +//CHECK#1 var x = 1; if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/parserS7.6_A4.2_T1.js b/tests/baselines/reference/parserS7.6_A4.2_T1.js index b8395e6fa18..3ce99b68e47 100644 --- a/tests/baselines/reference/parserS7.6_A4.2_T1.js +++ b/tests/baselines/reference/parserS7.6_A4.2_T1.js @@ -146,6 +146,15 @@ if (Ё !== 1) { //// [parserS7.6_A4.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.6/S7.6_A4.2_T1.js + * @description Check RUSSIAN CAPITAL ALPHABET + */ +//CHECK#А-Я var \u0410 = 1; if (А !== 1) { $ERROR('#А'); diff --git a/tests/baselines/reference/parserS7.9_A5.7_T1.js b/tests/baselines/reference/parserS7.9_A5.7_T1.js index cb8a76bfd4b..8f600665212 100644 --- a/tests/baselines/reference/parserS7.9_A5.7_T1.js +++ b/tests/baselines/reference/parserS7.9_A5.7_T1.js @@ -21,6 +21,16 @@ y //// [parserS7.9_A5.7_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Since LineTerminator(LT) between Postfix Increment/Decrement Operator(I/DO) and operand is not allowed, two IO(just as two DO and their combination) + * between two references separated by [LT] after automatic semicolon insertion lead to syntax error + * + * @path ch07/7.9/S7.9_A5.7_T1.js + * @description Try use Variable1 \n ++ \n ++ \n Variable2 construction + * @negative + */ var x = 0, y = 0; var z = x; ++++y; diff --git a/tests/baselines/reference/plusOperatorWithAnyOtherType.js b/tests/baselines/reference/plusOperatorWithAnyOtherType.js index 394c635aedf..19ccd4799a0 100644 --- a/tests/baselines/reference/plusOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/plusOperatorWithAnyOtherType.js @@ -57,6 +57,7 @@ var ResultIsNumber19 = +(undefined + undefined); +M.n; //// [plusOperatorWithAnyOtherType.js] +// + operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -82,14 +83,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any other type var var ResultIsNumber1 = +ANY1; var ResultIsNumber2 = +ANY2; var ResultIsNumber3 = +A; var ResultIsNumber4 = +M; var ResultIsNumber5 = +obj; var ResultIsNumber6 = +obj1; +// any type literal var ResultIsNumber7 = +undefined; var ResultIsNumber8 = +null; +// any type expressions var ResultIsNumber9 = +ANY2[0]; var ResultIsNumber10 = +obj1.x; var ResultIsNumber11 = +obj1.y; diff --git a/tests/baselines/reference/plusOperatorWithBooleanType.js b/tests/baselines/reference/plusOperatorWithBooleanType.js index 1d5d2ae1958..57a7ba81b11 100644 --- a/tests/baselines/reference/plusOperatorWithBooleanType.js +++ b/tests/baselines/reference/plusOperatorWithBooleanType.js @@ -36,6 +36,7 @@ var ResultIsNumber7 = +A.foo(); +M.n; //// [plusOperatorWithBooleanType.js] +// + operator on boolean type var BOOLEAN; function foo() { return true; @@ -53,9 +54,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = +BOOLEAN; +// boolean type literal var ResultIsNumber2 = +true; var ResultIsNumber3 = +{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = +objA.a; var ResultIsNumber5 = +M.n; var ResultIsNumber6 = +foo(); diff --git a/tests/baselines/reference/plusOperatorWithEnumType.js b/tests/baselines/reference/plusOperatorWithEnumType.js index a2897f644bb..c66fd951d45 100644 --- a/tests/baselines/reference/plusOperatorWithEnumType.js +++ b/tests/baselines/reference/plusOperatorWithEnumType.js @@ -30,8 +30,10 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = +ENUM; var ResultIsNumber2 = +ENUM1; +// enum type expressions var ResultIsNumber3 = +ENUM1[0]; var ResultIsNumber4 = +(ENUM[0] + ENUM1[1]); +ENUM; diff --git a/tests/baselines/reference/plusOperatorWithNumberType.js b/tests/baselines/reference/plusOperatorWithNumberType.js index 9d89d8a94fc..9c8f59a5edd 100644 --- a/tests/baselines/reference/plusOperatorWithNumberType.js +++ b/tests/baselines/reference/plusOperatorWithNumberType.js @@ -42,6 +42,7 @@ var ResultIsNumber11 = +(NUMBER + NUMBER); +objA.a, M.n; //// [plusOperatorWithNumberType.js] +// + operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -60,13 +61,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = +NUMBER; var ResultIsNumber2 = +NUMBER1; +// number type literal var ResultIsNumber3 = +1; var ResultIsNumber4 = +{ x: 1, y: 2 }; var ResultIsNumber5 = +{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = +objA.a; var ResultIsNumber7 = +M.n; var ResultIsNumber8 = +NUMBER1[0]; diff --git a/tests/baselines/reference/plusOperatorWithStringType.js b/tests/baselines/reference/plusOperatorWithStringType.js index d7cd25005b7..876e37ab383 100644 --- a/tests/baselines/reference/plusOperatorWithStringType.js +++ b/tests/baselines/reference/plusOperatorWithStringType.js @@ -41,6 +41,7 @@ var ResultIsNumber12 = +STRING.charAt(0); +objA.a,M.n; //// [plusOperatorWithStringType.js] +// + operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -59,13 +60,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = +STRING; var ResultIsNumber2 = +STRING1; +// string type literal var ResultIsNumber3 = +""; var ResultIsNumber4 = +{ x: "", y: "" }; var ResultIsNumber5 = +{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = +objA.a; var ResultIsNumber7 = +M.n; var ResultIsNumber8 = +STRING1[0]; diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js index f597ff7b1e7..c9e9b756c60 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js @@ -215,6 +215,7 @@ var m_public = exports.m_public; import_public.im_public_f_private = m_private.f_private; import_public.im_public_v_private = m_private.v_private; import_public.im_public_mi_private = m_private.mi_private; + // Usage of privacy error imports var privateUse_im_public_c_private = new import_public.im_public_c_private(); import_public.publicUse_im_public_c_private = new import_public.im_public_c_private(); var privateUse_im_public_e_private = 0 /* Happy */; @@ -234,6 +235,7 @@ var m_public = exports.m_public; import_public.im_public_f_public = m_public.f_public; import_public.im_public_v_public = m_public.v_public; import_public.im_public_mi_public = m_public.mi_public; + // Usage of above var privateUse_im_public_c_public = new import_public.im_public_c_public(); import_public.publicUse_im_public_c_public = new import_public.im_public_c_public(); var privateUse_im_public_e_public = 0 /* Happy */; @@ -257,6 +259,7 @@ var import_private; import_private.im_private_f_private = m_private.f_private; import_private.im_private_v_private = m_private.v_private; import_private.im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new import_private.im_private_c_private(); import_private.publicUse_im_private_c_private = new import_private.im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -276,6 +279,7 @@ var import_private; import_private.im_private_f_public = m_public.f_public; import_private.im_private_v_public = m_public.v_public; import_private.im_private_mi_public = m_public.mi_public; + // Usage of no privacy error imports var privateUse_im_private_c_public = new import_private.im_private_c_public(); import_private.publicUse_im_private_c_public = new import_private.im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js index b799a464b62..c8098b30627 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js @@ -216,6 +216,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); import_public.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -235,6 +236,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); import_public.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; @@ -258,6 +260,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); import_private.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -277,6 +280,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); import_private.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js index dac4c23eb81..c958d4a42ea 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js @@ -69,6 +69,7 @@ exports.im_public_mi_private = require("privacyTopLevelAmbientExternalModuleImpo exports.im_public_mu_private = require("privacyTopLevelAmbientExternalModuleImportWithExport_require1"); exports.im_public_mi_public = require("m"); exports.im_public_mu_public = require("m2"); +// Usage of privacy error imports var privateUse_im_public_mi_private = new exports.im_public_mi_private.c_public(); exports.publicUse_im_public_mi_private = new exports.im_public_mi_private.c_public(); var privateUse_im_public_mu_private = new exports.im_public_mu_private.c_public(); diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js index 2f7e0691317..18dd8f946b7 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js @@ -70,6 +70,7 @@ define(["require", "exports"], function (require, exports) { }); //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] define(["require", "exports", "m", "m2", "privacyTopLevelAmbientExternalModuleImportWithoutExport_require"], function (require, exports, im_private_mi_private, im_private_mu_private, im_private_mi_public) { + // Usage of privacy error imports var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); exports.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(); diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js index 5ef31d28d6e..a1709e3ca7b 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js @@ -162,6 +162,7 @@ define(["require", "exports"], function (require, exports) { exports.im_public_f_private = m_private.f_private; exports.im_public_v_private = m_private.v_private; exports.im_public_mi_private = m_private.mi_private; + // Usage of privacy error imports var privateUse_im_public_c_private = new exports.im_public_c_private(); exports.publicUse_im_public_c_private = new exports.im_public_c_private(); var privateUse_im_public_e_private = 0 /* Happy */; @@ -181,6 +182,7 @@ define(["require", "exports"], function (require, exports) { exports.im_public_f_public = m_public.f_public; exports.im_public_v_public = m_public.v_public; exports.im_public_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_public_c_public = new exports.im_public_c_public(); exports.publicUse_im_public_c_public = new exports.im_public_c_public(); var privateUse_im_public_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js index bce0ad5c8f6..b3db6315f44 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js @@ -163,6 +163,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); exports.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -182,6 +183,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); exports.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 5e77bce62b3..ea13c12204d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index 16fa0fe7879..7d8b76cac05 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 0a2a9b139aa..3153725651c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index 16fa0fe7879..7d8b76cac05 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f1a9b7bc16a..c90b960a80e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 16fa0fe7879..7d8b76cac05 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 6f0bcf13bd0..30ffc64617e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 16fa0fe7879..7d8b76cac05 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b758f144d5c..7ef36232b8d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cdef85d419d..6f1ddfd7dd7 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 5ee16b0dada..ef107bb75b8 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 b758f144d5c..7ef36232b8d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cdef85d419d..6f1ddfd7dd7 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fa0ec9a7620..2e21de11e01 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 76db561018d..fc53d59d7cb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 f5684dd19d4..d9a8564525c 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 afeb358b21c..7c4f8ffc229 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 76db561018d..fc53d59d7cb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 f5684dd19d4..d9a8564525c 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 5a96a075f10..9e1907a3f19 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index 11c1042a751..02cad9b9ab3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index 4a1c9d94212..b592e001a98 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index 11c1042a751..02cad9b9ab3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map index 4a1c9d94212..b592e001a98 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 382d77cf0e5..3b087cd34db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index d06b5ac3fdd..4ea192ec827 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a1c9d94212..b592e001a98 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 382d77cf0e5..3b087cd34db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index d06b5ac3fdd..4ea192ec827 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a1c9d94212..b592e001a98 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f87eb9833a6..cbcbe046961 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b48597f838f..1812f2fecd5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2e1fe00298a..6c42e7229b3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 f87eb9833a6..cbcbe046961 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b48597f838f..1812f2fecd5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2e1fe00298a..6c42e7229b3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 3a048c5d034..9b5860b612b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map index d2761693aab..b0471f2c948 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3a048c5d034..9b5860b612b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map index d2761693aab..b0471f2c948 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 840efe46cc8..47fa7e75199 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d2761693aab..b0471f2c948 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 840efe46cc8..47fa7e75199 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d2761693aab..b0471f2c948 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b6010105a09..54a21de3149 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 908a7800f14..4217335db62 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 455f997059b..92885552f3f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 b6010105a09..54a21de3149 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 908a7800f14..4217335db62 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 455f997059b..92885552f3f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/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 39cacbeef20..949c8b01349 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index d2761693aab..b1ba0007b51 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 39cacbeef20..949c8b01349 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map index d2761693aab..b1ba0007b51 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 4b27c9d09fc..44c413210dc 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d2761693aab..b1ba0007b51 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 4b27c9d09fc..44c413210dc 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d2761693aab..b1ba0007b51 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 395927c02b0..561341ee534 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 eeb60352d26..9593afdf577 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ccea1b28f18..6cdd1b8fc9e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 395927c02b0..561341ee534 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 eeb60352d26..9593afdf577 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ccea1b28f18..6cdd1b8fc9e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 8a041f9d216..0c408c275ea 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ 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 39ea4830920..15ea98ef7ed 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 320edbdbdb9..828e5f06c03 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fb786efd56a..3f303cae59a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ 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 39ea4830920..15ea98ef7ed 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 320edbdbdb9..828e5f06c03 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 91bdef4e696..9465eaca080 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..ce180d55323 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 320edbdbdb9..828e5f06c03 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 bd5c801ef6d..1494a71e0c2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..ce180d55323 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 320edbdbdb9..828e5f06c03 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3112a063a43..c4c79e0454b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 03f724cdf70..111caa88ab6 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 67acb15edbc..33a1a16a5c5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3112a063a43..c4c79e0454b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 03f724cdf70..111caa88ab6 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 afeacd57cf1..100d1da6afd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 f7b816443ca..c0138423cae 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 480445b6070..5bfeb8c37b1 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1b111184a46..090f794e06a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 f7b816443ca..c0138423cae 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 480445b6070..5bfeb8c37b1 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 303e1b1ebd2..e6e8d34e4cb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index 8b01e21ef01..29cc1bff12e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ 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 1c2cc13934e..3a5f36cd163 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map index 34a1d5972e2..0893e2d067d 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index 8b01e21ef01..29cc1bff12e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ 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 1c2cc13934e..3a5f36cd163 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map index 34a1d5972e2..0893e2d067d 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b4dbc8d9513..20db52dd8e8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 05506d3b654..4823d597b6b 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 34a1d5972e2..0893e2d067d 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b4dbc8d9513..20db52dd8e8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 05506d3b654..4823d597b6b 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 34a1d5972e2..0893e2d067d 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 cf6a1ab6b31..8fafee438e6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 678b4b07a77..3764898a5cf 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":["../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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 28b577af41f..0346140ef3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 cf6a1ab6b31..8fafee438e6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 678b4b07a77..3764898a5cf 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":["../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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 28b577af41f..0346140ef3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ 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 70e9eeb8650..144c281141e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 39ea4830920..3eb5d7bae1c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map index 04c9323ca4e..b280e83c684 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 70e9eeb8650..144c281141e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 39ea4830920..3eb5d7bae1c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map index 04c9323ca4e..b280e83c684 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 0e451ad019f..4166fd0726b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..ee8fc06b62f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 04c9323ca4e..b280e83c684 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 0e451ad019f..4166fd0726b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..ee8fc06b62f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 04c9323ca4e..b280e83c684 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3112a063a43..9d6f9d2bb0d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 332f464c1a6..9f094e0e243 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 755acd78bfe..08069776096 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3112a063a43..9d6f9d2bb0d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 332f464c1a6..9f094e0e243 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 755acd78bfe..08069776096 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 63339245966..c95281b0117 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ 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 39ea4830920..cca8db1b548 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map index fc6f3410d0f..3518a66e606 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 63339245966..c95281b0117 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ 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 39ea4830920..cca8db1b548 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map index fc6f3410d0f..3518a66e606 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c7ff5d90c31..7a17ef73ca4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..3325bc2ccfb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 fc6f3410d0f..3518a66e606 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c7ff5d90c31..7a17ef73ca4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ 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 ca051a06fbf..3325bc2ccfb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 fc6f3410d0f..3518a66e606 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3112a063a43..a85935632dd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 9c66bbc80e8..70b064b97a9 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 4543f196ea1..95712b2c3ef 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3112a063a43..a85935632dd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 9c66bbc80e8..70b064b97a9 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 4543f196ea1..95712b2c3ef 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 8d774a44e59..dbacb509299 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map index 366c350fa3d..ec46d44dd36 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b82d9a777ed..7f8e5e51eef 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map index 366c350fa3d..ec46d44dd36 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 992984b18f5..b055e0d85ac 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 366c350fa3d..ec46d44dd36 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c94d152058d..101a39cb149 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 366c350fa3d..ec46d44dd36 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 be23341791d..b8b1e81a1f7 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f3eb57d201e..8dbf7526563 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 be23341791d..b8b1e81a1f7 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 92854c1cd37..1805bde6293 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cb8d37b3091..6765e0e0fa6 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c92c4ed0ec2..e5aca4bd246 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cb8d37b3091..6765e0e0fa6 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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c41a6b6ebf9..ea467254de4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt index 4e2ac5b01d6..85447a672f9 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map index 69418ac38a0..cc7aa790c7b 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt index 4e2ac5b01d6..85447a672f9 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map index 69418ac38a0..cc7aa790c7b 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 38886b8b052..bf5416e3ae3 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 69418ac38a0..cc7aa790c7b 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 38886b8b052..bf5416e3ae3 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 69418ac38a0..cc7aa790c7b 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 13734ab1b25..d3400838027 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 124b8873a13..292e5cf400f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 13734ab1b25..d3400838027 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 124b8873a13..292e5cf400f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bdf2944dba6..0779281197a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map index 06c5dabf1c6..e10afd12d5f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 bdf2944dba6..0779281197a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map index 06c5dabf1c6..e10afd12d5f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3db990f7803..68c1cd3bce9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 06c5dabf1c6..e10afd12d5f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3db990f7803..68c1cd3bce9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 06c5dabf1c6..e10afd12d5f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 bb6681c4801..70062ed1d78 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 70d905e86c5..c06e1433af5 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 bb6681c4801..70062ed1d78 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 70d905e86c5..c06e1433af5 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 1cd70387dcd..af274497908 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map index b17258aa796..2cbc935e3ca 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1cd70387dcd..af274497908 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map index b17258aa796..2cbc935e3ca 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fa7118aa584..ed6df05a4da 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 b17258aa796..2cbc935e3ca 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fa7118aa584..ed6df05a4da 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 b17258aa796..2cbc935e3ca 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 d3a89b9dc65..a83d7767a58 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d3a189430ab..e7181011976 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 d3a89b9dc65..a83d7767a58 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d3a189430ab..e7181011976 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 fadb9438e7c..bbfd41971ea 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 82f4836ae57..cb5acf04cad 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 8015060953e..5c7fbf55980 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 640f81a841e..9358870a688 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a2c2ebb408..af09cb956f6 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 0722496aa12..7a63f82b063 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a2c2ebb408..af09cb956f6 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 88f3e8903fb..edff71433ac 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4bc829d46fa..2b043394866 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 af49f041f1b..1a6dfcfc5f3 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4bc829d46fa..2b043394866 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 310d6dfaa8e..83af964a3ef 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 6fee35ee39f..470b4280389 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map index 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 6fee35ee39f..470b4280389 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map index 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3d87f0b8785..4cfbf25edb5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3d87f0b8785..4cfbf25edb5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d86a5b966a4..ece3a005e75 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2dd1f89463c..5884efb5062 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d86a5b966a4..ece3a005e75 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2dd1f89463c..5884efb5062 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 56c6277d3a2..0d6c41e9711 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map index 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 56c6277d3a2..0d6c41e9711 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map index 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 749d68f6d0a..77f1611c24e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 749d68f6d0a..77f1611c24e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 86549d3cdf3..8610dc814fc 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f27f617d8a3..93973163cd7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 86549d3cdf3..8610dc814fc 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f27f617d8a3..93973163cd7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 9c71223befb..f437ff38afa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map index 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 9c71223befb..f437ff38afa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ 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 bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map index 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d3957b2819a..5b1bcfef3e7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d3957b2819a..5b1bcfef3e7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 db639624d79..677ccf1596d 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c3a5a3791db..f9478f2e3bc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 db639624d79..677ccf1596d 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c3a5a3791db..f9478f2e3bc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..693aed69734 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..693aed69734 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js index 3b69cd525ae..b6fc6ea83ff 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js index 3b69cd525ae..b6fc6ea83ff 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js index c1e610b251e..725379f28cc 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js index c1e610b251e..725379f28cc 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js index c1e610b251e..8b15a01fa01 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js index c1e610b251e..8b15a01fa01 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 0a485a94977..6777ff94467 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index 9c3e31a1004..59114b811dc 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 768c77b27f8..9250746237b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index 9c3e31a1004..59114b811dc 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9c3e31a1004..59114b811dc 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 e2eb6dd47dc..ef941ec8527 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9c3e31a1004..59114b811dc 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 349524dce45..8a79efe75e9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 198353a83a7..f21f73c29bb 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 53ad6a00f3d..b1c5507682c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 198353a83a7..f21f73c29bb 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 9e35d35593f..6eea2973858 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 a46c6a164db..7f35721dda8 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 e6454c5c867..39e33fa9c4f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 a46c6a164db..7f35721dda8 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 baaf24f3f05..7943340db97 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ 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 bf7a27f7d34..a932b4ba35e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index d6c76d041af..39be85e5c61 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 bf7a27f7d34..a932b4ba35e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map index d6c76d041af..39be85e5c61 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d6c76d041af..39be85e5c61 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 06c159cb70b..7e47593c4b7 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d6c76d041af..39be85e5c61 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 06c159cb70b..7e47593c4b7 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 c6cc8a00c83..47c9541e0eb 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 364db7cb2e0..011daa6708b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 c6cc8a00c83..47c9541e0eb 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 364db7cb2e0..011daa6708b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 1c189d89138..40f672bb0f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map index 85db2988a68..c50d8e4859f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1c189d89138..40f672bb0f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map index 85db2988a68..c50d8e4859f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 85db2988a68..c50d8e4859f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3b67392adac..4a50fc2c799 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 85db2988a68..c50d8e4859f 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3b67392adac..4a50fc2c799 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 7be2c0252a1..e60662f68a5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 43f969ce6b0..28833a21cbc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 7be2c0252a1..e60662f68a5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 43f969ce6b0..28833a21cbc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 98e3f08068c..ee5822937fb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index f9d4bfb3fff..09ec82b9dc6 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 98e3f08068c..ee5822937fb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map index f9d4bfb3fff..09ec82b9dc6 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 f9d4bfb3fff..09ec82b9dc6 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ac65eb2053d..de87b327bb2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 f9d4bfb3fff..09ec82b9dc6 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ac65eb2053d..de87b327bb2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 935cf031db8..489c554916e 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 6c3de002a42..ade7f125bba 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 935cf031db8..489c554916e 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 6c3de002a42..ade7f125bba 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 9722f1f1bd5..280d8605873 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 2086277e2ff..e21190f8e2e 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7970c4c25ce..7f4e9e1ddbe 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 2086277e2ff..e21190f8e2e 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 2086277e2ff..e21190f8e2e 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f766728319d..ee48016ceb9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 2086277e2ff..e21190f8e2e 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ae8f031a373..95cca9bf57d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e3baf2e49d..b86daf390ae 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1418aef8ce4..458add435ad 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e3baf2e49d..b86daf390ae 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 cf91d197a47..9e6b357fb24 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b4f8caea081..e9865e31b38 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c5438216f64..e881c0b785d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b4f8caea081..e9865e31b38 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 52848595e94..6312eb97268 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ 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 d8a65f04e88..e3ee3f75771 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map index 294e92449a8..203c42359bd 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d8a65f04e88..e3ee3f75771 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map index 294e92449a8..203c42359bd 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 294e92449a8..203c42359bd 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 86e5ca70fe1..c89d3dadb38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 294e92449a8..203c42359bd 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 86e5ca70fe1..c89d3dadb38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3cabd208b3f..4b6e3515172 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 165c28d347c..db35a4d65e9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3cabd208b3f..4b6e3515172 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 165c28d347c..db35a4d65e9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 e5bcbb33d6c..0019838beaf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map index d503eef097b..a3a4dda9ee2 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 e5bcbb33d6c..0019838beaf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map index d503eef097b..a3a4dda9ee2 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d503eef097b..a3a4dda9ee2 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 213cbc2cdd6..8e3a977cca1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d503eef097b..a3a4dda9ee2 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 213cbc2cdd6..8e3a977cca1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 46c6976ba9b..ca707d32461 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 643aab720d2..0450303b15f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 46c6976ba9b..ca707d32461 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 643aab720d2..0450303b15f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 f83a167d8c0..914b521f34b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map index d503eef097b..17240f26218 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 f83a167d8c0..914b521f34b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map index d503eef097b..17240f26218 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d503eef097b..17240f26218 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a4ffa704768..f7eb83a20d1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 d503eef097b..17240f26218 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a4ffa704768..f7eb83a20d1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 ffb6245b3a6..4e19de36fe8 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fdfa1fa494d..3f529a732cd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 ffb6245b3a6..4e19de36fe8 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fdfa1fa494d..3f529a732cd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 ca24c56dc4e..8e10970ffce 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map index a174f137069..004deef64ee 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 42f05603bb9..7a872ddd504 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map index a174f137069..004deef64ee 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a1c9d94212..b3ee1024446 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7d2080d78d6..77f7dd030d7 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a1c9d94212..b3ee1024446 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b2a63fadf4d..0ae77c78e64 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cdef85d419d..6f1ddfd7dd7 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1ec1233c247..f798f6bd54d 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 cdef85d419d..6f1ddfd7dd7 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b772fe34981..a6bfcf784e0 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 f5684dd19d4..d9a8564525c 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 e12b5f5f478..a05ce4d647b 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 f5684dd19d4..d9a8564525c 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","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 67b48947f4d..adb046a3bcc 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ 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 3c42146ae7b..8606d36acd4 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map index a174f137069..276a8b2a720 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3c42146ae7b..8606d36acd4 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map index a174f137069..276a8b2a720 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 60147d9ff7e..521dbe5e313 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 19f746a5951..11ece946281 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 60147d9ff7e..521dbe5e313 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 19f746a5951..11ece946281 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b48597f838f..1812f2fecd5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3e43e849504..d8299995443 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 b48597f838f..1812f2fecd5 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 3e43e849504..d8299995443 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 1994743df49..7337d98d30b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map index c6b6358f313..66a78eca4fd 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 1994743df49..7337d98d30b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map index c6b6358f313..66a78eca4fd 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 22e4e6ca87b..5a197e3071b 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7dbdb509c7c..4b35efc9982 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 22e4e6ca87b..5a197e3071b 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7dbdb509c7c..4b35efc9982 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 908a7800f14..4217335db62 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d10c6fdd372..5ace4e9d141 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 908a7800f14..4217335db62 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 d10c6fdd372..5ace4e9d141 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 b58bf1725ff..a8cf87e7c6a 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map index c6b6358f313..3c65fcf31b8 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b58bf1725ff..a8cf87e7c6a 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map index c6b6358f313..3c65fcf31b8 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 22e4e6ca87b..071f3dc5770 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c8b92ce3df1..c8f714c3481 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 22e4e6ca87b..071f3dc5770 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 c8b92ce3df1..c8f714c3481 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 eeb60352d26..9593afdf577 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 6a5d7c68b5f..5c3d682e6f9 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 eeb60352d26..9593afdf577 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 6a5d7c68b5f..5c3d682e6f9 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 0c5b599dc40..bdc09350720 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 7f8fa6ce5f2..22f075a2c26 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2bcd95ed430..8ea7277b999 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 9e57d9a732f..c084feb0fd0 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 aa1e7b139b1..406569f1a8f 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a2c2ebb408..af09cb956f6 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 068a018f931..c0b44f4c066 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4a2c2ebb408..af09cb956f6 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2707a1d81dd..c11097c512b 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4bc829d46fa..2b043394866 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 fde3e4ce94e..3b975d27540 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# 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 d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 4bc829d46fa..2b043394866 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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b4151e5e7d4..b7ac7d33ad9 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ 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 ef120717208..336519863e2 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map index 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 ef120717208..336519863e2 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map index 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a055ff01a70..5698aa393c1 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..87d3f006993 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 @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 3809ffe7b9c..4c01d4f1055 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":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a055ff01a70..5698aa393c1 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +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 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d86a5b966a4..ece3a005e75 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 87bf27ca379..522133b61a4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# 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 e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { 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 d86a5b966a4..ece3a005e75 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 87bf27ca379..522133b61a4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +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 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 67378d3b3b0..0c278b8a07a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map index 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 67378d3b3b0..0c278b8a07a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map index 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 8840f088232..376e7fbb742 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..228d40908fb 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 8840f088232..376e7fbb742 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 86549d3cdf3..8610dc814fc 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2e298e0f200..013a0298c46 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 86549d3cdf3..8610dc814fc 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 2e298e0f200..013a0298c46 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 b694a733e2c..d66cc473768 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map index 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 b694a733e2c..d66cc473768 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map index 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a47ea8bf3a8..0d8c0c34ca8 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ 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 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { 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 12a2e00edee..129e7217134 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":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 a47ea8bf3a8..0d8c0c34ca8 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +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 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 db639624d79..677ccf1596d 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 066553daeb1..627fd896eb6 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# 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 adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { 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 db639624d79..677ccf1596d 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,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,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":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ 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 066553daeb1..627fd896eb6 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +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 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/promiseChaining.js b/tests/baselines/reference/promiseChaining.js index 0a12fc70c17..c914937bd6c 100644 --- a/tests/baselines/reference/promiseChaining.js +++ b/tests/baselines/reference/promiseChaining.js @@ -18,6 +18,7 @@ var Chain = (function () { } Chain.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain(result); }; diff --git a/tests/baselines/reference/promiseChaining1.js b/tests/baselines/reference/promiseChaining1.js index 797401a8e3a..18b13758fb2 100644 --- a/tests/baselines/reference/promiseChaining1.js +++ b/tests/baselines/reference/promiseChaining1.js @@ -17,6 +17,7 @@ var Chain2 = (function () { } Chain2.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain2(result); }; diff --git a/tests/baselines/reference/promiseChaining2.js b/tests/baselines/reference/promiseChaining2.js index e0ff3f31557..3f05eccaa10 100644 --- a/tests/baselines/reference/promiseChaining2.js +++ b/tests/baselines/reference/promiseChaining2.js @@ -17,6 +17,7 @@ var Chain2 = (function () { } Chain2.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain2(result); }; diff --git a/tests/baselines/reference/promiseIdentity.js b/tests/baselines/reference/promiseIdentity.js index dfeb5f5b0cb..5b57709e991 100644 --- a/tests/baselines/reference/promiseIdentity.js +++ b/tests/baselines/reference/promiseIdentity.js @@ -24,5 +24,7 @@ var y: Promise2; //// [promiseIdentity.js] var x; var x; +// Ok because T in this particular Promise2 is any, as are all the U and W references. +// Also, the V of Promise2 happens to coincide with the T of IPromise2 (they are both string). var y; var y; diff --git a/tests/baselines/reference/promiseIdentity2.js b/tests/baselines/reference/promiseIdentity2.js index 9f821520be6..8bb4139a737 100644 --- a/tests/baselines/reference/promiseIdentity2.js +++ b/tests/baselines/reference/promiseIdentity2.js @@ -12,5 +12,7 @@ var x: IPromise; var x: Promise; //// [promiseIdentity2.js] +// error because T is string in the first declaration, and T is boolean in the second +// Return type and callback return type are ok because T is any in this particular Promise var x; var x; diff --git a/tests/baselines/reference/promiseIdentityWithAny.js b/tests/baselines/reference/promiseIdentityWithAny.js index d4f053c5370..1a516067c8e 100644 --- a/tests/baselines/reference/promiseIdentityWithAny.js +++ b/tests/baselines/reference/promiseIdentityWithAny.js @@ -11,5 +11,6 @@ var x: IPromise; var x: Promise; //// [promiseIdentityWithAny.js] +// Should be ok because signature type parameters get erased to any var x; var x; diff --git a/tests/baselines/reference/promiseIdentityWithAny2.js b/tests/baselines/reference/promiseIdentityWithAny2.js index 9cf4ffe5b24..ec98b5ed4d9 100644 --- a/tests/baselines/reference/promiseIdentityWithAny2.js +++ b/tests/baselines/reference/promiseIdentityWithAny2.js @@ -23,7 +23,9 @@ var y: IPromise2; var y: Promise2; //// [promiseIdentityWithAny2.js] +// Error because type parameter arity doesn't match var x; var x; +// Error because string and any don't match var y; var y; diff --git a/tests/baselines/reference/promiseIdentityWithConstraints.js b/tests/baselines/reference/promiseIdentityWithConstraints.js index a1faac10071..0130d22df8f 100644 --- a/tests/baselines/reference/promiseIdentityWithConstraints.js +++ b/tests/baselines/reference/promiseIdentityWithConstraints.js @@ -11,5 +11,6 @@ var x: IPromise; var x: Promise; //// [promiseIdentityWithConstraints.js] +// Error because constraint V doesn't match var x; var x; diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js index c560318566b..e4682316baf 100644 --- a/tests/baselines/reference/propertyAccess.js +++ b/tests/baselines/reference/propertyAccess.js @@ -155,53 +155,80 @@ var obj = { var anyVar = {}; obj.y = 4; anyVar.x = anyVar.y = obj.x = anyVar.z; +// Dotted property access of property that exists var aa = obj.x; +// Dotted property access of property that exists on value's apparent type var bb = obj.hasOwnProperty; +// Dotted property access of property that doesn't exist on value's apparent type var cc = obj.qqq; +// Bracket notation property access using string literal value on type with property of that literal name var dd = obj['literal property']; var dd; +// Bracket notation property access using string literal value on type without property of that literal name var ee = obj['wa wa wa wa wa']; var ee; +// Bracket notation property access using numeric string literal value on type with property of that literal name var ff = obj['10']; var ff; +// Bracket notation property access using numeric string literal value on type without property of that literal name var gg = obj['1']; var gg; +// Bracket notation property access using numeric value on type with numeric index signature var hh = numIndex[3.0]; var hh; +// Bracket notation property access using enum value on type with numeric index signature var ii = numIndex[1 /* South */]; var ii; +// Bracket notation property access using value of type 'any' on type with numeric index signature var jj = numIndex[anyVar]; var jj; +// Bracket notation property access using string value on type with numeric index signature var kk = numIndex['what']; var kk; +// Bracket notation property access using value of other type on type with numeric index signature and no string index signature var ll = numIndex[window]; +// Bracket notation property access using string value on type with string index signature and no numeric index signature var mm = strIndex['N']; var mm; var mm2 = strIndex['zzz']; var mm2; +// Bracket notation property access using numeric value on type with string index signature and no numeric index signature var nn = strIndex[10]; var nn; +// Bracket notation property access using enum value on type with string index signature and no numeric index signature var oo = strIndex[2 /* East */]; var oo; +// Bracket notation property access using value of type 'any' on type with string index signature and no numeric index signature var pp = strIndex[null]; var pp; +// Bracket notation property access using numeric value on type with no index signatures var qq = noIndex[123]; var qq; +// Bracket notation property access using string value on type with no index signatures var rr = noIndex['zzzz']; var rr; +// Bracket notation property access using enum value on type with no index signatures var ss = noIndex[1 /* South */]; var ss; +// Bracket notation property access using value of type 'any' on type with no index signatures var tt = noIndex[null]; var tt; +// Bracket notation property access using values of other types on type with no index signatures var uu = noIndex[window]; +// Bracket notation property access using numeric value on type with numeric index signature and string index signature var vv = noIndex[32]; var vv; +// Bracket notation property access using enum value on type with numeric index signature and string index signature var ww = bothIndex[2 /* East */]; var ww; +// Bracket notation property access using value of type 'any' on type with numeric index signature and string index signature var xx = bothIndex[null]; var xx; +// Bracket notation property access using string value on type with numeric index signature and string index signature var yy = bothIndex['foo']; var yy; +// Bracket notation property access using numeric string value on type with numeric index signature and string index signature var zz = bothIndex['1.0']; var zz; +// Bracket notation property access using value of other type on type with numeric index signature and no string index signature and string index signature var zzzz = bothIndex[window]; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index a9cc407cae9..8c5fbe725de 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -120,14 +120,34 @@ var C = (function () { }; return C; })(); +//class C { +// f() { +// var x: U; +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +// g(x: U) { +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +//} var r1 = (new C()).f(); var r1b = (new C()).g(new B()); +//interface I { +// foo: U; +//} var i; var r2 = i.foo.foo(); var r2b = i.foo['foo'](); var a; +//var a: { +// (): U; +// (x: U): U; +// (x: U, y: T): U; +//} var r3 = a().foo(); var r3b = a()['foo'](); +// parameter supplied for type argument inference to succeed var aB = new B(); var r3c = a(aB, aB).foo(); var r3d = a(aB, aB)['foo'](); @@ -137,4 +157,10 @@ var b = { return a + x.foo(); } }; +//var b = { +// foo: (x: U, y: T) => { +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +//} var r4 = b.foo(aB, aB); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index e3d28c52376..2266f2e2200 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -86,10 +86,12 @@ var C = (function () { } C.prototype.f = function () { var x; + // BUG 823818 var a = x['foo'](); return a + x.foo(); }; C.prototype.g = function (x) { + // BUG 823818 var a = x['foo'](); return a + x.foo(); }; @@ -103,10 +105,12 @@ var r2b = i.foo['foo'](); var a; var r3 = a().foo(); var r3b = a()['foo'](); +// parameter supplied for type argument inference for U var r3c = a(new B()).foo(); var r3d = a(new B())['foo'](); var b = { foo: function (x) { + // BUG 823818 var a = x['foo'](); return a + x.foo(); } diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index 22d5af50719..cfe1404487a 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -84,6 +84,7 @@ var i; var r2 = i.foo.notHere(); var r2b = i.foo['foo'](); var a; +// BUG 794164 var r3 = a().notHere(); var r3b = a()['foo'](); var b = { diff --git a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js index f0d77deb185..ffbc946a368 100644 --- a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js +++ b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js @@ -31,6 +31,7 @@ var a; var b = { foo: null }; +// These should all be of type 'any' var r1 = (new C()).foo; var r2 = null.foo; var r3 = a.foo; diff --git a/tests/baselines/reference/propertyParameterWithQuestionMark.js b/tests/baselines/reference/propertyParameterWithQuestionMark.js index 754fe05adea..626f740d5cd 100644 --- a/tests/baselines/reference/propertyParameterWithQuestionMark.js +++ b/tests/baselines/reference/propertyParameterWithQuestionMark.js @@ -16,6 +16,7 @@ var C = (function () { } return C; })(); +// x should not be an optional property var v = {}; var v2; v = v2; diff --git a/tests/baselines/reference/propertySignatures.js b/tests/baselines/reference/propertySignatures.js index 23cfb040858..3b08792e8b6 100644 --- a/tests/baselines/reference/propertySignatures.js +++ b/tests/baselines/reference/propertySignatures.js @@ -21,13 +21,18 @@ test.bar = 2; //// [propertySignatures.js] +// Should be error - duplicate identifiers var foo1; +// Should be OK var foo2; foo2.a = 2; foo2.a = "0"; +// Should be error var foo3; +// Should be OK var foo4; var test = foo(); +// Should be OK var foo5; var test = foo5(); test.bar = 2; diff --git a/tests/baselines/reference/protoAsIndexInIndexExpression.js b/tests/baselines/reference/protoAsIndexInIndexExpression.js index 76e30a2b7f9..489e624cdc6 100644 --- a/tests/baselines/reference/protoAsIndexInIndexExpression.js +++ b/tests/baselines/reference/protoAsIndexInIndexExpression.js @@ -22,6 +22,7 @@ class C { //// [protoAsIndexInIndexExpression_0.js] exports.x; //// [protoAsIndexInIndexExpression_1.js] +/// var EntityPrototype = undefined; var WorkspacePrototype = { serialize: function () { diff --git a/tests/baselines/reference/recursiveInitializer.js b/tests/baselines/reference/recursiveInitializer.js index f8a06fc4fea..9afe964b457 100644 --- a/tests/baselines/reference/recursiveInitializer.js +++ b/tests/baselines/reference/recursiveInitializer.js @@ -20,15 +20,19 @@ var b4 = (!b4) && b4; // expected boolean here. actually 'any' var f = (x: string) => f(x); //// [recursiveInitializer.js] +// number unless otherwise specified var n1 = n1++; var n2 = n2 + n2; var n3 = n3 + n3; +// string unless otherwise specified var s1 = s1 + ''; var s2 = s2 + s2; var s3 = s3 + s3; var s4 = '' + s4; +// boolean unless otherwise specified var b1 = !b1; var b2 = !!b2; var b3 = !b3 || b3; var b4 = (!b4) && b4; +// (x:string) => any var f = function (x) { return f(x); }; diff --git a/tests/baselines/reference/reservedWords.js b/tests/baselines/reference/reservedWords.js index 173a987acc0..12fbcae0c65 100644 --- a/tests/baselines/reference/reservedWords.js +++ b/tests/baselines/reference/reservedWords.js @@ -24,6 +24,7 @@ var obj = { break: 3, function: 4 }; +//This compiles. var obj2 = { if: 0, while: 1, diff --git a/tests/baselines/reference/scannerS7.2_A1.5_T2.js b/tests/baselines/reference/scannerS7.2_A1.5_T2.js index 17b9ba93b1b..0100584d7a2 100644 --- a/tests/baselines/reference/scannerS7.2_A1.5_T2.js +++ b/tests/baselines/reference/scannerS7.2_A1.5_T2.js @@ -29,6 +29,7 @@ eval("\u00A0var x\u00A0= 1\u00A0"); if (x !== 1) { $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); } +//CHECK#2 var x = 1; if (x !== 1) { $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/scannerS7.3_A1.1_T2.js b/tests/baselines/reference/scannerS7.3_A1.1_T2.js index 4cd94ccb32c..b107b5d6695 100644 --- a/tests/baselines/reference/scannerS7.3_A1.1_T2.js +++ b/tests/baselines/reference/scannerS7.3_A1.1_T2.js @@ -21,6 +21,15 @@ if (x !== 1) { //// [scannerS7.3_A1.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * LINE FEED (U+000A) may occur between any two tokens + * + * @path ch07/7.3/S7.3_A1.1_T2.js + * @description Insert real LINE FEED between tokens of var x=1 + */ +//CHECK#1 var x = 1; if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/scannerS7.6_A4.2_T1.js b/tests/baselines/reference/scannerS7.6_A4.2_T1.js index 7890b709dcc..653265db9db 100644 --- a/tests/baselines/reference/scannerS7.6_A4.2_T1.js +++ b/tests/baselines/reference/scannerS7.6_A4.2_T1.js @@ -146,6 +146,15 @@ if (Ё !== 1) { //// [scannerS7.6_A4.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.6/S7.6_A4.2_T1.js + * @description Check RUSSIAN CAPITAL ALPHABET + */ +//CHECK#А-Я var \u0410 = 1; if (А !== 1) { $ERROR('#А'); diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index d0c91f6cd03..1d72bbbf966 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -39,6 +39,7 @@ module M3 { //// [scopeResolutionIdentifiers.js] +// EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope var s; var M1; (function (M1) { diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js b/tests/baselines/reference/sourceMap-FileWithComments.js index e077784625d..b553c69715c 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js +++ b/tests/baselines/reference/sourceMap-FileWithComments.js @@ -51,12 +51,17 @@ var Shapes; return Point; })(); Shapes.Point = Point; + // Variable comment after class var a = 10; function foo() { } Shapes.foo = foo; + /** comment after function + * this is another comment + */ var b = 10; })(Shapes || (Shapes = {})); +/** Local Variable */ var p = new Shapes.Point(3, 4); var dist = p.getDist(); //# sourceMappingURL=sourceMap-FileWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js.map b/tests/baselines/reference/sourceMap-FileWithComments.js.map index 35bc5bf6ef7..61ce0055974 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":"AAOA,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,IAAaA,KAAKA;QAEdC,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAGnDD,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAG3DF,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,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":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAOA,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,IAAaA,KAAKA;QAEdC,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAGnDD,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAG3DF,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,AADAA,+BAA+BA;QAC3BA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,AAHAA;;MAEEA;QACEA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,AADA,qBAAqB;IACjB,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 e3238af1718..f4f41d1bee3 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt @@ -333,6 +333,7 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^ 4 > ^^^^^ 5 > ^ +6 > ^^^^^^^^^^^-> 1-> 2 > Point 3 > @@ -353,29 +354,38 @@ sourceFile:sourceMap-FileWithComments.ts 4 >Emitted(14, 25) Source(20, 6) + SourceIndex(0) name (Shapes) 5 >Emitted(14, 26) Source(20, 6) + SourceIndex(0) name (Shapes) --- ->>> var a = 10; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^-> -1 > +>>> // Variable comment after class +1->^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> > > // Variable comment after class > -2 > var -3 > a -4 > = -5 > 10 -6 > ; -1 >Emitted(15, 5) Source(23, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(15, 9) Source(23, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(15, 10) Source(23, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(15, 13) Source(23, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(15, 15) Source(23, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(15, 16) Source(23, 16) + SourceIndex(0) name (Shapes) +2 > +3 > // Variable comment after class +1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(15, 5) Source(22, 5) + SourceIndex(0) name (Shapes) +3 >Emitted(15, 36) Source(22, 36) + SourceIndex(0) name (Shapes) +--- +>>> var a = 10; +1 >^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^-> +1 > + > var +2 > a +3 > = +4 > 10 +5 > ; +1 >Emitted(16, 9) Source(23, 9) + SourceIndex(0) name (Shapes) +2 >Emitted(16, 10) Source(23, 10) + SourceIndex(0) name (Shapes) +3 >Emitted(16, 13) Source(23, 13) + SourceIndex(0) name (Shapes) +4 >Emitted(16, 15) Source(23, 15) + SourceIndex(0) name (Shapes) +5 >Emitted(16, 16) Source(23, 16) + SourceIndex(0) name (Shapes) --- >>> function foo() { 1->^^^^ @@ -386,9 +396,9 @@ sourceFile:sourceMap-FileWithComments.ts > 2 > export function 3 > foo -1->Emitted(16, 5) Source(25, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(16, 14) Source(25, 21) + SourceIndex(0) name (Shapes) -3 >Emitted(16, 17) Source(25, 24) + SourceIndex(0) name (Shapes) +1->Emitted(17, 5) Source(25, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(17, 14) Source(25, 21) + SourceIndex(0) name (Shapes) +3 >Emitted(17, 17) Source(25, 24) + SourceIndex(0) name (Shapes) --- >>> } 1 >^^^^ @@ -397,8 +407,8 @@ sourceFile:sourceMap-FileWithComments.ts 1 >() { > 2 > } -1 >Emitted(17, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo) -2 >Emitted(17, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo) +1 >Emitted(18, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo) +2 >Emitted(18, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo) --- >>> Shapes.foo = foo; 1->^^^^ @@ -406,43 +416,60 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^ 4 > ^^^ 5 > ^ +6 > ^^^^^^^^^^-> 1-> 2 > foo 3 > 4 > foo() { > } 5 > -1->Emitted(18, 5) Source(25, 21) + SourceIndex(0) name (Shapes) -2 >Emitted(18, 15) Source(25, 24) + SourceIndex(0) name (Shapes) -3 >Emitted(18, 18) Source(25, 21) + SourceIndex(0) name (Shapes) -4 >Emitted(18, 21) Source(26, 6) + SourceIndex(0) name (Shapes) -5 >Emitted(18, 22) Source(26, 6) + SourceIndex(0) name (Shapes) +1->Emitted(19, 5) Source(25, 21) + SourceIndex(0) name (Shapes) +2 >Emitted(19, 15) Source(25, 24) + SourceIndex(0) name (Shapes) +3 >Emitted(19, 18) Source(25, 21) + SourceIndex(0) name (Shapes) +4 >Emitted(19, 21) Source(26, 6) + SourceIndex(0) name (Shapes) +5 >Emitted(19, 22) Source(26, 6) + SourceIndex(0) name (Shapes) --- ->>> var b = 10; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1 > +>>> /** comment after function +1->^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> > > /** comment after function > * this is another comment > */ > -2 > var -3 > b -4 > = -5 > 10 -6 > ; -1 >Emitted(19, 5) Source(31, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(19, 9) Source(31, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(19, 10) Source(31, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(19, 13) Source(31, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(19, 15) Source(31, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(19, 16) Source(31, 16) + SourceIndex(0) name (Shapes) +2 > +1->Emitted(20, 5) Source(31, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(20, 5) Source(28, 5) + SourceIndex(0) name (Shapes) +--- +>>> * this is another comment +>>> */ +1->^^^^^^ +2 > ^^^^^^^^^^-> +1->/** comment after function + > * this is another comment + > */ +1->Emitted(22, 7) Source(30, 7) + SourceIndex(0) name (Shapes) +--- +>>> var b = 10; +1->^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^^^-> +1-> + > var +2 > b +3 > = +4 > 10 +5 > ; +1->Emitted(23, 9) Source(31, 9) + SourceIndex(0) name (Shapes) +2 >Emitted(23, 10) Source(31, 10) + SourceIndex(0) name (Shapes) +3 >Emitted(23, 13) Source(31, 13) + SourceIndex(0) name (Shapes) +4 >Emitted(23, 15) Source(31, 15) + SourceIndex(0) name (Shapes) +5 >Emitted(23, 16) Source(31, 16) + SourceIndex(0) name (Shapes) --- >>>})(Shapes || (Shapes = {})); 1-> @@ -452,7 +479,6 @@ sourceFile:sourceMap-FileWithComments.ts 5 > ^^^^^ 6 > ^^^^^^ 7 > ^^^^^^^^ -8 > ^^^^-> 1-> > 2 >} @@ -485,60 +511,70 @@ sourceFile:sourceMap-FileWithComments.ts > */ > var b = 10; > } -1->Emitted(20, 1) Source(32, 1) + SourceIndex(0) name (Shapes) -2 >Emitted(20, 2) Source(32, 2) + SourceIndex(0) name (Shapes) -3 >Emitted(20, 4) Source(8, 8) + SourceIndex(0) -4 >Emitted(20, 10) Source(8, 14) + SourceIndex(0) -5 >Emitted(20, 15) Source(8, 8) + SourceIndex(0) -6 >Emitted(20, 21) Source(8, 14) + SourceIndex(0) -7 >Emitted(20, 29) Source(32, 2) + SourceIndex(0) +1->Emitted(24, 1) Source(32, 1) + SourceIndex(0) name (Shapes) +2 >Emitted(24, 2) Source(32, 2) + SourceIndex(0) name (Shapes) +3 >Emitted(24, 4) Source(8, 8) + SourceIndex(0) +4 >Emitted(24, 10) Source(8, 14) + SourceIndex(0) +5 >Emitted(24, 15) Source(8, 8) + SourceIndex(0) +6 >Emitted(24, 21) Source(8, 14) + SourceIndex(0) +7 >Emitted(24, 29) Source(32, 2) + SourceIndex(0) --- ->>>var p = new Shapes.Point(3, 4); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^ -9 > ^ -10> ^ -11> ^^ -12> ^ -13> ^ -14> ^ -1-> +>>>/** Local Variable */ +1 > +2 > +3 >^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > > >/** Local Variable */ > -2 >var -3 > p -4 > : IPoint = -5 > new -6 > Shapes -7 > . -8 > Point -9 > ( -10> 3 -11> , -12> 4 -13> ) -14> ; -1->Emitted(21, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(35, 5) + SourceIndex(0) -3 >Emitted(21, 6) Source(35, 6) + SourceIndex(0) -4 >Emitted(21, 9) Source(35, 17) + SourceIndex(0) -5 >Emitted(21, 13) Source(35, 21) + SourceIndex(0) -6 >Emitted(21, 19) Source(35, 27) + SourceIndex(0) -7 >Emitted(21, 20) Source(35, 28) + SourceIndex(0) -8 >Emitted(21, 25) Source(35, 33) + SourceIndex(0) -9 >Emitted(21, 26) Source(35, 34) + SourceIndex(0) -10>Emitted(21, 27) Source(35, 35) + SourceIndex(0) -11>Emitted(21, 29) Source(35, 37) + SourceIndex(0) -12>Emitted(21, 30) Source(35, 38) + SourceIndex(0) -13>Emitted(21, 31) Source(35, 39) + SourceIndex(0) -14>Emitted(21, 32) Source(35, 40) + SourceIndex(0) +2 > +3 >/** Local Variable */ +1 >Emitted(25, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(25, 1) Source(34, 1) + SourceIndex(0) +3 >Emitted(25, 22) Source(34, 22) + SourceIndex(0) +--- +>>>var p = new Shapes.Point(3, 4); +1->^^^^ +2 > ^ +3 > ^^^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^^ +8 > ^ +9 > ^ +10> ^^ +11> ^ +12> ^ +13> ^ +1-> + >var +2 > p +3 > : IPoint = +4 > new +5 > Shapes +6 > . +7 > Point +8 > ( +9 > 3 +10> , +11> 4 +12> ) +13> ; +1->Emitted(26, 5) Source(35, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(35, 6) + SourceIndex(0) +3 >Emitted(26, 9) Source(35, 17) + SourceIndex(0) +4 >Emitted(26, 13) Source(35, 21) + SourceIndex(0) +5 >Emitted(26, 19) Source(35, 27) + SourceIndex(0) +6 >Emitted(26, 20) Source(35, 28) + SourceIndex(0) +7 >Emitted(26, 25) Source(35, 33) + SourceIndex(0) +8 >Emitted(26, 26) Source(35, 34) + SourceIndex(0) +9 >Emitted(26, 27) Source(35, 35) + SourceIndex(0) +10>Emitted(26, 29) Source(35, 37) + SourceIndex(0) +11>Emitted(26, 30) Source(35, 38) + SourceIndex(0) +12>Emitted(26, 31) Source(35, 39) + SourceIndex(0) +13>Emitted(26, 32) Source(35, 40) + SourceIndex(0) --- >>>var dist = p.getDist(); 1 > @@ -561,14 +597,14 @@ sourceFile:sourceMap-FileWithComments.ts 7 > getDist 8 > () 9 > ; -1 >Emitted(22, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(36, 5) + SourceIndex(0) -3 >Emitted(22, 9) Source(36, 9) + SourceIndex(0) -4 >Emitted(22, 12) Source(36, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(36, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(36, 14) + SourceIndex(0) -7 >Emitted(22, 21) Source(36, 21) + SourceIndex(0) -8 >Emitted(22, 23) Source(36, 23) + SourceIndex(0) -9 >Emitted(22, 24) Source(36, 24) + SourceIndex(0) +1 >Emitted(27, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(36, 5) + SourceIndex(0) +3 >Emitted(27, 9) Source(36, 9) + SourceIndex(0) +4 >Emitted(27, 12) Source(36, 12) + SourceIndex(0) +5 >Emitted(27, 13) Source(36, 13) + SourceIndex(0) +6 >Emitted(27, 14) Source(36, 14) + SourceIndex(0) +7 >Emitted(27, 21) Source(36, 21) + SourceIndex(0) +8 >Emitted(27, 23) Source(36, 23) + SourceIndex(0) +9 >Emitted(27, 24) Source(36, 24) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMap-FileWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js b/tests/baselines/reference/sourceMapValidationWithComments.js index 1c64d4e2a03..2ff46670824 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.js +++ b/tests/baselines/reference/sourceMapValidationWithComments.js @@ -26,6 +26,7 @@ var DebugClass = (function () { function DebugClass() { } DebugClass.debugFunc = function () { + // Start Debugger Test Code var i = 0; i++; i++; diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js.map b/tests/baselines/reference/sourceMapValidationWithComments.js.map index 290c68a00b3..175357902dd 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,IAAM,UAAU;IAAhBA,SAAMA,UAAUA;IAoBhBC,CAACA;IAlBiBD,oBAASA,GAAvBA;QAGIE,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;QAIJA,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":["DebugClass","DebugClass.constructor","DebugClass.debugFunc"],"mappings":"AAAA,IAAM,UAAU;IAAhBA,SAAMA,UAAUA;IAoBhBC,CAACA;IAlBiBD,oBAASA,GAAvBA;QAGIE,AADAA,2BAA2BA;YACvBA,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;QAIJA,MAAMA,CAACA,IAAIA,CAACA;IAChBA,CAACA;IACLF,iBAACA;AAADA,CAACA,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 68fe38161b9..e77e093a757 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt @@ -64,6 +64,7 @@ sourceFile:sourceMapValidationWithComments.ts 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^ 3 > ^^^ +4 > ^^^^^^^^^-> 1-> 2 > debugFunc 3 > @@ -71,28 +72,37 @@ sourceFile:sourceMapValidationWithComments.ts 2 >Emitted(4, 25) Source(3, 28) + SourceIndex(0) name (DebugClass) 3 >Emitted(4, 28) Source(3, 5) + SourceIndex(0) name (DebugClass) --- ->>> var i = 0; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -1 >public static debugFunc() { +>>> // Start Debugger Test Code +1->^^^^^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1->public static debugFunc() { > > // Start Debugger Test Code > -2 > var -3 > i -4 > = -5 > 0 -6 > ; -1 >Emitted(5, 9) Source(6, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(5, 13) Source(6, 13) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(5, 14) Source(6, 14) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(5, 17) Source(6, 17) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(5, 18) Source(6, 18) + SourceIndex(0) name (DebugClass.debugFunc) -6 >Emitted(5, 19) Source(6, 19) + SourceIndex(0) name (DebugClass.debugFunc) +2 > +3 > // Start Debugger Test Code +1->Emitted(5, 9) Source(6, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(5, 36) Source(5, 36) + SourceIndex(0) name (DebugClass.debugFunc) +--- +>>> var i = 0; +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^ +5 > ^ +1 > + > var +2 > i +3 > = +4 > 0 +5 > ; +1 >Emitted(6, 13) Source(6, 13) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(6, 17) Source(6, 17) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(6, 18) Source(6, 18) + SourceIndex(0) name (DebugClass.debugFunc) +5 >Emitted(6, 19) Source(6, 19) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1 >^^^^^^^^ @@ -105,10 +115,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1 >Emitted(6, 9) Source(7, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(6, 10) Source(7, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(6, 12) Source(7, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(6, 13) Source(7, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -121,10 +131,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(7, 9) Source(8, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(7, 10) Source(8, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(7, 12) Source(8, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(7, 13) Source(8, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -137,10 +147,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(8, 9) Source(9, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(8, 13) Source(9, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -153,10 +163,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(9, 9) Source(10, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(9, 10) Source(10, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(9, 13) Source(10, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -169,10 +179,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(10, 9) Source(11, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(10, 10) Source(11, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(10, 12) Source(11, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(10, 13) Source(11, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -185,10 +195,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(11, 9) Source(12, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(11, 10) Source(12, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(11, 12) Source(12, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(11, 13) Source(12, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -201,10 +211,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(12, 9) Source(13, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(12, 10) Source(13, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(12, 12) Source(13, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(12, 13) Source(13, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -217,10 +227,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(13, 9) Source(14, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(13, 10) Source(14, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(13, 12) Source(14, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(13, 13) Source(14, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> i++; 1->^^^^^^^^ @@ -233,10 +243,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(14, 9) Source(15, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(14, 10) Source(15, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(14, 12) Source(15, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(14, 13) Source(15, 13) + SourceIndex(0) name (DebugClass.debugFunc) +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) --- >>> return true; 1->^^^^^^^^ @@ -253,11 +263,11 @@ sourceFile:sourceMapValidationWithComments.ts 3 > 4 > true 5 > ; -1->Emitted(15, 9) Source(19, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(15, 15) Source(19, 15) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(15, 16) Source(19, 16) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(15, 20) Source(19, 20) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(15, 21) Source(19, 21) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(16, 9) Source(19, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(16, 15) Source(19, 15) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(16, 16) Source(19, 16) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(16, 20) Source(19, 20) + SourceIndex(0) name (DebugClass.debugFunc) +5 >Emitted(16, 21) Source(19, 21) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> }; 1 >^^^^ @@ -266,8 +276,8 @@ sourceFile:sourceMapValidationWithComments.ts 1 > > 2 > } -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(16, 6) Source(20, 6) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(17, 5) Source(20, 5) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(17, 6) Source(20, 6) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> return DebugClass; 1->^^^^ @@ -275,8 +285,8 @@ sourceFile:sourceMapValidationWithComments.ts 1-> > 2 > } -1->Emitted(17, 5) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(17, 22) Source(21, 2) + SourceIndex(0) name (DebugClass) +1->Emitted(18, 5) Source(21, 1) + SourceIndex(0) name (DebugClass) +2 >Emitted(18, 22) Source(21, 2) + SourceIndex(0) name (DebugClass) --- >>>})(); 1 > @@ -308,9 +318,9 @@ sourceFile:sourceMapValidationWithComments.ts > return true; > } > } -1 >Emitted(18, 1) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(18, 2) Source(21, 2) + SourceIndex(0) name (DebugClass) -3 >Emitted(18, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(18, 6) Source(21, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(21, 1) + SourceIndex(0) name (DebugClass) +2 >Emitted(19, 2) Source(21, 2) + SourceIndex(0) name (DebugClass) +3 >Emitted(19, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(21, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/staticInstanceResolution5.js b/tests/baselines/reference/staticInstanceResolution5.js index 45a4fb726ab..6ca976ae46a 100644 --- a/tests/baselines/reference/staticInstanceResolution5.js +++ b/tests/baselines/reference/staticInstanceResolution5.js @@ -18,6 +18,7 @@ function z(w3: WinJS) { } //// [staticInstanceResolution5_1.js] define(["require", "exports"], function (require, exports) { + // these 3 should be errors var x = function (w1) { }; var y = function (w2) { diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index d49fd7c1fe4..95e218816a0 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -70,6 +70,7 @@ var Foo = (function () { return Foo; })(); var a; +// error var b = { a: A, b: B diff --git a/tests/baselines/reference/styleOptions.js b/tests/baselines/reference/styleOptions.js index f17ce9a71eb..d2eb79937c3 100644 --- a/tests/baselines/reference/styleOptions.js +++ b/tests/baselines/reference/styleOptions.js @@ -8,6 +8,7 @@ var t = x == y; //// [styleOptions.js] +///