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

accept ForeignInclude attributes on methods (beta-3.0) #491

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

mortend
Copy link
Member

@mortend mortend commented May 28, 2023

UnoCore: use params in Foreign attributes

This removes a bunch of redundant constructors from
ForeignIncludeAttribute and ForeignAnnotatonAttribute.

compiler: support array arguments in attributes

This makes it possible to accept an array of constants (or use params)
in attribute constructors, enabling us to make some code a bit nicer
(ForeignIncludeAttribute and ForeignAnnotatonAttribute).

  • Implement NewArray.ConstantValue
  • Modify Expression.ConstantString to serialize arrays (via ToString())
  • Remove unused method in NewObject
  • Remove redundant 'env' parameter in ForeignHelpers
  • Update UnoDoc backend

compiler: accept ForeignInclude attributes on methods

This accepts ForeignInclude attributes on methods and types, instead of
just types. Specifying the ForeignInclude attribute on the method it is
used (rather than the whole type) makes things more coherent.

  • Update existing ForeignInclude attributes in the code-base

@mortend mortend force-pushed the foreign-include branch from 8435e3f to 87914ac Compare May 28, 2023 09:18
This accepts ForeignInclude attributes on methods and types, instead of
just types. Specifying the ForeignInclude attribute on the method it is
used (rather than the whole type) makes things more coherent.

* Update existing ForeignInclude attributes in the code-base
@mortend mortend force-pushed the foreign-include branch 2 times, most recently from ab2bfd0 to effa3d8 Compare June 1, 2023 12:50
mortend added 2 commits June 1, 2023 19:54
This makes it possible to accept an array of constants (or use params)
in attribute constructors, enabling us to make some code a bit nicer
(ForeignIncludeAttribute and ForeignAnnotatonAttribute).

* Implement NewArray.ConstantValue
* Modify Expression.ConstantString to serialize arrays (via ToString())
* Remove unused method in NewObject
* Remove redundant 'env' parameter in ForeignHelpers
* Update UnoDoc backend
This removes a bunch of redundant constructors from
ForeignIncludeAttribute and ForeignAnnotatonAttribute.
@mortend mortend force-pushed the foreign-include branch from effa3d8 to e184aaf Compare June 1, 2023 12:55
@mortend mortend merged commit e903dee into fuse-open:beta-3.0 Jun 1, 2023
@mortend mortend deleted the foreign-include branch June 1, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant