This repository was archived by the owner on May 22, 2025. It is now read-only.
Commit 3333a5b
This commit updates tsickle's JSDoc closure translation to
not attempt translating/resolving enum members multiple times.
The double lookup was introduced back then with the TS 5.x bump.
This is important because in complex applications, this may be
extremely expensive, causing double expensive lookups searching all files and their exports in a `ts.Program`.
PiperOrigin-RevId: 6263651651 parent d5c2921 commit 3333a5b
223 files changed
Lines changed: 5052 additions & 2708 deletions
File tree
- demo
- src
- test_files
- abstract
- async_functions
- augment
- basic.untyped
- cast_extends
- class.untyped
- class
- clutz.no_externs
- clutz_imports.declaration.no_externs
- clutz_type_value.no_externs
- comments
- conditional_rest_tuple_type
- ctors
- debugger
- decl_merge
- declare_export_dts
- declare_export
- declare_import
- declare_var_and_ns
- decorator
- doc_params
- docs_on_ctor_param_properties
- enum.no_nstransform
- enum.puretransform
- enum_ref_import
- enum_value_literal_type
- enum
- eventmap
- export_declare_namespace
- export_destructuring
- export_local_type
- export_merged
- export_multi
- export_star_as_ns
- exporting_decorator
- export
- extend_and_implement
- fields_no_ctor
- fields
- file_comment
- functions
- generic_extends
- generic_in_prop_access
- generic_local_var
- generic_nested_classes
- ignored_ambient_external_module
- implement_reexported_interface
- implements
- import_by_path.declaration.no_externs
- import_by_path.no_externs
- import_equals
- import_from_goog.no_externs
- import_only_types
- import_prefixed
- interface
- internal.declaration
- invalid_closure_properties
- jsdoc_types.untyped
- jsdoc_types
- jsdoc
- jsx.no_externs
- methods
- namespaced.no_nstransform
- nullable
- optional_chaining
- optional_method
- parameter_properties
- partial
- private_field
- promiseconstructor
- protected
- readonly
- recursive_alias
- recursive_union
- rest_parameters_any
- rest_parameters_generic_empty
- rest_parameters_tuple
- return_this
- scope_collision
- side_effect_import
- single_value_enum
- spread_type
- static
- string_manipulations
- structural.untyped
- super
- this_type
- transitive_symbol_type_only
- ts_migration_exports_shim.no_externs
- ts_migration_exports_shim.tsmes_disabled.no_externs
- tuple_types
- type_alias_imported
- type_and_value
- type_args_repeated
- type_intersection
- type_narrowing
- type_propaccess.no_externs
- typeof_function_overloads
- underscore
- use_closure_externs
- visibility
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | | - | |
54 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments