Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Propagate the 'this' keyword in LibraryImports#102793

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@jtschuster
Copy link
Member

Fixes#102690

Since Roslyn just lowers the extension methods to a call to the static method there's no reason we shouldn't support creating extension methods that are alsoLibraryImport methods. This adds theIsExplicitThis property toTypePositionInfo and copiesthis to the generated signature if it istrue.

MrScautHD and copperdevs reacted with thumbs up emoji
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info inarea-owners.md if you want to be subscribed.

…erop.SourceGeneration/Marshalling/MarshallerHelpers.csCo-authored-by: Aaron Robinson <arobins@microsoft.com>
@jtschusterjtschuster merged commit36a85b0 intodotnet:mainMay 30, 2024
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull requestMay 30, 2024
Since Roslyn just lowers the extension methods to a call to the static method there's no reason we shouldn't support creating extension methods that are also LibraryImport methods. This adds the IsExplicitThis property to TypePositionInfo and copies this to the generated signature if it is true.
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 29, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@jkoritzinskyjkoritzinskyjkoritzinsky approved these changes

@AaronRobinsonMSFTAaronRobinsonMSFTAaronRobinsonMSFT approved these changes

Assignees

@jtschusterjtschuster

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

LibraryImport do not copythis

3 participants

@jtschuster@jkoritzinsky@AaronRobinsonMSFT

[8]ページ先頭

©2009-2025 Movatter.jp