mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Tests passing and lib loading
This commit is contained in:
+16
-3
@@ -237,7 +237,7 @@ function compileConfigFile(outFile, prereqs, configFile, prefixes, useBuiltCompi
|
||||
file(outFile, allPrereqs, function () {
|
||||
const startCompileTime = mark();
|
||||
const compilerPath = useBuiltCompiler ? builtLocalCompiler : LKGCompiler;
|
||||
const cmd = `${host} ${compilerPath} -b -v ${configFile}`;
|
||||
const cmd = `${host} ${compilerPath} -b ${configFile}`;
|
||||
console.log(cmd + "\n");
|
||||
|
||||
var ex = jake.createExec([cmd]);
|
||||
@@ -614,7 +614,18 @@ task("build-fold-end", [], function () {
|
||||
|
||||
// Local target to build the compiler and services
|
||||
desc("Builds the full compiler and services");
|
||||
task("local", ["build-fold-start", "generate-diagnostics", "lib", tscFile, servicesFile, typingsInstallerFile, nodeDefinitionsFile, serverFile, buildProtocolDts, builtGeneratedDiagnosticMessagesJSON, run, "lssl", "localize", "build-fold-end"]);
|
||||
task("local", ["build-fold-start", "generate-diagnostics", "lib",
|
||||
tscFile,
|
||||
servicesFile,
|
||||
typingsInstallerFile,
|
||||
cancellationTokenFile,
|
||||
watchGuardFile,
|
||||
nodeDefinitionsFile,
|
||||
serverFile,
|
||||
buildProtocolDts,
|
||||
builtGeneratedDiagnosticMessagesJSON,
|
||||
run,
|
||||
"lssl", "localize", "build-fold-end"]);
|
||||
|
||||
// Local target to build only tsc.js
|
||||
desc("Builds only the compiler");
|
||||
@@ -693,10 +704,12 @@ task("LKG", ["clean", "release", "local"].concat(libraryTargets), () => {
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
const sizeAfter = getDirSize(LKGDirectory);
|
||||
if (sizeAfter > (sizeBefore * 1.10)) {
|
||||
throw new Error("The lib folder increased by 10% or more. This likely indicates a bug.");
|
||||
}
|
||||
}*/
|
||||
|
||||
});
|
||||
|
||||
// Test directory
|
||||
|
||||
@@ -69,3 +69,4 @@ function createCancellationToken(args) {
|
||||
}
|
||||
}
|
||||
module.exports = createCancellationToken;
|
||||
//# sourceMappingURL=cancellationToken.js.map
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Soubor tsconfig.json nejde najít v zadaném adresáři: {0}",
|
||||
"Cannot_find_global_type_0_2318": "Globální typ {0} se nenašel.",
|
||||
"Cannot_find_global_value_0_2468": "Globální hodnota {0} se nenašla.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Nepovedlo se najít definici knihovny pro {0}.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Nepovedlo se najít definici knihovny pro {0}. Neměli jste na mysli spíš {1}?",
|
||||
"Cannot_find_module_0_2307": "Nenašel se modul {0}.",
|
||||
"Cannot_find_name_0_2304": "Název {0} se nenašel.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Nepovedlo se najít název {0}. Měli jste na mysli {1}?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Neočekávaný konec textu",
|
||||
"Unexpected_token_1012": "Neočekávaný token",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Neočekávaný token. Očekával se konstruktor, metoda, přístupový objekt nebo vlastnost.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Neočekávaný token. Očekával se název parametru typu bez složených závorek.",
|
||||
"Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.",
|
||||
"Unknown_compiler_option_0_5023": "Neznámá možnost kompilátoru {0}",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Neznámá možnost excludes. Měli jste na mysli exclude?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Im angegebenen Verzeichnis \"{0}\" wurde keine \"tsconfig.json\"-Datei gefunden.",
|
||||
"Cannot_find_global_type_0_2318": "Der globale Typ \"{0}\" wurde nicht gefunden.",
|
||||
"Cannot_find_global_value_0_2468": "Der globale Wert \"{0}\" wurde nicht gefunden.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Das Modul \"{0}\" wurde nicht gefunden.",
|
||||
"Cannot_find_name_0_2304": "Der Name \"{0}\" wurde nicht gefunden.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?",
|
||||
@@ -282,6 +284,8 @@
|
||||
"Convert_all_to_default_imports_95035": "Alle in Standardimporte konvertieren",
|
||||
"Convert_function_0_to_class_95002": "Funktion \"{0}\" in Klasse konvertieren",
|
||||
"Convert_function_to_an_ES2015_class_95001": "Funktion in eine ES2015-Klasse konvertieren",
|
||||
"Convert_named_imports_to_namespace_import_95057": "Benannte Importe in Namespaceimport konvertieren",
|
||||
"Convert_namespace_import_to_named_imports_95056": "Namespaceimport in benannte Importe konvertieren",
|
||||
"Convert_require_to_import_95047": "\"require\" in \"import\" konvertieren",
|
||||
"Convert_to_ES6_module_95017": "In ES6-Modul konvertieren",
|
||||
"Convert_to_default_import_95013": "In Standardimport konvertieren",
|
||||
@@ -584,6 +588,7 @@
|
||||
"Not_all_code_paths_return_a_value_7030": "Nicht alle Codepfade geben einen Wert zurück.",
|
||||
"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413": "Der numerische Indextyp \"{0}\" kann dem Zeichenfolgen-Indextyp \"{1}\" nicht zugewiesen werden.",
|
||||
"Numeric_separators_are_not_allowed_here_6188": "Numerische Trennzeichen sind hier nicht zulässig.",
|
||||
"Object_is_of_type_unknown_2571": "Das Objekt ist vom Typ \"Unbekannt\".",
|
||||
"Object_is_possibly_null_2531": "Das Objekt ist möglicherweise \"NULL\".",
|
||||
"Object_is_possibly_null_or_undefined_2533": "Das Objekt ist möglicherweise \"NULL\" oder \"nicht definiert\".",
|
||||
"Object_is_possibly_undefined_2532": "Das Objekt ist möglicherweise \"nicht definiert\".",
|
||||
@@ -938,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Unerwartetes Textende.",
|
||||
"Unexpected_token_1012": "Unerwartetes Token.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Unerwartetes Token. Ein Konstruktor, eine Methode, eine Zugriffsmethode oder eine Eigenschaft wurde erwartet.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Unerwartetes Token. Es wurde ein Typparametername ohne geschweifte Klammern erwartet.",
|
||||
"Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.",
|
||||
"Unknown_compiler_option_0_5023": "Unbekannte Compileroption \"{0}\".",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Unbekannte Option \"exclude\". Meinten Sie \"exclude\"?",
|
||||
|
||||
@@ -309,6 +309,18 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";A_non_dry_build_would_build_project_0_6357" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[A non-dry build would build project '{0}']]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";A_non_dry_build_would_delete_the_following_files_Colon_0_6356" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[A non-dry build would delete the following files: {0}]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[A parameter initializer is only allowed in a function or constructor implementation.]]></Val>
|
||||
@@ -1149,6 +1161,24 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Build_all_projects_including_those_that_appear_to_be_up_to_date_6368" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Build all projects, including those that appear to be up to date]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Build one or more projects and their dependencies, if out of date]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Building_project_0_6358" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Building project '{0}'...]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Call_decorator_expression_90028" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Call decorator expression]]></Val>
|
||||
@@ -1263,6 +1293,18 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Cannot_find_lib_definition_for_0_2726" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Cannot find lib definition for '{0}'.]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Cannot_find_lib_definition_for_0_Did_you_mean_1_2727" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Cannot find lib definition for '{0}'. Did you mean '{1}'?]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Cannot_find_module_0_2307" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Cannot find module '{0}'.]]></Val>
|
||||
@@ -1827,6 +1869,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Delete_the_outputs_of_all_projects_6365" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Delete the outputs of all projects]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[[Deprecated]5D; Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit]]></Val>
|
||||
@@ -2127,6 +2175,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Enable_verbose_logging_6366" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Enable verbose logging]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.]]></Val>
|
||||
@@ -3693,6 +3747,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Option_build_must_be_the_first_command_line_argument_6369" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Option '--build' must be the first command line argument.]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.]]></Val>
|
||||
@@ -3717,6 +3777,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Options_0_and_1_cannot_be_combined_6370" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Options '{0}' and '{1}' cannot be combined.]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Options_Colon_6027" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Options:]]></Val>
|
||||
@@ -3999,12 +4065,60 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' can't be built because its dependency '{1}' has errors]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is out of date because its dependency '{1}' is out of date]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}']]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is out of date because output file '{1}' does not exist]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_up_to_date_6361" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is up to date]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}']]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project '{0}' is up to date with .d.ts files from its dependencies]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Project references may not form a circular graph. Cycle detected: {0}]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Projects_in_this_build_Colon_0_6355" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Projects in this build: {0}]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Projects_to_reference_6300" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Projects to reference]]></Val>
|
||||
@@ -4683,6 +4797,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Show_what_would_be_built_or_deleted_if_specified_with_clean_6367" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Show what would be built (or deleted, if specified with '--clean')]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Signature_0_must_be_a_type_predicate_1224" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Signature '{0}' must be a type predicate.]]></Val>
|
||||
@@ -4695,6 +4815,18 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Skipping build of project '{0}' because its dependency '{1}' has errors]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Skipping_clean_because_not_all_projects_could_be_located_6371" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Skipping clean because not all projects could be located]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Source_Map_Options_6175" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Source Map Options]]></Val>
|
||||
@@ -5745,6 +5877,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Updating_output_timestamps_of_project_0_6359" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Updating output timestamps of project '{0}'...]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";Use_synthetic_default_member_95016" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[Use synthetic 'default' member.]]></Val>
|
||||
@@ -6105,6 +6243,12 @@
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA[delete this - Project '{0}' is up to date because it was previously built]]></Val>
|
||||
</Str>
|
||||
<Disp Icon="Str" />
|
||||
</Item>
|
||||
<Item ItemId=";enum_declarations_can_only_be_used_in_a_ts_file_8015" ItemType="0" PsrId="306" Leaf="true">
|
||||
<Str Cat="Text">
|
||||
<Val><![CDATA['enum declarations' can only be used in a .ts file.]]></Val>
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "No se encuentra ningún archivo tsconfig.json en el directorio especificado: \"{0}\".",
|
||||
"Cannot_find_global_type_0_2318": "No se encuentra el tipo '{0}' global.",
|
||||
"Cannot_find_global_value_0_2468": "No se encuentra el valor '{0}' global.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "No se encuentra el módulo '{0}'.",
|
||||
"Cannot_find_name_0_2304": "No se encuentra el nombre '{0}'.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "No se encuentra el nombre \"{0}\". ¿Quería decir \"{1}\"?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Final de texto inesperado.",
|
||||
"Unexpected_token_1012": "Token inesperado.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Se esperaba un constructor, un método, un descriptor de acceso o una propiedad.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Se esperaba un nombre de parámetro de tipo sin llaves.",
|
||||
"Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".",
|
||||
"Unknown_compiler_option_0_5023": "Opción '{0}' del compilador desconocida.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Opción 'excludes' desconocida. ¿Quería decir 'exclude'?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Le fichier tsconfig.json est introuvable dans le répertoire spécifié : '{0}'.",
|
||||
"Cannot_find_global_type_0_2318": "Le type global '{0}' est introuvable.",
|
||||
"Cannot_find_global_value_0_2468": "La valeur globale '{0}' est introuvable.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Le module '{0}' est introuvable.",
|
||||
"Cannot_find_name_0_2304": "Le nom '{0}' est introuvable.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Le nom '{0}' est introuvable. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Fin de texte inattendue.",
|
||||
"Unexpected_token_1012": "Jeton inattendu.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Jeton inattendu. Un constructeur, une méthode, un accesseur ou une propriété est attendu.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Jeton inattendu. Un nom de paramètre de type est attendu sans accolades.",
|
||||
"Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.",
|
||||
"Unknown_compiler_option_0_5023": "Option de compilateur '{0}' inconnue.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Option 'excludes' inconnue. Voulez-vous utiliser 'exclude' ?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Non è stato trovato alcun file tsconfig.json nella directory specificata '{0}'.",
|
||||
"Cannot_find_global_type_0_2318": "Il tipo globale '{0}' non è stato trovato.",
|
||||
"Cannot_find_global_value_0_2468": "Il valore globale '{0}' non è stato trovato.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "La definizione della libreria per '{0}' non è stata trovata.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "La definizione della libreria per '{0}' non è stata trovata. Si intendeva '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Il modulo '{0}' non è stato trovato.",
|
||||
"Cannot_find_name_0_2304": "Il nome '{0}' non è stato trovato.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Il nome '{0}' non è stato trovato. Si intendeva '{1}'?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Fine del testo imprevista.",
|
||||
"Unexpected_token_1012": "Token imprevisto.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token imprevisto. È previsto un costruttore, un metodo, una funzione di accesso o una proprietà.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token imprevisto. Sono previsti nomi di parametro senza parentesi graffe.",
|
||||
"Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.",
|
||||
"Unknown_compiler_option_0_5023": "Opzione del compilatore sconosciuta: '{0}'.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "L'opzione 'excludes' è sconosciuta. Si intendeva 'exclude'?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "指定されたディレクトリに tsconfig.json ファイルが見つかりません: '{0}'。",
|
||||
"Cannot_find_global_type_0_2318": "グローバル型 '{0}' が見つかりません。",
|
||||
"Cannot_find_global_value_0_2468": "グローバル値 '{0}' が見つかりません。",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "モジュール '{0}' が見つかりません。",
|
||||
"Cannot_find_name_0_2304": "名前 '{0}' が見つかりません。",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' という名前は見つかりません。'{1}' ですか?",
|
||||
@@ -282,6 +284,8 @@
|
||||
"Convert_all_to_default_imports_95035": "すべてを既定のインポートに変換します",
|
||||
"Convert_function_0_to_class_95002": "関数 '{0}' をクラスに変換します",
|
||||
"Convert_function_to_an_ES2015_class_95001": "関数を ES2015 クラスに変換します",
|
||||
"Convert_named_imports_to_namespace_import_95057": "名前付きインポートを名前空間インポートに変換します",
|
||||
"Convert_namespace_import_to_named_imports_95056": "名前空間インポートを名前付きインポートに変換します",
|
||||
"Convert_require_to_import_95047": "'require' を 'import' に変換",
|
||||
"Convert_to_ES6_module_95017": "ES6 モジュールに変換します",
|
||||
"Convert_to_default_import_95013": "既定のインポートに変換する",
|
||||
@@ -584,6 +588,7 @@
|
||||
"Not_all_code_paths_return_a_value_7030": "一部のコード パスは値を返しません。",
|
||||
"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413": "数値インデックス型 '{0}' を文字列インデックス型 '{1}' に割り当てることはできません。",
|
||||
"Numeric_separators_are_not_allowed_here_6188": "数値の区切り記号は、ここでは使用できません。",
|
||||
"Object_is_of_type_unknown_2571": "オブジェクト型は 'unknown' です。",
|
||||
"Object_is_possibly_null_2531": "オブジェクトは 'null' である可能性があります。",
|
||||
"Object_is_possibly_null_or_undefined_2533": "オブジェクトは 'null' か 'undefined' である可能性があります。",
|
||||
"Object_is_possibly_undefined_2532": "オブジェクトは 'undefined' である可能性があります。",
|
||||
@@ -938,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "予期しないテキストの末尾です。",
|
||||
"Unexpected_token_1012": "予期しないトークンです。",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "予期しないトークンです。コンストラクター、メソッド、アクセサー、またはプロパティが必要です。",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "予期しないトークンです。型パラメーター名には、中かっこを含めることはできません。",
|
||||
"Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。",
|
||||
"Unknown_compiler_option_0_5023": "コンパイラ オプション '{0}' が不明です。",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "不明なオプション 'excludes' です。'exclude' ですか?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "지정된 디렉터리에서 tsconfig.json 파일을 찾을 수 없습니다. '{0}'.",
|
||||
"Cannot_find_global_type_0_2318": "전역 형식 '{0}'을(를) 찾을 수 없습니다.",
|
||||
"Cannot_find_global_value_0_2468": "전역 값 '{0}'을(를) 찾을 수 없습니다.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "'{0}' 모듈을 찾을 수 없습니다.",
|
||||
"Cannot_find_name_0_2304": "'{0}' 이름을 찾을 수 없습니다.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "예기치 않은 텍스트 끝입니다.",
|
||||
"Unexpected_token_1012": "예기치 않은 토큰입니다.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "예기치 않은 토큰입니다. 생성자, 메서드, 접근자 또는 속성이 필요합니다.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "예기치 않은 토큰입니다. 중괄호가 없는 형식 매개 변수 이름이 필요합니다.",
|
||||
"Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.",
|
||||
"Unknown_compiler_option_0_5023": "알 수 없는 컴파일러 옵션 '{0}'입니다.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "알 수 없는 옵션 'excludes'입니다. 'exclude'를 사용하시겠습니까?",
|
||||
|
||||
Vendored
+4
-20540
File diff suppressed because it is too large
Load Diff
Vendored
+2147
-929
File diff suppressed because it is too large
Load Diff
Vendored
+126
-53
@@ -18,12 +18,84 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.dom.d.ts" />
|
||||
/////////////////////////////
|
||||
/// DOM Iterable APIs
|
||||
/////////////////////////////
|
||||
|
||||
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
||||
}
|
||||
|
||||
interface AudioTrackList {
|
||||
[Symbol.iterator](): IterableIterator<AudioTrack>;
|
||||
}
|
||||
|
||||
interface CSSRuleList {
|
||||
[Symbol.iterator](): IterableIterator<CSSRule>;
|
||||
}
|
||||
|
||||
interface CSSStyleDeclaration {
|
||||
[Symbol.iterator](): IterableIterator<string>;
|
||||
}
|
||||
|
||||
interface ClientRectList {
|
||||
[Symbol.iterator](): IterableIterator<ClientRect>;
|
||||
}
|
||||
|
||||
interface DOMRectList {
|
||||
[Symbol.iterator](): IterableIterator<DOMRect>;
|
||||
}
|
||||
|
||||
interface DOMStringList {
|
||||
[Symbol.iterator](): IterableIterator<string>;
|
||||
}
|
||||
|
||||
interface DOMTokenList {
|
||||
[Symbol.iterator](): IterableIterator<string>;
|
||||
}
|
||||
|
||||
interface DataTransferItemList {
|
||||
[Symbol.iterator](): IterableIterator<File>;
|
||||
}
|
||||
|
||||
interface FileList {
|
||||
[Symbol.iterator](): IterableIterator<File>;
|
||||
}
|
||||
|
||||
interface FormData {
|
||||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the list.
|
||||
*/
|
||||
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
||||
/**
|
||||
* Returns a list of keys in the list.
|
||||
*/
|
||||
keys(): IterableIterator<string>;
|
||||
/**
|
||||
* Returns a list of values in the list.
|
||||
*/
|
||||
values(): IterableIterator<FormDataEntryValue>;
|
||||
}
|
||||
|
||||
interface HTMLAllCollection {
|
||||
[Symbol.iterator](): IterableIterator<Element>;
|
||||
}
|
||||
|
||||
interface HTMLCollectionBase {
|
||||
[Symbol.iterator](): IterableIterator<Element>;
|
||||
}
|
||||
|
||||
interface HTMLCollectionOf<T extends Element> {
|
||||
[Symbol.iterator](): IterableIterator<T>;
|
||||
entries(): IterableIterator<[number, T]>;
|
||||
keys(): IterableIterator<number>;
|
||||
values(): IterableIterator<T>;
|
||||
}
|
||||
|
||||
interface HTMLSelectElement {
|
||||
[Symbol.iterator](): IterableIterator<Element>;
|
||||
}
|
||||
|
||||
interface Headers {
|
||||
[Symbol.iterator](): IterableIterator<[string, string]>;
|
||||
/**
|
||||
@@ -31,7 +103,7 @@ interface Headers {
|
||||
*/
|
||||
entries(): IterableIterator<[string, string]>;
|
||||
/**
|
||||
* Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.
|
||||
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
||||
*/
|
||||
keys(): IterableIterator<string>;
|
||||
/**
|
||||
@@ -40,96 +112,97 @@ interface Headers {
|
||||
values(): IterableIterator<string>;
|
||||
}
|
||||
|
||||
interface MediaList {
|
||||
[Symbol.iterator](): IterableIterator<string>;
|
||||
}
|
||||
|
||||
interface MimeTypeArray {
|
||||
[Symbol.iterator](): IterableIterator<Plugin>;
|
||||
}
|
||||
|
||||
interface NamedNodeMap {
|
||||
[Symbol.iterator](): IterableIterator<Attr>;
|
||||
}
|
||||
|
||||
interface NodeList {
|
||||
[Symbol.iterator](): IterableIterator<Node>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the list
|
||||
* Returns an array of key, value pairs for every entry in the list.
|
||||
*/
|
||||
entries(): IterableIterator<[number, Node]>;
|
||||
/**
|
||||
* Performs the specified action for each node in an list.
|
||||
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(callbackfn: (value: Node, index: number, listObj: NodeList) => void, thisArg?: any): void;
|
||||
/**
|
||||
* Returns an list of keys in the list
|
||||
* Returns an list of keys in the list.
|
||||
*/
|
||||
keys(): IterableIterator<number>;
|
||||
|
||||
/**
|
||||
* Returns an list of values in the list
|
||||
* Returns an list of values in the list.
|
||||
*/
|
||||
values(): IterableIterator<Node>;
|
||||
|
||||
|
||||
[Symbol.iterator](): IterableIterator<Node>;
|
||||
}
|
||||
|
||||
interface NodeListOf<TNode extends Node> {
|
||||
|
||||
[Symbol.iterator](): IterableIterator<TNode>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the list
|
||||
* Returns an array of key, value pairs for every entry in the list.
|
||||
*/
|
||||
entries(): IterableIterator<[number, TNode]>;
|
||||
|
||||
/**
|
||||
* Performs the specified action for each node in an list.
|
||||
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(callbackfn: (value: TNode, index: number, listObj: NodeListOf<TNode>) => void, thisArg?: any): void;
|
||||
/**
|
||||
* Returns an list of keys in the list
|
||||
* Returns an list of keys in the list.
|
||||
*/
|
||||
keys(): IterableIterator<number>;
|
||||
/**
|
||||
* Returns an list of values in the list
|
||||
* Returns an list of values in the list.
|
||||
*/
|
||||
values(): IterableIterator<TNode>;
|
||||
|
||||
[Symbol.iterator](): IterableIterator<TNode>;
|
||||
}
|
||||
|
||||
interface HTMLCollectionBase {
|
||||
[Symbol.iterator](): IterableIterator<Element>;
|
||||
interface Plugin {
|
||||
[Symbol.iterator](): IterableIterator<MimeType>;
|
||||
}
|
||||
|
||||
interface HTMLCollectionOf<T extends Element> {
|
||||
[Symbol.iterator](): IterableIterator<T>;
|
||||
interface PluginArray {
|
||||
[Symbol.iterator](): IterableIterator<Plugin>;
|
||||
}
|
||||
|
||||
interface FormData {
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the list
|
||||
*/
|
||||
entries(): IterableIterator<[string, string | File]>;
|
||||
/**
|
||||
* Returns a list of keys in the list
|
||||
*/
|
||||
keys(): IterableIterator<string>;
|
||||
/**
|
||||
* Returns a list of values in the list
|
||||
*/
|
||||
values(): IterableIterator<string | File>;
|
||||
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
||||
}
|
||||
|
||||
[Symbol.iterator](): IterableIterator<string | File>;
|
||||
interface SourceBufferList {
|
||||
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
||||
}
|
||||
|
||||
interface StyleSheetList {
|
||||
[Symbol.iterator](): IterableIterator<StyleSheet>;
|
||||
}
|
||||
|
||||
interface TextTrackCueList {
|
||||
[Symbol.iterator](): IterableIterator<TextTrackCue>;
|
||||
}
|
||||
|
||||
interface TextTrackList {
|
||||
[Symbol.iterator](): IterableIterator<TextTrack>;
|
||||
}
|
||||
|
||||
interface TouchList {
|
||||
[Symbol.iterator](): IterableIterator<Touch>;
|
||||
}
|
||||
|
||||
interface URLSearchParams {
|
||||
[Symbol.iterator](): IterableIterator<[string, string]>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the search params
|
||||
* Returns an array of key, value pairs for every entry in the search params.
|
||||
*/
|
||||
entries(): IterableIterator<[string, string]>;
|
||||
/**
|
||||
* Returns a list of keys in the search params
|
||||
* Returns a list of keys in the search params.
|
||||
*/
|
||||
keys(): IterableIterator<string>;
|
||||
/**
|
||||
* Returns a list of values in the search params
|
||||
* Returns a list of values in the search params.
|
||||
*/
|
||||
values(): IterableIterator<string>;
|
||||
/**
|
||||
* iterate over key/value pairs
|
||||
*/
|
||||
[Symbol.iterator](): IterableIterator<[string, string]>;
|
||||
}
|
||||
|
||||
interface VideoTrackList {
|
||||
[Symbol.iterator](): IterableIterator<VideoTrack>;
|
||||
}
|
||||
|
||||
Vendored
+10
-10
@@ -18,13 +18,13 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.core.d.ts" />
|
||||
/// <reference path="lib.es2015.collection.d.ts" />
|
||||
/// <reference path="lib.es2015.generator.d.ts" />
|
||||
/// <reference path="lib.es2015.promise.d.ts" />
|
||||
/// <reference path="lib.es2015.iterable.d.ts" />
|
||||
/// <reference path="lib.es2015.proxy.d.ts" />
|
||||
/// <reference path="lib.es2015.reflect.d.ts" />
|
||||
/// <reference path="lib.es2015.symbol.d.ts" />
|
||||
/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
|
||||
/// <reference path="lib.es5.d.ts" />
|
||||
/// <reference lib="es5" />
|
||||
/// <reference lib="es2015.core" />
|
||||
/// <reference lib="es2015.collection" />
|
||||
/// <reference lib="es2015.generator" />
|
||||
/// <reference lib="es2015.promise" />
|
||||
/// <reference lib="es2015.iterable" />
|
||||
/// <reference lib="es2015.proxy" />
|
||||
/// <reference lib="es2015.reflect" />
|
||||
/// <reference lib="es2015.symbol" />
|
||||
/// <reference lib="es2015.symbol.wellknown" />
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.symbol.d.ts" />
|
||||
/// <reference lib="es2015.symbol" />
|
||||
|
||||
interface SymbolConstructor {
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.symbol.d.ts" />
|
||||
/// <reference lib="es2015.symbol" />
|
||||
|
||||
interface SymbolConstructor {
|
||||
/**
|
||||
|
||||
Vendored
+2
-2
@@ -18,5 +18,5 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.d.ts" />
|
||||
/// <reference path="lib.es2016.array.include.d.ts" />
|
||||
/// <reference lib="es2015" />
|
||||
/// <reference lib="es2016.array.include" />
|
||||
Vendored
+5
-16505
File diff suppressed because it is too large
Load Diff
Vendored
+6
-6
@@ -18,9 +18,9 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2016.d.ts" />
|
||||
/// <reference path="lib.es2017.object.d.ts" />
|
||||
/// <reference path="lib.es2017.sharedmemory.d.ts" />
|
||||
/// <reference path="lib.es2017.string.d.ts" />
|
||||
/// <reference path="lib.es2017.intl.d.ts" />
|
||||
/// <reference path="lib.es2017.typedarrays.d.ts" />
|
||||
/// <reference lib="es2016" />
|
||||
/// <reference lib="es2017.object" />
|
||||
/// <reference lib="es2017.sharedmemory" />
|
||||
/// <reference lib="es2017.string" />
|
||||
/// <reference lib="es2017.intl" />
|
||||
/// <reference lib="es2017.typedarrays" />
|
||||
|
||||
Vendored
+5
-16510
File diff suppressed because it is too large
Load Diff
Vendored
+2
-2
@@ -18,8 +18,8 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.symbol.d.ts" />
|
||||
/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
|
||||
/// <reference lib="es2015.symbol" />
|
||||
/// <reference lib="es2015.symbol.wellknown" />
|
||||
|
||||
interface SharedArrayBuffer {
|
||||
/**
|
||||
|
||||
Vendored
+4
-4
@@ -18,7 +18,7 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2017.d.ts" />
|
||||
/// <reference path="lib.es2018.promise.d.ts" />
|
||||
/// <reference path="lib.es2018.regexp.d.ts" />
|
||||
/// <reference path="lib.es2018.intl.d.ts" />
|
||||
/// <reference lib="es2017" />
|
||||
/// <reference lib="es2018.promise" />
|
||||
/// <reference lib="es2018.regexp" />
|
||||
/// <reference lib="es2018.intl" />
|
||||
|
||||
Vendored
+5
-16508
File diff suppressed because it is too large
Load Diff
Vendored
+5
-22318
File diff suppressed because it is too large
Load Diff
Vendored
+2
-2
@@ -18,8 +18,8 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2015.symbol.d.ts" />
|
||||
/// <reference path="lib.es2015.iterable.d.ts" />
|
||||
/// <reference lib="es2015.symbol" />
|
||||
/// <reference lib="es2015.iterable" />
|
||||
|
||||
interface SymbolConstructor {
|
||||
/**
|
||||
|
||||
Vendored
+4
-4
@@ -18,7 +18,7 @@ and limitations under the License.
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
/// <reference path="lib.es2018.d.ts" />
|
||||
/// <reference path="lib.esnext.asynciterable.d.ts" />
|
||||
/// <reference path="lib.esnext.array.d.ts" />
|
||||
/// <reference path="lib.esnext.symbol.d.ts" />
|
||||
/// <reference lib="es2018" />
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/// <reference lib="esnext.array" />
|
||||
/// <reference lib="esnext.symbol" />
|
||||
|
||||
Vendored
+5
-16508
File diff suppressed because it is too large
Load Diff
Vendored
+1147
-315
File diff suppressed because it is too large
Load Diff
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
/// WorkerGlobalScope APIs
|
||||
/////////////////////////////
|
||||
// These are only available in a Web Worker
|
||||
declare function importScripts(...urls: string[]): void;
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Nie można znaleźć pliku tsconfig.json w określonym katalogu: „{0}”.",
|
||||
"Cannot_find_global_type_0_2318": "Nie można odnaleźć typu globalnego „{0}”.",
|
||||
"Cannot_find_global_value_0_2468": "Nie można odnaleźć wartości globalnej „{0}”.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Nie można odnaleźć modułu „{0}”.",
|
||||
"Cannot_find_name_0_2304": "Nie można odnaleźć nazwy „{0}”.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Nie można znaleźć nazwy „{0}”. Czy chodziło Ci o „{1}”?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Nieoczekiwany koniec tekstu.",
|
||||
"Unexpected_token_1012": "Nieoczekiwany token.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Nieoczekiwany token. Oczekiwano konstruktora, metody, metody dostępu lub właściwości.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Nieoczekiwany token. Oczekiwano nazwy parametru typu bez nawiasów klamrowych.",
|
||||
"Unexpected_token_expected_1179": "Nieoczekiwany token. Oczekiwano znaku „{”.",
|
||||
"Unknown_compiler_option_0_5023": "Nieznana opcja kompilatora „{0}”.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Nieznana opcja „excludes”. Czy chodziło o „exclude”?",
|
||||
|
||||
Vendored
+1
@@ -2005,6 +2005,7 @@ declare namespace ts.server.protocol {
|
||||
kind: ScriptElementKind;
|
||||
kindModifiers: string;
|
||||
spans: TextSpan[];
|
||||
nameSpan: TextSpan | undefined;
|
||||
childItems?: NavigationTree[];
|
||||
}
|
||||
type TelemetryEventName = "telemetry";
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Não é possível encontrar um arquivo tsconfig.json no diretório especificado: '{0}'.",
|
||||
"Cannot_find_global_type_0_2318": "Não é possível encontrar o tipo global '{0}'.",
|
||||
"Cannot_find_global_value_0_2468": "Não é possível encontrar o valor global '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Não é possível encontrar o módulo '{0}'.",
|
||||
"Cannot_find_name_0_2304": "Não é possível encontrar o nome '{0}'.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Não é possível localizar o nome '{0}'. Você quis dizer '{1}'?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Fim inesperado do texto.",
|
||||
"Unexpected_token_1012": "Token inesperado.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Um construtor, método, acessador ou propriedade era esperado.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Um nome de parâmetro de tipo era esperado sem chaves.",
|
||||
"Unexpected_token_expected_1179": "Token inesperado. '{' esperado.",
|
||||
"Unknown_compiler_option_0_5023": "Opção do compilador '{0}' desconhecida.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Opção desconhecida 'excludes'. Você quis dizer 'exclude'?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Не удается найти файл tsconfig.json в указанном каталоге: \"{0}\".",
|
||||
"Cannot_find_global_type_0_2318": "Не удается найти глобальный тип \"{0}\".",
|
||||
"Cannot_find_global_value_0_2468": "Не удается найти глобальное значение \"{0}\".",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "Не удается найти модуль \"{0}\".",
|
||||
"Cannot_find_name_0_2304": "Не удается найти имя \"{0}\".",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "Не удается найти имя \"{0}\". Вы имели в виду \"{1}\"?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Неожиданный конец текста.",
|
||||
"Unexpected_token_1012": "Неожиданный токен.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Неожиданный токен. Ожидался конструктор, метод, метод доступа или свойство.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Непредвиденная лексема. Ожидалось имя параметра типа без фигурных скобок.",
|
||||
"Unexpected_token_expected_1179": "Неожиданный токен. Ожидался символ \"{\".",
|
||||
"Unknown_compiler_option_0_5023": "Неизвестный параметр компилятора \"{0}\".",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Неизвестный параметр excludes. Возможно, вы имели в виду exclude?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Belirtilen dizinde tsconfig.json dosyası bulunamıyor: '{0}'.",
|
||||
"Cannot_find_global_type_0_2318": "'{0}' genel türü bulunamıyor.",
|
||||
"Cannot_find_global_value_0_2468": "'{0}' genel değeri bulunamıyor.",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "'{0}' modülü bulunamıyor.",
|
||||
"Cannot_find_name_0_2304": "'{0}' adı bulunamıyor.",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' adı bulunamıyor. Bunu mu demek istediniz: '{1}'?",
|
||||
@@ -282,6 +284,8 @@
|
||||
"Convert_all_to_default_imports_95035": "Tümünü varsayılan içeri aktarmalara dönüştür",
|
||||
"Convert_function_0_to_class_95002": "'{0}' işlevini sınıfa dönüştür",
|
||||
"Convert_function_to_an_ES2015_class_95001": "İşlevi bir ES2015 sınıfına dönüştür",
|
||||
"Convert_named_imports_to_namespace_import_95057": "Adlandırılmış içeri aktarmaları ad alanı içeri aktarmasına dönüştür",
|
||||
"Convert_namespace_import_to_named_imports_95056": "Ad alanı içeri aktarmasını adlandırılmış içeri aktarmalara dönüştür",
|
||||
"Convert_require_to_import_95047": "'require' öğesini 'import' olarak dönüştür",
|
||||
"Convert_to_ES6_module_95017": "ES6 modülüne dönüştür",
|
||||
"Convert_to_default_import_95013": "Varsayılan içeri aktarmaya dönüştür",
|
||||
@@ -584,6 +588,7 @@
|
||||
"Not_all_code_paths_return_a_value_7030": "Tüm kod yolları bir değer döndürmez.",
|
||||
"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413": "'{0}' sayısal dizin türü, '{1}' dize dizini türüne atanamaz.",
|
||||
"Numeric_separators_are_not_allowed_here_6188": "Burada sayısal ayırıcılara izin verilmez.",
|
||||
"Object_is_of_type_unknown_2571": "Nesne 'unknown' türünde.",
|
||||
"Object_is_possibly_null_2531": "Nesne büyük olasılıkla 'null'.",
|
||||
"Object_is_possibly_null_or_undefined_2533": "Nesne büyük olasılıkla 'null' veya 'undefined'.",
|
||||
"Object_is_possibly_undefined_2532": "Nesne büyük olasılıkla 'undefined'.",
|
||||
@@ -938,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "Beklenmeyen metin sonu.",
|
||||
"Unexpected_token_1012": "Beklenmeyen belirteç.",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Beklenmeyen belirteç. Bir oluşturucu, metot, erişimci veya özellik bekleniyordu.",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Beklenmeyen belirteç. Küme ayracı olmadan bir tür parametresi adı bekleniyordu.",
|
||||
"Unexpected_token_expected_1179": "Beklenmeyen belirteç. '{' bekleniyordu.",
|
||||
"Unknown_compiler_option_0_5023": "Bilinmeyen '{0}' derleyici seçeneği.",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "'Excludes' seçeneği bilinmiyor. 'Exclude' seçeneğini mi belirtmek istediniz?",
|
||||
|
||||
+34923
-17412
File diff suppressed because one or more lines are too long
+42196
-22901
File diff suppressed because one or more lines are too long
Vendored
+30
-11
@@ -715,10 +715,14 @@ declare namespace ts {
|
||||
kind: SyntaxKind.ThisType;
|
||||
}
|
||||
type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode;
|
||||
interface FunctionTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase {
|
||||
kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType;
|
||||
type: TypeNode;
|
||||
}
|
||||
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.FunctionType;
|
||||
}
|
||||
interface ConstructorTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.ConstructorType;
|
||||
}
|
||||
interface NodeWithTypeArguments extends TypeNode {
|
||||
@@ -1648,6 +1652,7 @@ declare namespace ts {
|
||||
moduleName?: string;
|
||||
referencedFiles: ReadonlyArray<FileReference>;
|
||||
typeReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
libReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
languageVariant: LanguageVariant;
|
||||
isDeclarationFile: boolean;
|
||||
/**
|
||||
@@ -1669,11 +1674,14 @@ declare namespace ts {
|
||||
interface InputFiles extends Node {
|
||||
kind: SyntaxKind.InputFiles;
|
||||
javascriptText: string;
|
||||
javascriptMapText?: string;
|
||||
declarationText: string;
|
||||
declarationMapText?: string;
|
||||
}
|
||||
interface UnparsedSource extends Node {
|
||||
kind: SyntaxKind.UnparsedSource;
|
||||
text: string;
|
||||
sourceMapText?: string;
|
||||
}
|
||||
interface JsonSourceFile extends SourceFile {
|
||||
statements: NodeArray<JsonObjectExpressionStatement>;
|
||||
@@ -2656,6 +2664,9 @@ declare namespace ts {
|
||||
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
|
||||
getEnvironmentVariable?(name: string): string | undefined;
|
||||
createHash?(data: string): string;
|
||||
getModifiedTime?(fileName: string): Date;
|
||||
setModifiedTime?(fileName: string, date: Date): void;
|
||||
deleteFile?(fileName: string): void;
|
||||
}
|
||||
interface SourceMapRange extends TextRange {
|
||||
source?: SourceMapSource;
|
||||
@@ -2876,6 +2887,10 @@ declare namespace ts {
|
||||
omitTrailingSemicolon?: boolean;
|
||||
noEmitHelpers?: boolean;
|
||||
}
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
/** @deprecated See comment on SymbolWriter */
|
||||
interface SymbolTracker {
|
||||
trackSymbol?(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags): void;
|
||||
@@ -3006,6 +3021,8 @@ declare namespace ts {
|
||||
getDirectories(path: string): string[];
|
||||
readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[];
|
||||
getModifiedTime?(path: string): Date;
|
||||
setModifiedTime?(path: string, time: Date): void;
|
||||
deleteFile?(path: string): void;
|
||||
/**
|
||||
* A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
|
||||
*/
|
||||
@@ -3371,6 +3388,7 @@ declare namespace ts {
|
||||
function isEnumMember(node: Node): node is EnumMember;
|
||||
function isSourceFile(node: Node): node is SourceFile;
|
||||
function isBundle(node: Node): node is Bundle;
|
||||
function isUnparsedSource(node: Node): node is UnparsedSource;
|
||||
function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
|
||||
function isJSDocAllType(node: JSDocAllType): node is JSDocAllType;
|
||||
function isJSDocUnknownType(node: Node): node is JSDocUnknownType;
|
||||
@@ -3467,10 +3485,6 @@ declare namespace ts {
|
||||
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined;
|
||||
/**
|
||||
* @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.
|
||||
@@ -3801,7 +3815,7 @@ declare namespace ts {
|
||||
function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment;
|
||||
function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember;
|
||||
function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean): SourceFile;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile;
|
||||
/**
|
||||
* Creates a shallow, memberwise clone of a node for mutation.
|
||||
*/
|
||||
@@ -3826,8 +3840,8 @@ declare namespace ts {
|
||||
function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
|
||||
function createUnparsedSourceFile(text: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string): InputFiles;
|
||||
function createUnparsedSourceFile(text: string, map?: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string, javascriptMapText?: string, declarationMapText?: string): InputFiles;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
@@ -4048,6 +4062,10 @@ declare namespace ts {
|
||||
* @returns A 'Program' object.
|
||||
*/
|
||||
function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program;
|
||||
/**
|
||||
* Returns the target config filename of a project reference
|
||||
*/
|
||||
function resolveProjectReferencePath(host: CompilerHost, ref: ProjectReference): string | undefined;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface EmitOutput {
|
||||
@@ -4467,6 +4485,7 @@ declare namespace ts {
|
||||
interface PreProcessedFileInfo {
|
||||
referencedFiles: FileReference[];
|
||||
typeReferenceDirectives: FileReference[];
|
||||
libReferenceDirectives: FileReference[];
|
||||
importedFiles: FileReference[];
|
||||
ambientExternalModules?: string[];
|
||||
isLibFile: boolean;
|
||||
@@ -4651,6 +4670,7 @@ declare namespace ts {
|
||||
* There will be more than one if this is the result of merging.
|
||||
*/
|
||||
spans: TextSpan[];
|
||||
nameSpan: TextSpan | undefined;
|
||||
/** Present if non-empty */
|
||||
childItems?: NavigationTree[];
|
||||
}
|
||||
@@ -7526,6 +7546,7 @@ declare namespace ts.server.protocol {
|
||||
kind: ScriptElementKind;
|
||||
kindModifiers: string;
|
||||
spans: TextSpan[];
|
||||
nameSpan: TextSpan | undefined;
|
||||
childItems?: NavigationTree[];
|
||||
}
|
||||
type TelemetryEventName = "telemetry";
|
||||
@@ -8556,9 +8577,7 @@ declare namespace ts.server {
|
||||
private mapCodeAction;
|
||||
private mapCodeFixAction;
|
||||
private mapTextChangesToCodeEdits;
|
||||
private mapTextChangesToCodeEditsUsingScriptinfo;
|
||||
private convertTextChangeToCodeEdit;
|
||||
private convertNewFileTextChangeToCodeEdit;
|
||||
private getBraceMatching;
|
||||
private getDiagnosticsForProject;
|
||||
getCanonicalFileName(fileName: string): string;
|
||||
|
||||
+9620
-9031
File diff suppressed because it is too large
Load Diff
Vendored
+29
-9
@@ -715,10 +715,14 @@ declare namespace ts {
|
||||
kind: SyntaxKind.ThisType;
|
||||
}
|
||||
type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode;
|
||||
interface FunctionTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase {
|
||||
kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType;
|
||||
type: TypeNode;
|
||||
}
|
||||
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.FunctionType;
|
||||
}
|
||||
interface ConstructorTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.ConstructorType;
|
||||
}
|
||||
interface NodeWithTypeArguments extends TypeNode {
|
||||
@@ -1648,6 +1652,7 @@ declare namespace ts {
|
||||
moduleName?: string;
|
||||
referencedFiles: ReadonlyArray<FileReference>;
|
||||
typeReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
libReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
languageVariant: LanguageVariant;
|
||||
isDeclarationFile: boolean;
|
||||
/**
|
||||
@@ -1669,11 +1674,14 @@ declare namespace ts {
|
||||
interface InputFiles extends Node {
|
||||
kind: SyntaxKind.InputFiles;
|
||||
javascriptText: string;
|
||||
javascriptMapText?: string;
|
||||
declarationText: string;
|
||||
declarationMapText?: string;
|
||||
}
|
||||
interface UnparsedSource extends Node {
|
||||
kind: SyntaxKind.UnparsedSource;
|
||||
text: string;
|
||||
sourceMapText?: string;
|
||||
}
|
||||
interface JsonSourceFile extends SourceFile {
|
||||
statements: NodeArray<JsonObjectExpressionStatement>;
|
||||
@@ -2656,6 +2664,9 @@ declare namespace ts {
|
||||
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
|
||||
getEnvironmentVariable?(name: string): string | undefined;
|
||||
createHash?(data: string): string;
|
||||
getModifiedTime?(fileName: string): Date;
|
||||
setModifiedTime?(fileName: string, date: Date): void;
|
||||
deleteFile?(fileName: string): void;
|
||||
}
|
||||
interface SourceMapRange extends TextRange {
|
||||
source?: SourceMapSource;
|
||||
@@ -2876,6 +2887,10 @@ declare namespace ts {
|
||||
omitTrailingSemicolon?: boolean;
|
||||
noEmitHelpers?: boolean;
|
||||
}
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
/** @deprecated See comment on SymbolWriter */
|
||||
interface SymbolTracker {
|
||||
trackSymbol?(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags): void;
|
||||
@@ -3006,6 +3021,8 @@ declare namespace ts {
|
||||
getDirectories(path: string): string[];
|
||||
readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[];
|
||||
getModifiedTime?(path: string): Date;
|
||||
setModifiedTime?(path: string, time: Date): void;
|
||||
deleteFile?(path: string): void;
|
||||
/**
|
||||
* A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
|
||||
*/
|
||||
@@ -3371,6 +3388,7 @@ declare namespace ts {
|
||||
function isEnumMember(node: Node): node is EnumMember;
|
||||
function isSourceFile(node: Node): node is SourceFile;
|
||||
function isBundle(node: Node): node is Bundle;
|
||||
function isUnparsedSource(node: Node): node is UnparsedSource;
|
||||
function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
|
||||
function isJSDocAllType(node: JSDocAllType): node is JSDocAllType;
|
||||
function isJSDocUnknownType(node: Node): node is JSDocUnknownType;
|
||||
@@ -3467,10 +3485,6 @@ declare namespace ts {
|
||||
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined;
|
||||
/**
|
||||
* @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.
|
||||
@@ -3801,7 +3815,7 @@ declare namespace ts {
|
||||
function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment;
|
||||
function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember;
|
||||
function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean): SourceFile;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile;
|
||||
/**
|
||||
* Creates a shallow, memberwise clone of a node for mutation.
|
||||
*/
|
||||
@@ -3826,8 +3840,8 @@ declare namespace ts {
|
||||
function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
|
||||
function createUnparsedSourceFile(text: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string): InputFiles;
|
||||
function createUnparsedSourceFile(text: string, map?: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string, javascriptMapText?: string, declarationMapText?: string): InputFiles;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
@@ -4048,6 +4062,10 @@ declare namespace ts {
|
||||
* @returns A 'Program' object.
|
||||
*/
|
||||
function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program;
|
||||
/**
|
||||
* Returns the target config filename of a project reference
|
||||
*/
|
||||
function resolveProjectReferencePath(host: CompilerHost, ref: ProjectReference): string | undefined;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface EmitOutput {
|
||||
@@ -4467,6 +4485,7 @@ declare namespace ts {
|
||||
interface PreProcessedFileInfo {
|
||||
referencedFiles: FileReference[];
|
||||
typeReferenceDirectives: FileReference[];
|
||||
libReferenceDirectives: FileReference[];
|
||||
importedFiles: FileReference[];
|
||||
ambientExternalModules?: string[];
|
||||
isLibFile: boolean;
|
||||
@@ -4651,6 +4670,7 @@ declare namespace ts {
|
||||
* There will be more than one if this is the result of merging.
|
||||
*/
|
||||
spans: TextSpan[];
|
||||
nameSpan: TextSpan | undefined;
|
||||
/** Present if non-empty */
|
||||
childItems?: NavigationTree[];
|
||||
}
|
||||
|
||||
+9294
-7863
File diff suppressed because it is too large
Load Diff
Vendored
+29
-9
@@ -715,10 +715,14 @@ declare namespace ts {
|
||||
kind: SyntaxKind.ThisType;
|
||||
}
|
||||
type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode;
|
||||
interface FunctionTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase {
|
||||
kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType;
|
||||
type: TypeNode;
|
||||
}
|
||||
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.FunctionType;
|
||||
}
|
||||
interface ConstructorTypeNode extends TypeNode, SignatureDeclarationBase {
|
||||
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
||||
kind: SyntaxKind.ConstructorType;
|
||||
}
|
||||
interface NodeWithTypeArguments extends TypeNode {
|
||||
@@ -1648,6 +1652,7 @@ declare namespace ts {
|
||||
moduleName?: string;
|
||||
referencedFiles: ReadonlyArray<FileReference>;
|
||||
typeReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
libReferenceDirectives: ReadonlyArray<FileReference>;
|
||||
languageVariant: LanguageVariant;
|
||||
isDeclarationFile: boolean;
|
||||
/**
|
||||
@@ -1669,11 +1674,14 @@ declare namespace ts {
|
||||
interface InputFiles extends Node {
|
||||
kind: SyntaxKind.InputFiles;
|
||||
javascriptText: string;
|
||||
javascriptMapText?: string;
|
||||
declarationText: string;
|
||||
declarationMapText?: string;
|
||||
}
|
||||
interface UnparsedSource extends Node {
|
||||
kind: SyntaxKind.UnparsedSource;
|
||||
text: string;
|
||||
sourceMapText?: string;
|
||||
}
|
||||
interface JsonSourceFile extends SourceFile {
|
||||
statements: NodeArray<JsonObjectExpressionStatement>;
|
||||
@@ -2656,6 +2664,9 @@ declare namespace ts {
|
||||
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
|
||||
getEnvironmentVariable?(name: string): string | undefined;
|
||||
createHash?(data: string): string;
|
||||
getModifiedTime?(fileName: string): Date;
|
||||
setModifiedTime?(fileName: string, date: Date): void;
|
||||
deleteFile?(fileName: string): void;
|
||||
}
|
||||
interface SourceMapRange extends TextRange {
|
||||
source?: SourceMapSource;
|
||||
@@ -2876,6 +2887,10 @@ declare namespace ts {
|
||||
omitTrailingSemicolon?: boolean;
|
||||
noEmitHelpers?: boolean;
|
||||
}
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
/** @deprecated See comment on SymbolWriter */
|
||||
interface SymbolTracker {
|
||||
trackSymbol?(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags): void;
|
||||
@@ -3006,6 +3021,8 @@ declare namespace ts {
|
||||
getDirectories(path: string): string[];
|
||||
readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[];
|
||||
getModifiedTime?(path: string): Date;
|
||||
setModifiedTime?(path: string, time: Date): void;
|
||||
deleteFile?(path: string): void;
|
||||
/**
|
||||
* A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
|
||||
*/
|
||||
@@ -3371,6 +3388,7 @@ declare namespace ts {
|
||||
function isEnumMember(node: Node): node is EnumMember;
|
||||
function isSourceFile(node: Node): node is SourceFile;
|
||||
function isBundle(node: Node): node is Bundle;
|
||||
function isUnparsedSource(node: Node): node is UnparsedSource;
|
||||
function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
|
||||
function isJSDocAllType(node: JSDocAllType): node is JSDocAllType;
|
||||
function isJSDocUnknownType(node: Node): node is JSDocUnknownType;
|
||||
@@ -3467,10 +3485,6 @@ declare namespace ts {
|
||||
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface GetEffectiveTypeRootsHost {
|
||||
directoryExists?(directoryName: string): boolean;
|
||||
getCurrentDirectory?(): string;
|
||||
}
|
||||
function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined;
|
||||
/**
|
||||
* @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.
|
||||
@@ -3801,7 +3815,7 @@ declare namespace ts {
|
||||
function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment;
|
||||
function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember;
|
||||
function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean): SourceFile;
|
||||
function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile;
|
||||
/**
|
||||
* Creates a shallow, memberwise clone of a node for mutation.
|
||||
*/
|
||||
@@ -3826,8 +3840,8 @@ declare namespace ts {
|
||||
function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression;
|
||||
function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
|
||||
function createUnparsedSourceFile(text: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string): InputFiles;
|
||||
function createUnparsedSourceFile(text: string, map?: string): UnparsedSource;
|
||||
function createInputFiles(javascript: string, declaration: string, javascriptMapText?: string, declarationMapText?: string): InputFiles;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
@@ -4048,6 +4062,10 @@ declare namespace ts {
|
||||
* @returns A 'Program' object.
|
||||
*/
|
||||
function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program;
|
||||
/**
|
||||
* Returns the target config filename of a project reference
|
||||
*/
|
||||
function resolveProjectReferencePath(host: CompilerHost, ref: ProjectReference): string | undefined;
|
||||
}
|
||||
declare namespace ts {
|
||||
interface EmitOutput {
|
||||
@@ -4467,6 +4485,7 @@ declare namespace ts {
|
||||
interface PreProcessedFileInfo {
|
||||
referencedFiles: FileReference[];
|
||||
typeReferenceDirectives: FileReference[];
|
||||
libReferenceDirectives: FileReference[];
|
||||
importedFiles: FileReference[];
|
||||
ambientExternalModules?: string[];
|
||||
isLibFile: boolean;
|
||||
@@ -4651,6 +4670,7 @@ declare namespace ts {
|
||||
* There will be more than one if this is the result of merging.
|
||||
*/
|
||||
spans: TextSpan[];
|
||||
nameSpan: TextSpan | undefined;
|
||||
/** Present if non-empty */
|
||||
childItems?: NavigationTree[];
|
||||
}
|
||||
|
||||
+9294
-7863
File diff suppressed because it is too large
Load Diff
+11522
-6386
File diff suppressed because one or more lines are too long
+1
-15
@@ -1,18 +1,3 @@
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
"use strict";
|
||||
if (process.argv.length < 3) {
|
||||
process.exit(1);
|
||||
@@ -25,3 +10,4 @@ try {
|
||||
}
|
||||
catch (_a) { }
|
||||
process.exit(0);
|
||||
//# sourceMappingURL=watchGuard.js.map
|
||||
@@ -941,6 +941,7 @@
|
||||
"Unexpected_end_of_text_1126": "文本意外结束。",
|
||||
"Unexpected_token_1012": "意外的标记。",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "意外的标记。应为构造函数、方法、访问器或属性。",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "意外的标记。类型参数名不应包含大括号。",
|
||||
"Unexpected_token_expected_1179": "意外标记。应为 \"{\"。",
|
||||
"Unknown_compiler_option_0_5023": "未知的编译器选项“{0}”。",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "未知的 \"excludes\" 选项。你的意思是 \"exclude\"?",
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "在指定的目錄 '{0}' 中找不到 tsconfig.json 檔案。",
|
||||
"Cannot_find_global_type_0_2318": "找不到全域類型 '{0}'。",
|
||||
"Cannot_find_global_value_0_2468": "找不到全域值 '{0}'。",
|
||||
"Cannot_find_lib_definition_for_0_2726": "Cannot find lib definition for '{0}'.",
|
||||
"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
|
||||
"Cannot_find_module_0_2307": "找不到模組 '{0}'。",
|
||||
"Cannot_find_name_0_2304": "找不到名稱 '{0}'。",
|
||||
"Cannot_find_name_0_Did_you_mean_1_2552": "找不到名稱 '{0}'。您指的是 '{1}' 嗎?",
|
||||
@@ -941,6 +943,7 @@
|
||||
"Unexpected_end_of_text_1126": "未預期的文字結尾。",
|
||||
"Unexpected_token_1012": "未預期的語彙基元。",
|
||||
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "未預期的語彙基元。必須是建構函式、方法、存取子或屬性。",
|
||||
"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "權杖錯誤。類型參數名稱不應有大括號。",
|
||||
"Unexpected_token_expected_1179": "未預期的語彙基元。必須是 '{'。",
|
||||
"Unknown_compiler_option_0_5023": "不明的編譯器選項 '{0}'。",
|
||||
"Unknown_option_excludes_Did_you_mean_exclude_6114": "選項 'excludes' 未知。您是指 'exclude' 嗎?",
|
||||
|
||||
Generated
+539
-139
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@
|
||||
"outDir": "../../built/local/",
|
||||
"composite": false,
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"removeComments": true,
|
||||
"module": "commonjs",
|
||||
"types": [
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_Watch.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript-wiki/blob/master/Using-the-Compiler-API.md#writing-an-incremental-program-watcher
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var process: any;
|
||||
declare var console: any;
|
||||
declare var os: any;
|
||||
|
||||
import ts = require("typescript");
|
||||
|
||||
const formatHost: ts.FormatDiagnosticsHost = {
|
||||
getCanonicalFileName: path => path,
|
||||
getCurrentDirectory: ts.sys.getCurrentDirectory,
|
||||
getNewLine: () => ts.sys.newLine,
|
||||
}
|
||||
|
||||
function watchMain() {
|
||||
const configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json");
|
||||
if (!configPath) {
|
||||
throw new Error("Could not find a valid 'tsconfig.json'.");
|
||||
}
|
||||
|
||||
// TypeScript can use several different program creation "strategies":
|
||||
// * ts.createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
// * ts.createSemanticDiagnosticsBuilderProgram
|
||||
// * ts.createAbstractBuilder
|
||||
// The first two produce "builder programs". These use an incremental strategy to only re-check and emit files whose
|
||||
// contents may have changed, or whose dependencies may have changes which may impact change the result of prior type-check and emit.
|
||||
// The last uses an ordinary program which does a full type check after every change.
|
||||
// Between `createEmitAndSemanticDiagnosticsBuilderProgram` and `createSemanticDiagnosticsBuilderProgram`, the only difference is emit.
|
||||
// For pure type-checking scenarios, or when another tool/process handles emit, using `createSemanticDiagnosticsBuilderProgram` may be more desirable.
|
||||
|
||||
// Note that there is another overload for `createWatchCompilerHost` that takes a set of root files.
|
||||
const host = ts.createWatchCompilerHost(configPath, {}, ts.sys,
|
||||
ts.createSemanticDiagnosticsBuilderProgram,
|
||||
reportDiagnostic,
|
||||
reportWatchStatusChanged,
|
||||
);
|
||||
|
||||
// You can technically override any given hook on the host, though you probably don't need to.
|
||||
// Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all.
|
||||
const origCreateProgram = host.createProgram;
|
||||
host.createProgram = (rootNames: ReadonlyArray<string>, options, host, oldProgram) => {
|
||||
console.log("** We're about to create the program! **");
|
||||
return origCreateProgram(rootNames, options, host, oldProgram);
|
||||
}
|
||||
const origPostProgramCreate = host.afterProgramCreate;
|
||||
|
||||
host.afterProgramCreate = program => {
|
||||
console.log("** We finished making the program! **");
|
||||
origPostProgramCreate!(program);
|
||||
};
|
||||
|
||||
// `createWatchProgram` creates an initial program, watches files, and updates the program over time.
|
||||
ts.createWatchProgram(host);
|
||||
}
|
||||
|
||||
function reportDiagnostic(diagnostic: ts.Diagnostic) {
|
||||
console.error("Error", diagnostic.code, ":",
|
||||
ts.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine())
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints a diagnostic every time the watch status changes.
|
||||
* This is mainly for messages like "Starting compilation" or "Compilation completed".
|
||||
*/
|
||||
function reportWatchStatusChanged(diagnostic: ts.Diagnostic) {
|
||||
console.info(ts.formatDiagnostic(diagnostic, formatHost));
|
||||
}
|
||||
|
||||
watchMain();
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_WatchWithDefaults.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. This uses default sys interface without having to pass anything
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var console: any;
|
||||
|
||||
import ts = require("typescript");
|
||||
|
||||
function watchMain() {
|
||||
const configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json");
|
||||
if (!configPath) {
|
||||
throw new Error("Could not find a valid 'tsconfig.json'.");
|
||||
}
|
||||
|
||||
// TypeScript can use several different program creation "strategies":
|
||||
// * ts.createEmitAndSemanticDiagnosticsBuilderProgram,
|
||||
// * ts.createSemanticDiagnosticsBuilderProgram
|
||||
// * ts.createAbstractBuilder
|
||||
// The first two produce "builder programs". These use an incremental strategy to only re-check and emit files whose
|
||||
// contents may have changed, or whose dependencies may have changes which may impact change the result of prior type-check and emit.
|
||||
// The last uses an ordinary program which does a full type check after every change.
|
||||
// Between `createEmitAndSemanticDiagnosticsBuilderProgram` and `createSemanticDiagnosticsBuilderProgram`, the only difference is emit.
|
||||
// For pure type-checking scenarios, or when another tool/process handles emit, using `createSemanticDiagnosticsBuilderProgram` may be more desirable.
|
||||
|
||||
// Note that there is another overload for `createWatchCompilerHost` that takes a set of root files.
|
||||
const host = ts.createWatchCompilerHost(configPath, {}, ts.sys);
|
||||
|
||||
// You can technically override any given hook on the host, though you probably don't need to.
|
||||
// Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all.
|
||||
const origCreateProgram = host.createProgram;
|
||||
host.createProgram = (rootNames, options, host, oldProgram) => {
|
||||
console.log("** We're about to create the program! **");
|
||||
return origCreateProgram(rootNames, options, host, oldProgram);
|
||||
}
|
||||
const origPostProgramCreate = host.afterProgramCreate;
|
||||
|
||||
host.afterProgramCreate = program => {
|
||||
console.log("** We finished making the program! **");
|
||||
origPostProgramCreate!(program);
|
||||
};
|
||||
|
||||
// `createWatchProgram` creates an initial program, watches files, and updates the program over time.
|
||||
ts.createWatchProgram(host);
|
||||
}
|
||||
|
||||
watchMain();
|
||||
|
||||
@@ -0,0 +1,186 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. This sample verifies creating abstract builder to watch list of root files
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var console: any;
|
||||
|
||||
import ts = require("typescript");
|
||||
|
||||
function watchMain() {
|
||||
// get list of files and compiler options somehow
|
||||
const files: string[] = [];
|
||||
const options: ts.CompilerOptions = {};
|
||||
|
||||
const host: ts.WatchCompilerHostOfFilesAndCompilerOptions<ts.BuilderProgram> = {
|
||||
rootFiles: files,
|
||||
options,
|
||||
|
||||
useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames,
|
||||
getNewLine: () => ts.sys.newLine,
|
||||
getCurrentDirectory: ts.sys.getCurrentDirectory,
|
||||
getDefaultLibFileName: options => ts.getDefaultLibFilePath(options),
|
||||
|
||||
fileExists: ts.sys.fileExists,
|
||||
readFile: ts.sys.readFile,
|
||||
directoryExists: ts.sys.directoryExists,
|
||||
getDirectories: ts.sys.getDirectories,
|
||||
readDirectory: ts.sys.readDirectory,
|
||||
realpath: ts.sys.realpath,
|
||||
|
||||
watchFile: ts.sys.watchFile!,
|
||||
watchDirectory: ts.sys.watchDirectory!,
|
||||
createProgram: ts.createAbstractBuilder
|
||||
};
|
||||
|
||||
// You can technically override any given hook on the host, though you probably don't need to.
|
||||
// Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all.
|
||||
const origCreateProgram = host.createProgram;
|
||||
host.createProgram = (rootNames, options, host, oldProgram) => {
|
||||
console.log("** We're about to create the program! **");
|
||||
return origCreateProgram(rootNames, options, host, oldProgram);
|
||||
}
|
||||
const origPostProgramCreate = host.afterProgramCreate;
|
||||
|
||||
host.afterProgramCreate = program => {
|
||||
console.log("** We finished making the program! **");
|
||||
origPostProgramCreate!(program);
|
||||
};
|
||||
|
||||
// `createWatchProgram` creates an initial program, watches files, and updates the program over time.
|
||||
ts.createWatchProgram(host);
|
||||
}
|
||||
|
||||
watchMain();
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_compile.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var process: any;
|
||||
declare var console: any;
|
||||
declare var os: any;
|
||||
|
||||
import ts = require("typescript");
|
||||
|
||||
export function compile(fileNames: string[], options: ts.CompilerOptions): void {
|
||||
var program = ts.createProgram(fileNames, options);
|
||||
var emitResult = program.emit();
|
||||
|
||||
var allDiagnostics = ts.getPreEmitDiagnostics(program);
|
||||
|
||||
allDiagnostics.forEach(diagnostic => {
|
||||
var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
|
||||
if (!diagnostic.file) {
|
||||
console.log(message);
|
||||
return;
|
||||
}
|
||||
var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
|
||||
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
|
||||
});
|
||||
|
||||
var exitCode = emitResult.emitSkipped ? 1 : 0;
|
||||
console.log(`Process exiting with code '${exitCode}'.`);
|
||||
process.exit(exitCode);
|
||||
}
|
||||
|
||||
compile(process.argv.slice(2), {
|
||||
noEmitOnError: true, noImplicitAny: true,
|
||||
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
||||
});
|
||||
|
||||
@@ -0,0 +1,244 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_jsdoc.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The original sources can be found
|
||||
* at: https://github.com/YousefED/typescript-json-schema
|
||||
* https://github.com/vega/ts-json-schema-generator
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var console: any;
|
||||
|
||||
import * as ts from "typescript";
|
||||
|
||||
// excerpted from https://github.com/YousefED/typescript-json-schema
|
||||
// (converted from a method and modified; for example, `this: any` to compensate, among other changes)
|
||||
function parseCommentsIntoDefinition(this: any,
|
||||
symbol: ts.Symbol,
|
||||
definition: {description?: string, [s: string]: string | undefined},
|
||||
otherAnnotations: { [s: string]: true}): void {
|
||||
if (!symbol) {
|
||||
return;
|
||||
}
|
||||
|
||||
// the comments for a symbol
|
||||
let comments = symbol.getDocumentationComment(undefined);
|
||||
|
||||
if (comments.length) {
|
||||
definition.description = comments.map(comment => comment.kind === "lineBreak" ? comment.text : comment.text.trim().replace(/\r\n/g, "\n")).join("");
|
||||
}
|
||||
|
||||
// jsdocs are separate from comments
|
||||
const jsdocs = symbol.getJsDocTags();
|
||||
jsdocs.forEach(doc => {
|
||||
// if we have @TJS-... annotations, we have to parse them
|
||||
const { name, text } = doc;
|
||||
if (this.userValidationKeywords[name]) {
|
||||
definition[name] = this.parseValue(text);
|
||||
} else {
|
||||
// special annotations
|
||||
otherAnnotations[doc.name] = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// excerpted from https://github.com/vega/ts-json-schema-generator
|
||||
export interface Annotations {
|
||||
[name: string]: any;
|
||||
}
|
||||
function getAnnotations(this: any, node: ts.Node): Annotations | undefined {
|
||||
const symbol: ts.Symbol = (node as any).symbol;
|
||||
if (!symbol) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const jsDocTags: ts.JSDocTagInfo[] = symbol.getJsDocTags();
|
||||
if (!jsDocTags || !jsDocTags.length) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const annotations: Annotations = jsDocTags.reduce((result: Annotations, jsDocTag: ts.JSDocTagInfo) => {
|
||||
const value = this.parseJsDocTag(jsDocTag);
|
||||
if (value !== undefined) {
|
||||
result[jsDocTag.name] = value;
|
||||
}
|
||||
|
||||
return result;
|
||||
}, {});
|
||||
return Object.keys(annotations).length ? annotations : undefined;
|
||||
}
|
||||
|
||||
// these examples are artificial and mostly nonsensical
|
||||
function parseSpecificTags(node: ts.Node) {
|
||||
if (node.kind === ts.SyntaxKind.Parameter) {
|
||||
return ts.getJSDocParameterTags(node as ts.ParameterDeclaration);
|
||||
}
|
||||
if (node.kind === ts.SyntaxKind.FunctionDeclaration) {
|
||||
const func = node as ts.FunctionDeclaration;
|
||||
if (ts.hasJSDocParameterTags(func)) {
|
||||
const flat: ts.JSDocTag[] = [];
|
||||
for (const tags of func.parameters.map(ts.getJSDocParameterTags)) {
|
||||
if (tags) flat.push(...tags);
|
||||
}
|
||||
return flat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getReturnTypeFromJSDoc(node: ts.Node) {
|
||||
if (node.kind === ts.SyntaxKind.FunctionDeclaration) {
|
||||
return ts.getJSDocReturnType(node);
|
||||
}
|
||||
let type = ts.getJSDocType(node);
|
||||
if (type && type.kind === ts.SyntaxKind.FunctionType) {
|
||||
return (type as ts.FunctionTypeNode).type;
|
||||
}
|
||||
}
|
||||
|
||||
function getAllTags(node: ts.Node) {
|
||||
ts.getJSDocTags(node);
|
||||
}
|
||||
|
||||
function getSomeOtherTags(node: ts.Node) {
|
||||
const tags: (ts.JSDocTag | undefined)[] = [];
|
||||
tags.push(ts.getJSDocAugmentsTag(node));
|
||||
tags.push(ts.getJSDocClassTag(node));
|
||||
tags.push(ts.getJSDocReturnTag(node));
|
||||
const type = ts.getJSDocTypeTag(node);
|
||||
if (type) {
|
||||
tags.push(type);
|
||||
}
|
||||
tags.push(ts.getJSDocTemplateTag(node));
|
||||
return tags;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_linter.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var process: any;
|
||||
declare var console: any;
|
||||
declare var readFileSync: any;
|
||||
|
||||
import * as ts from "typescript";
|
||||
|
||||
export function delint(sourceFile: ts.SourceFile) {
|
||||
delintNode(sourceFile);
|
||||
|
||||
function delintNode(node: ts.Node) {
|
||||
switch (node.kind) {
|
||||
case ts.SyntaxKind.ForStatement:
|
||||
case ts.SyntaxKind.ForInStatement:
|
||||
case ts.SyntaxKind.WhileStatement:
|
||||
case ts.SyntaxKind.DoStatement:
|
||||
if ((<ts.IterationStatement>node).statement.kind !== ts.SyntaxKind.Block) {
|
||||
report(node, "A looping statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
|
||||
case ts.SyntaxKind.IfStatement:
|
||||
let ifStatement = (<ts.IfStatement>node);
|
||||
if (ifStatement.thenStatement.kind !== ts.SyntaxKind.Block) {
|
||||
report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
if (ifStatement.elseStatement &&
|
||||
ifStatement.elseStatement.kind !== ts.SyntaxKind.Block &&
|
||||
ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement) {
|
||||
report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body.");
|
||||
}
|
||||
break;
|
||||
|
||||
case ts.SyntaxKind.BinaryExpression:
|
||||
let op = (<ts.BinaryExpression>node).operatorToken.kind;
|
||||
if (op === ts.SyntaxKind.EqualsEqualsToken || op == ts.SyntaxKind.ExclamationEqualsToken) {
|
||||
report(node, "Use '===' and '!=='.")
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
ts.forEachChild(node, delintNode);
|
||||
}
|
||||
|
||||
function report(node: ts.Node, message: string) {
|
||||
let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
|
||||
console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`);
|
||||
}
|
||||
}
|
||||
|
||||
const fileNames: string[] = process.argv.slice(2);
|
||||
fileNames.forEach(fileName => {
|
||||
// Parse a file
|
||||
let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setParentNodes */ true);
|
||||
|
||||
// delint it
|
||||
delint(sourceFile);
|
||||
});
|
||||
@@ -0,0 +1,166 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_parseConfig.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var process: any;
|
||||
declare var console: any;
|
||||
declare var os: any;
|
||||
|
||||
import ts = require("typescript");
|
||||
|
||||
function printError(error: ts.Diagnostic): void {
|
||||
if (!error) {
|
||||
return;
|
||||
}
|
||||
console.log(`${error.file && error.file.fileName}: ${error.messageText}`);
|
||||
}
|
||||
|
||||
export function createProgram(rootFiles: string[], compilerOptionsJson: string): ts.Program | undefined {
|
||||
const { config, error } = ts.parseConfigFileTextToJson("tsconfig.json", compilerOptionsJson)
|
||||
if (error) {
|
||||
printError(error);
|
||||
return undefined;
|
||||
}
|
||||
const basePath: string = process.cwd();
|
||||
const settings = ts.convertCompilerOptionsFromJson(config.config["compilerOptions"], basePath);
|
||||
if (!settings.options) {
|
||||
for (const err of settings.errors) {
|
||||
printError(err);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return ts.createProgram(rootFiles, settings.options);
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_transform.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var console: any;
|
||||
|
||||
import * as ts from "typescript";
|
||||
|
||||
const source = "let x: string = 'string'";
|
||||
|
||||
let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
||||
|
||||
console.log(JSON.stringify(result));
|
||||
@@ -0,0 +1,240 @@
|
||||
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(8907,42): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9167,46): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9517,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9541,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(9628,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10792,57): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10803,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10813,48): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10888,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10945,47): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(10999,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11019,44): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11029,35): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11063,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11066,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11070,45): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11088,56): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11114,36): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11117,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11129,43): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11159,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11193,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11204,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11228,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11236,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11240,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11270,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11313,41): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11500,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11502,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11506,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11508,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11510,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11512,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11514,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11531,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11533,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11535,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11537,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11569,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11571,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11573,37): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11575,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11577,52): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11649,72): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11651,38): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11653,40): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,28): error TS1005: ';' expected.
|
||||
typescript_standalone.d.ts(11729,48): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/APISample_watcher.ts (0 errors) ====
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services
|
||||
* Please log a "breaking change" issue for any API breaking change affecting this issue
|
||||
*/
|
||||
|
||||
declare var process: any;
|
||||
declare var console: any;
|
||||
declare var fs: {
|
||||
existsSync(path: string): boolean;
|
||||
readdirSync(path: string): string[];
|
||||
readFileSync(filename: string, encoding?: string): string;
|
||||
writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; } | string): void;
|
||||
watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: (curr: { mtime: Date }, prev: { mtime: Date }) => void): void;
|
||||
};
|
||||
declare var path: any;
|
||||
|
||||
import * as ts from "typescript";
|
||||
|
||||
function watch(rootFileNames: string[], options: ts.CompilerOptions) {
|
||||
const files: ts.MapLike<{ version: number }> = {};
|
||||
|
||||
// initialize the list of files
|
||||
rootFileNames.forEach(fileName => {
|
||||
files[fileName] = { version: 0 };
|
||||
});
|
||||
|
||||
// Create the language service host to allow the LS to communicate with the host
|
||||
const servicesHost: ts.LanguageServiceHost = {
|
||||
getScriptFileNames: () => rootFileNames,
|
||||
getScriptVersion: (fileName) => files[fileName] && files[fileName].version.toString(),
|
||||
getScriptSnapshot: (fileName) => {
|
||||
if (!fs.existsSync(fileName)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString());
|
||||
},
|
||||
getCurrentDirectory: () => process.cwd(),
|
||||
getCompilationSettings: () => options,
|
||||
getDefaultLibFileName: (options) => ts.getDefaultLibFilePath(options),
|
||||
};
|
||||
|
||||
// Create the language service files
|
||||
const services = ts.createLanguageService(servicesHost, ts.createDocumentRegistry())
|
||||
|
||||
// Now let's watch the files
|
||||
rootFileNames.forEach(fileName => {
|
||||
// First time around, emit all files
|
||||
emitFile(fileName);
|
||||
|
||||
// Add a watch on the file to handle next change
|
||||
fs.watchFile(fileName,
|
||||
{ persistent: true, interval: 250 },
|
||||
(curr, prev) => {
|
||||
// Check timestamp
|
||||
if (+curr.mtime <= +prev.mtime) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the version to signal a change in the file
|
||||
files[fileName].version++;
|
||||
|
||||
// write the changes to disk
|
||||
emitFile(fileName);
|
||||
});
|
||||
});
|
||||
|
||||
function emitFile(fileName: string) {
|
||||
let output = services.getEmitOutput(fileName);
|
||||
|
||||
if (!output.emitSkipped) {
|
||||
console.log(`Emitting ${fileName}`);
|
||||
}
|
||||
else {
|
||||
console.log(`Emitting ${fileName} failed`);
|
||||
logErrors(fileName);
|
||||
}
|
||||
|
||||
output.outputFiles.forEach(o => {
|
||||
fs.writeFileSync(o.name, o.text, "utf8");
|
||||
});
|
||||
}
|
||||
|
||||
function logErrors(fileName: string) {
|
||||
let allDiagnostics = services.getCompilerOptionsDiagnostics()
|
||||
.concat(services.getSyntacticDiagnostics(fileName))
|
||||
.concat(services.getSemanticDiagnostics(fileName));
|
||||
|
||||
allDiagnostics.forEach(diagnostic => {
|
||||
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
||||
if (diagnostic.file) {
|
||||
let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
|
||||
console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
|
||||
}
|
||||
else {
|
||||
console.log(` Error: ${message}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize files constituting the program as all .ts files in the current directory
|
||||
const currentDirectoryFiles = fs.readdirSync(process.cwd()).
|
||||
filter(fileName=> fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts");
|
||||
|
||||
// Start the watcher
|
||||
watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
|
||||
|
||||
+14109
-8587
File diff suppressed because one or more lines are too long
+12001
-5334
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user