Add @isAnnotated[A] and @reifyParamListCount metadata reflection (D16) - #22
Open
halotukozak wants to merge 3 commits into
Open
Add @isAnnotated[A] and @reifyParamListCount metadata reflection (D16)#22halotukozak wants to merge 3 commits into
halotukozak wants to merge 3 commits into
Conversation
3 tasks
halotukozak
force-pushed
the
d16-isannotated-v2
branch
from
August 10, 2026 07:58
53fda7c to
040aebe
Compare
halotukozak
force-pushed
the
d16-isannotated-v2
branch
from
August 10, 2026 08:15
040aebe to
28e4ca6
Compare
@isAnnotated[A]: a Boolean metadata slot reflecting whether the RPC element carries an annotation of type A, regardless of arity (unlike @reifyAnnot's single/optional/multi extraction) - method and param level. @reifyParamListCount: an Int metadata slot for the current method's number of parameter lists, via Tuple.Size[op.ParamLists] - method level only. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
halotukozak
force-pushed
the
d16-isannotated-v2
branch
from
August 10, 2026 08:31
28e4ca6 to
5a4e9b3
Compare
# Conflicts: # src/mrpc/derive/MetadataDerivation.scala
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds @isAnnotated[A] - a Boolean metadata slot reflecting whether the RPC element carries an annotation of type A, regardless of arity (unlike @reifyAnnot's single/optional/multi extraction). Method and param level.
Adds @reifyParamListCount - an Int metadata slot for the current method's parameter-list count, via Tuple.Size[op.ParamLists]. Method level only.
Updates DIVERGENCES.md's D16 entry. Covered by IsAnnotatedAndParamListCountSuite.