-
-
Notifications
You must be signed in to change notification settings - Fork 76
feat: Private property access #2594
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 all commits
Commits
Show all changes
116 commits
Select commit
Hold shift + click to select a range
466c536
Add tests stub
aleksanderkatan 4c88b76
Add more babel tests
aleksanderkatan 7649af2
Update babel tests
aleksanderkatan 6f47035
Add rollup tests
aleksanderkatan 9605b2d
Keep ancestor chain in context in tinyest-for-wgsl
aleksanderkatan f4e1bab
Change externals from array to object
aleksanderkatan 49e7596
Add addExternal function
aleksanderkatan beca358
Add a rudimentary implementation of external collection
aleksanderkatan 4257b1d
Update bahbel externals generation
aleksanderkatan d6e4f7e
Update rollup
aleksanderkatan f11b111
Bump metadata version
aleksanderkatan 9efa70c
Update remaining tests
aleksanderkatan 5726bea
Split parsers.ts into three files
aleksanderkatan b6b2458
Clean up external addition in parsers.ts
aleksanderkatan 57232ce
Add sanity tests for external prop access
aleksanderkatan d0db0fd
Revert externalNames to an array
aleksanderkatan 6aeefe0
More tests
aleksanderkatan 41276f7
Deduplicate Externals interface
aleksanderkatan cbc50bc
nits
aleksanderkatan c124e93
Merge remote-tracking branch 'origin/main' into feat/expand-property-…
aleksanderkatan c90f042
Review fixes
aleksanderkatan 9bc7945
Wrap prop names in ""
aleksanderkatan 2427b87
Add private prop autonaming tests
aleksanderkatan 25b87a6
Autoname private properties
aleksanderkatan cc4e34e
Handle private property access
aleksanderkatan 203e37c
Wrap prop names in "" in babel
aleksanderkatan d6808ca
Only wrap when necessary
aleksanderkatan 1c36feb
Update tests
aleksanderkatan a1d7d12
Stop linting private property
aleksanderkatan c3b2b63
Review fix
aleksanderkatan d3bdf17
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan 5f578ef
Update parser
aleksanderkatan 23b4f44
Collect externals from top in parsers and replace them in tinyest
aleksanderkatan 8877ba1
Update unplugin and parsers tests
aleksanderkatan 66a5090
broken test
aleksanderkatan 669e47f
Remove setName from mergeExternals
aleksanderkatan 692ac90
Name unnamed externals in propAccess and getById
aleksanderkatan a944c60
Limit tgpuDeclare to one external
aleksanderkatan 754eb92
Remove unnecessary merge from tgpuResolve
aleksanderkatan a217940
Limit rawCodeSnippet to one $uses
aleksanderkatan 1f8bccb
Add FnExternals, and throw if $uses is called multiple times
aleksanderkatan b0ec447
Prepare string-implemented functions for external swap
aleksanderkatan 236075c
Finish replacing old externals with new externals && cleanup
aleksanderkatan 7c7faad
More cleanup
aleksanderkatan a03b83f
Detect $uses on function with plugin metadata earlier
aleksanderkatan 1a16a8b
Add FnExternals docs
aleksanderkatan 9f33691
Add external name collision tests
aleksanderkatan 052f36b
Add more tests & fix fragment out external
aleksanderkatan 5ec7052
More tests && allow redundant external
aleksanderkatan 54b8b27
Update docs
aleksanderkatan d7d48ae
Add compute tests
aleksanderkatan fc8b147
Move external tests to external.test.ts
aleksanderkatan cfb074a
Fix old external tests by tweaking the api
aleksanderkatan 5b26ee6
nr fix
aleksanderkatan 312f78d
Merge branch 'main' into fix/forbid-multiple-uses
aleksanderkatan 29b0354
self-review fixes
aleksanderkatan bd481a7
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan a06100f
Merge branch 'feat/flatten-externals' into feat/expand-property-acces…
aleksanderkatan 638fe50
Update tests
aleksanderkatan 56534b3
Simplify normalizeMetadataV2, update tests
aleksanderkatan 5c7e23c
Simplify externals usage in plugins
aleksanderkatan 59adaba
Optimize and document `tryFindExternalChain`
aleksanderkatan b84d942
Remove ancestor chain
aleksanderkatan 2f38b37
Update tests
aleksanderkatan a3c5ad3
Update jsdoc
aleksanderkatan f9a4385
Fix multiple .$uses error
aleksanderkatan 5d3386d
Allow externals to be undefined
aleksanderkatan 83ee5b0
Fix external naming in wgslGenerator
aleksanderkatan 7aaefbc
Merge branch 'fix/forbid-multiple-uses' into feat/expand-property-acc…
aleksanderkatan f8d8ed4
Update snapshots
aleksanderkatan c2a3141
Add a nested unnamed struct external test
aleksanderkatan d63d3bf
Merge remote-tracking branch 'origin/main' into feat/expand-property-…
aleksanderkatan ce0b389
Add some explaining the magic docs
aleksanderkatan 45a3241
Add remaining docs
aleksanderkatan c6a3d52
Cut off flattening at '$'
aleksanderkatan 2f75602
Update snapshots
aleksanderkatan d35ea36
Change externals array to set
aleksanderkatan 37ed53e
Revert external undefined changes
aleksanderkatan 953623e
Update external tests
aleksanderkatan 1cd75cf
Review and update the doc
aleksanderkatan f30d344
Update snapshot
aleksanderkatan 0a6b605
Update docs and tests
aleksanderkatan a9cb1f9
Review fixes
aleksanderkatan 7fb2bb2
Merge remote-tracking branch 'origin/main' into feat/expand-property-…
aleksanderkatan 2e94481
Self review
aleksanderkatan 14ef463
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan af80bcf
Apply suggestions from code review
aleksanderkatan 5775d25
Remove externalNames
aleksanderkatan 60d3a9c
Update snapshots
aleksanderkatan 5ef3624
Remove redundant docs from shader-generation
aleksanderkatan 1cfd5c4
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan 9628fa0
Move visited set onto context
aleksanderkatan 6f0c43e
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan 18a30f4
Merge branch 'feat/expand-property-access-in-externals' into feat/pri…
aleksanderkatan 1bfb85c
Merge fixes
aleksanderkatan 9520237
Remove unreachable nodes
aleksanderkatan f09b819
Remove unused function
aleksanderkatan a5e96bc
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan 648dc26
Include the entire chain in autonamed externals
aleksanderkatan f492202
Apply suggestions from code review
aleksanderkatan 58525a5
Merge branch 'main' into feat/expand-property-access-in-externals
aleksanderkatan f7b9498
Update packages/tinyest-for-wgsl/src/parsers.ts
aleksanderkatan 191f7a0
Update apps/typegpu-docs/src/content/docs/advanced/explaining-the-mag…
aleksanderkatan 1f3fc01
Kill spaces
aleksanderkatan 7f22e3a
Update typegpu snapshots
aleksanderkatan dba4159
Only cache visited member expressions
aleksanderkatan defe487
Merge remote-tracking branch 'origin/main' into feat/expand-property-…
aleksanderkatan d743d93
Merge fixes
aleksanderkatan 886759b
Merge remote-tracking branch 'origin/feat/expand-property-access-in-e…
aleksanderkatan 4acec49
Review fix
aleksanderkatan 4be9449
nr fix
aleksanderkatan afbddef
Merge remote-tracking branch 'origin/main' into feat/private-property…
aleksanderkatan 15b6ec6
Merge fixes
aleksanderkatan a1c4c89
Merge branch 'main' into feat/private-property-access
aleksanderkatan bcd2ff0
Merge branch 'main' into feat/private-property-access
aleksanderkatan 3920ff6
Merge branch 'main' into feat/private-property-access
aleksanderkatan 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
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.
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.