-
Notifications
You must be signed in to change notification settings - Fork 790
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
Generic Attributes #17258
Draft
mflibby
wants to merge
26
commits into
dotnet:main
Choose a base branch
from
Hillcrest-R-D:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,422
−146
Draft
Generic Attributes #17258
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
c6a11c4
basic parsing implementation of generic attribute type parameters
mflibby 80f8ed8
Merge remote-tracking branch 'upstream' into main
mflibby cd39370
generalized basic parsing for type parameters on attributes
mflibby 8093188
Merge branch 'main' into hcrd_main
mflibby 0064634
threading type parameters into type tree
mflibby 10c7d7e
Merge branch 'main' into hcrd_main
mflibby cdb0974
fully threaded base implementation of generic attributes
mflibby c611fb6
Merge branch 'main' into hcrd_main
mflibby 799ad54
updating originally named TypeParam to TypeArg (for attr types) to al…
mflibby d9ac04e
updated with language feature and reverted modified test cases
mflibby e545b49
updated release notes
mflibby 64607ef
formatting fixes
mflibby 45281ef
more tests for ensuring appropriate type arg behavior in attributes
mflibby b24ffe5
Merge remote-tracking branch 'upstream' into hcrd_main
mflibby 796a4ba
fixed type level generic attributes not being digested properly in Is…
mflibby 97c326e
fixed lexing issue where type args adjacent to >] clashed
mflibby 6566460
cleanup
mflibby d81d3d3
Merge branch 'main' into hcrd_main
mflibby d6c846e
added missing baseline for new ILEmission test
mflibby cdb2b4e
more cleanup
mflibby e40ed04
Merge branch 'main' into hcrd_main
mflibby 24d679a
fully implemented type args into other production cases and added tes…
mflibby 1e886be
revert irrelevant formatting change
mflibby 47c5dc7
formatting adjustment to avoid unnecessary diff
mflibby 993d1fe
added alias generic test
mflibby 4255a3f
added self reference generic attribute usage test
mflibby 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize it's generally a "no-no" to do this to obscure functionality (i.e. I dont yet understand what this was for), but it seems that with the introduction of generic attributes, we will need to fully qualify the environment for attribute usage. Since this function was only used in the generation of attributes, my current position is that this function can be deleted - though I am still curious why the count was being maxed for the non-generic case, if anyone has that wisdom on hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this:
https://github.com/dotnet/fsharp/blob/main/src/Compiler/AbstractIL/ilwrite.fs#L905