Skip to content
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

JS Functions can accept struct params as JS objects #734

Merged
merged 46 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
31cd4fd
Add _fromSuppliedValue function
ambiguousname Nov 21, 2024
10351ea
Generation
ambiguousname Nov 21, 2024
0e74779
Generation fixes
ambiguousname Nov 21, 2024
ccd8b8a
Writing test for recursive construction
ambiguousname Dec 3, 2024
3930b12
Adding tests for both kinds of construction
ambiguousname Dec 3, 2024
eef60ee
Better test names
ambiguousname Dec 3, 2024
e3bbf42
Giving tests more accurate names
ambiguousname Dec 3, 2024
3651fa8
Formatting
ambiguousname Dec 3, 2024
73fe37a
Started on typescript recognizing Struct_Obj types and new import system
ambiguousname Dec 3, 2024
209abe4
Start on adding file paths to import info
ambiguousname Dec 3, 2024
c8133b6
Add import usage field
ambiguousname Dec 3, 2024
e3bd9b1
Add ImportUsage definitions
ambiguousname Dec 3, 2024
256b33b
Matching output to given ImportInfo
ambiguousname Dec 3, 2024
05fc87a
Wrong file
ambiguousname Dec 3, 2024
6b1397f
Defining what makes an import unique for the set
ambiguousname Dec 3, 2024
51a7b59
Fixing hash set issues
ambiguousname Dec 3, 2024
edcf1f5
Generation
ambiguousname Dec 3, 2024
12ddcd0
Formatting
ambiguousname Dec 3, 2024
60630b8
_Obj types also now add _Obj to accepted struct field types
ambiguousname Dec 5, 2024
5fc0a74
Remove _Obj import in definition file
ambiguousname Dec 5, 2024
ae1927c
Simplify parameter/field acceptance for structs
ambiguousname Dec 5, 2024
5b13cef
Generation
ambiguousname Dec 5, 2024
62d08c6
New test
ambiguousname Dec 5, 2024
a0f9b0a
One more test
ambiguousname Dec 5, 2024
c3082a6
Lowercase o to avoid collisions
ambiguousname Dec 5, 2024
9799b32
Generation
ambiguousname Dec 5, 2024
1d1613c
Formatting
ambiguousname Dec 5, 2024
fad0c25
Call _fromSupplied value recursively in constructors
ambiguousname Dec 5, 2024
564fbbd
Generation
ambiguousname Dec 5, 2024
54b298e
Fixing tests
ambiguousname Dec 5, 2024
f26a30e
Avoiding #739
ambiguousname Dec 5, 2024
e3beef9
Passing tests
ambiguousname Dec 5, 2024
f422d50
Clippy
ambiguousname Dec 8, 2024
42a2e83
Revert "Avoiding #739"
ambiguousname Dec 12, 2024
4e48e4d
Generation
ambiguousname Dec 12, 2024
42bb955
Merge branch 'main' into js-struct-from-obj
ambiguousname Dec 12, 2024
034de5f
Merge branch 'main' into js-struct-from-obj
ambiguousname Dec 12, 2024
ef00937
Test compiling
ambiguousname Dec 12, 2024
0419ad3
New generation to fix tests
ambiguousname Dec 12, 2024
f3a1ec8
Split imports into two sets
ambiguousname Dec 12, 2024
9a3bb20
Formatting
ambiguousname Dec 12, 2024
f5f17f0
Clippy
ambiguousname Dec 12, 2024
5d4000d
Formatting again
ambiguousname Dec 12, 2024
b909ec4
Clippy, one last time
ambiguousname Dec 12, 2024
a2a717e
Merge branch 'main' into js-struct-from-obj
ambiguousname Dec 13, 2024
d2be1ef
Regeneration
ambiguousname Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example/js/lib/api/FixedDecimalFormatter.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/js/lib/api/FixedDecimalFormatter.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/js/lib/api/FixedDecimalFormatterOptions.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions example/js/lib/api/FixedDecimalFormatterOptions.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions feature_tests/c/include/CyclicStructC.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions feature_tests/cpp/include/CyclicStructC.d.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions feature_tests/cpp/include/CyclicStructC.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions feature_tests/dart/lib/src/CyclicStructC.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions feature_tests/js/api/BigStructWithStuff.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions feature_tests/js/api/BigStructWithStuff.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions feature_tests/js/api/BorrowedFields.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions feature_tests/js/api/BorrowedFields.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions feature_tests/js/api/BorrowedFieldsReturning.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions feature_tests/js/api/BorrowedFieldsReturning.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions feature_tests/js/api/BorrowedFieldsWithBounds.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions feature_tests/js/api/BorrowedFieldsWithBounds.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions feature_tests/js/api/CyclicStructA.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions feature_tests/js/api/CyclicStructA.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions feature_tests/js/api/CyclicStructB.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading