Commit f51cc85
authored
[interop] Add Support for Namespaces (#436)
This issue adds support for namespaces, including generating code for namespaces, and performing lookup on namespaces/modules using qualified names, to map such names to actual TS declarations. Only exported declarations from the namespace are generated for, reducing the number of unnecessary declarations generated for.
* wip: TSSyntaxKind for Namespaces
* wip: namespace implementation
* added support for nested namespace gen and filtering
* formatting and analysis fixes
* wip: namespace type resolution
* implemented refactor of type deduction funcs and added support for namespace/module type deduction
* Completed Namespace Refactor
completed namespace type referencing, filtering, id modification and more to ens
ditched the `emitChildren` method due to side effects, in favour of inclusion via the filtering process. Name is kept consistent thanks to parent reference.
* implemented typealias resolution via import equals
* formatting
* complete import typealias support
* namespace import already supported
* removed print statements
* resolved comments and issues
* minor changes/updates
* added new example and resolved deduping of nodes
* updated use of camel_case_type ignore
* comments on updateNSInParent1 parent 1d5771b commit f51cc85
File tree
20 files changed
+1825
-432
lines changed- web_generator
- lib/src
- ast
- interop_gen
- transform
- js
- test
- integration/interop_gen
- project
- input
- output
20 files changed
+1825
-432
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments