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

[v3] Binding generator using go/types #3397

Closed
wants to merge 86 commits into from

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    5966ff0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64e2226 View commit details
    Browse the repository at this point in the history
  3. Improve logging of remote method calls

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a3a3b5f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6532ed View commit details
    Browse the repository at this point in the history
  5. Fix computation of type namespaces

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    bbe998e View commit details
    Browse the repository at this point in the history
  6. Improve comments and general formatting

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    943f210 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e354fb4 View commit details
    Browse the repository at this point in the history
  8. Add templates for bindings

    Additionally:
    * fixes generation of tuple return type
    * improves imports and namespacing in JS mode
    * general cleanup of generated code
    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    48c217b View commit details
    Browse the repository at this point in the history
  9. Simplify import list construction

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d6cb19f View commit details
    Browse the repository at this point in the history
  10. Refactor type generation code

    Improves support for unknown types (encoded as any) and maps (using
    Typescript index signatures)
    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    de7db98 View commit details
    Browse the repository at this point in the history
  11. Support slices with pointer elements

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    959afd4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4b4ed2f View commit details
    Browse the repository at this point in the history
  13. Update tests and example

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    07cf45c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9711cdb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    68d06dc View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    49f4764 View commit details
    Browse the repository at this point in the history
  17. Update test data

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d2dea19 View commit details
    Browse the repository at this point in the history
  18. fix quoted bool field

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a695979 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1a6d99f View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    044ba23 View commit details
    Browse the repository at this point in the history
  21. Test quoted booleans

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    0a37aac View commit details
    Browse the repository at this point in the history
  22. Delete old parser code

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    bc5bae2 View commit details
    Browse the repository at this point in the history
  23. Update bindgen flags

    * Makes call by ID the default
    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    aa098b7 View commit details
    Browse the repository at this point in the history
  24. Add package loading code

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    90236ba View commit details
    Browse the repository at this point in the history
  25. Add static analyser

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    4f09d50 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    22c86fd View commit details
    Browse the repository at this point in the history
  27. Add complex slice expressions test

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2e47b33 View commit details
    Browse the repository at this point in the history
  28. Fix variable reference analysis

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a16b15a View commit details
    Browse the repository at this point in the history
  29. Unwrap casts to interface types

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    0a72e20 View commit details
    Browse the repository at this point in the history
  30. Complete code comments

    fbbdev authored and abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    98259be View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    52bf19c View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    a458637 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    8615197 View commit details
    Browse the repository at this point in the history
  34. Add doc comments (wip)

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    091ced9 View commit details
    Browse the repository at this point in the history
  35. Fix modelsIn

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    5ae063e View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    44fbfff View commit details
    Browse the repository at this point in the history
  37. Add LoadMode.NeedImports

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    fccc766 View commit details
    Browse the repository at this point in the history
  38. Add VarAnalyzer

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    5014f61 View commit details
    Browse the repository at this point in the history
  39. Fix imports of binding

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    4973118 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    27b3881 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    945c46a View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    d21a48d View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    f2651dc View commit details
    Browse the repository at this point in the history
  44. Update templates

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ef3650c View commit details
    Browse the repository at this point in the history
  45. Enable tests

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    57bcc8d View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    dd75cd2 View commit details
    Browse the repository at this point in the history
  47. Load imported packages

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    d56bed8 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    fc70785 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    bd3247a View commit details
    Browse the repository at this point in the history
  50. Add Field and JsonTag

    - Fix `calculateModelImports`
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2c304c6 View commit details
    Browse the repository at this point in the history
  51. Add benchmark

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    639c506 View commit details
    Browse the repository at this point in the history
  52. Sort bound methods

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    85241a5 View commit details
    Browse the repository at this point in the history
  53. Fix default value of enums

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    5a64083 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    63d092f View commit details
    Browse the repository at this point in the history
  55. Add more tests

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    8d9d024 View commit details
    Browse the repository at this point in the history
  56. Modify resolution of package dir, ...

    - Don't bind methods with interfaces as parameter
    - Remove `Service` field from `BoundMethod`
    - Rename `includeFields` to `recursive`
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    57deae7 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    3c3dc5b View commit details
    Browse the repository at this point in the history
  58. Ignore unexported methods, ...

    - Skip empty model files
    - Fix default of `ModelsFilename`
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ae40fd5 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    2fe49bc View commit details
    Browse the repository at this point in the history
  60. Support embedded structs, ...

    - Add type aliases
    - Fix order of enum values
    - Support JSON inside JSON - `json:",string"`
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    f8b1edd View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    bbeaa68 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    89126af View commit details
    Browse the repository at this point in the history
  63. Use package path in method identifier

    Using the package path instead of the package name
    should avoid all collisions
    
    Replace `Bindings.boundMethods` with  `Bindings.boundByName`
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    a702897 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    222c715 View commit details
    Browse the repository at this point in the history
  65. Fix default value of aliases, ...

    Fix default value of quoted fields,
    Add `Models` to `Package` and
    some refactoring
    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    4281c82 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    aa4623f View commit details
    Browse the repository at this point in the history
  67. Move some functions

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    8c62d48 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    1660a12 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    bdb8d5c View commit details
    Browse the repository at this point in the history
  70. Update binding example

    abichinger committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    43418e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Improve package loading

    abichinger committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    807d63c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    711cdde View commit details
    Browse the repository at this point in the history
  2. Improve search of models

    Rename `.Models()` to `.FindModels()`
    abichinger committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9995901 View commit details
    Browse the repository at this point in the history
  3. Update benchmark

    abichinger committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    690d8f4 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Add -find flag to go list

    and remove dead code
    abichinger committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    2adecf6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f18b7a View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Support types.Alias

    abichinger committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    597d2c4 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Configuration menu
    Copy the full SHA
    afc9d3f View commit details
    Browse the repository at this point in the history
  2. Ignore interface fields

    abichinger committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    95402c9 View commit details
    Browse the repository at this point in the history
  3. Remove duplicate warnings

    abichinger committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    e5c2e7b View commit details
    Browse the repository at this point in the history
  4. Add more tests

    abichinger committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    77e9f48 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6f4385 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. Support application.New outside of main, ...

    - Add `BasePath`: The base package path
    - Add `UseBaseName`: Place the base package bindings inside a folder with the base package name
    - Add more tests
    abichinger committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    3be3606 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. New project with files in dist directory

    If the dist directory is empty the task `generate:bindings`
    will fail with the following error message:
    pattern frontend/dist: cannot embed directory frontend/dist:
    contains no embeddable files
    abichinger committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    b63b649 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0202b08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ef5669 View commit details
    Browse the repository at this point in the history