-
Notifications
You must be signed in to change notification settings - Fork 26
[TS] Support globals and imports #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 40 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
6912e36
Add tests for imports
Lipen 22f1a9e
Draft support for globals
Lipen dc35fef
Fix this index 0
Lipen 49cf02d
Cleanup
Lipen c6a6447
Fix comment
Lipen 82a2f3f
Reorganize
Lipen 671694b
Fix tests for globals
Lipen 464fb23
Bump jacodb
Lipen a46783a
Handle closures earlier
Lipen bb4defa
Remove failing test
Lipen f963207
Move null type allocation to the beginning
Lipen 326495b
Disable imports tests
Lipen a775579
Add imports resolver
Lipen dd9eda2
Move testing entrypoint into 'test' source set
Lipen be5dd9a
Refine common patterns
Lipen 5f5d6ce
Cleanup
Lipen acfdc89
Resolve import/export symbols, add tests
Lipen 521ff62
Extract const val
Lipen b2eb433
Floor the success rate
Lipen e28b847
Move
Lipen acb5993
Default null params
Lipen 3907164
Add unit tests for imports resolution
Lipen da03d2a
Fix a bug with exported name lookup
Lipen 281ff6d
Add more comments to tests
Lipen ca220c1
Adopt literal types
Lipen 167ceb9
Bump jacodb
Lipen 5546551
Enable imports tests
Lipen ac4cc96
Extract isDflt condition
Lipen 859f20b
Support imported variables
Lipen 05d44c7
Trailing commas
Lipen db19e30
Support string-typed exceptions
Lipen ce38646
Refactor and extract locals resolver
Lipen c047f13
ctx
Lipen 1f17ebc
Flip cases
Lipen 8926502
Move import/export resolution tests
Lipen 42d5e27
Cleanup '.Compantion'
Lipen 0e302ad
Use original name of imported symbol during resolution
Lipen 86c32ff
Rename EtsExportType.NAMESPACE
Lipen b71ddd6
Try to support namespace imports
Lipen af72ccf
Bump jacodb
Lipen c3d3b02
Refactor tests for import/exports
Lipen bfa8bc9
Move local resolver back to expr resolver
Lipen 4fe5844
Fix register reading
Lipen f681246
Extract assignments
Lipen e5fd831
Extract common code
Lipen d3d0d06
Extract more common code for globals
Lipen 10b8387
Remove 'as const' that has broken IR for now
Lipen 00e7d91
Do not allocate dflt class type
Lipen 287265b
Add property name to null-ref exception
Lipen 08952c1
Fix reading locals in %dflt
Lipen e230a15
Enable test with module state
Lipen 550cebe
Fix logs
Lipen cf6b687
Fix dflt locals
Lipen bdf9338
Disable re-exporting test
Lipen 3663e1e
Disable tests that rely on star imports
Lipen 3335601
Add getDfltMethod
Lipen 92881af
Reuse readGlobal for imports
Lipen b9f3408
Extract readArrayIndex
Lipen 06281a1
Extract code from expr resolver
Lipen 5c8e3b3
Extract field ref resolution, add comments
Lipen cd1334d
Flip
Lipen e8c7894
Cleanup
Lipen 94dfac3
Move extensions to read/write globals
Lipen 0ed5626
Extract assignment code
Lipen 17c9166
Cleanup
Lipen e85e253
Extract statics initiliazation
Lipen 0b2bfab
Bump jacodb
Lipen 642c3e0
Bump jacodb and ArkAnalyzer
Lipen dca5df4
Revert
Lipen 85dccd0
Add propertyName for constant args
Lipen 6ded563
Remove incorrect makeCall utility for now
Lipen 4fe3796
Add comment
Lipen 225dfaa
Pass scope
Lipen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.