Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upConditionally mark getter/setter implementations virtual in generated classes #8303
Conversation
IISResetMe
requested review from
BrucePay and
daxian-dbw
as
code owners
Nov 17, 2018
iSazonov
requested a review
from
lzybkr
Nov 18, 2018
This comment has been minimized.
This comment has been minimized.
|
I have a two-year-old commit that supports getters/setters (MSFT team had a plan to enhance class support before 6.1 release but it was postponed and I'm already tired to rebase the commit every month :-) ) and I could add it there since this code has been significantly modified. @IISResetMe Please add tests and fix CodeFactor issues. |
This comment has been minimized.
This comment has been minimized.
|
@iSazonov if you have anything that's either more correct, complete or aesthetically pleasing, please feel free to update the PR :) |
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe My post was informational. If you commit will approved I can grab it to my branch or rebase my branch. |
IISResetMe
force-pushed the
IISResetMe:patch/virtual-interface-properties
branch
to
4c6b908
Nov 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@iSazonov Fixed the CodeFactor issues in |
This comment has been minimized.
This comment has been minimized.
|
We ignore "Complex Method". |
iSazonov
approved these changes
Nov 21, 2018
IISResetMe
force-pushed the
IISResetMe:patch/virtual-interface-properties
branch
Nov 21, 2018
IISResetMe
force-pushed the
IISResetMe:patch/virtual-interface-properties
branch
to
699f56c
Nov 21, 2018
IISResetMe
added some commits
Nov 21, 2018
lzybkr
approved these changes
Nov 21, 2018
iSazonov
closed this
Nov 22, 2018
This comment has been minimized.
This comment has been minimized.
|
Reopen to restart Appveyor CI., |
iSazonov
reopened this
Nov 22, 2018
iSazonov
self-assigned this
Nov 30, 2018
iSazonov
added
the
CL-General
label
Nov 30, 2018
iSazonov
merged commit 950377f
into
PowerShell:master
Nov 30, 2018
6 of 7 checks passed
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe Thanks for your contribution! |
IISResetMe commentedNov 17, 2018
•
edited
Fix #8302
When implementing interfaces, PowerShell incorrectly produces non-virtual get/set methods for interface-defined properties.
This commit adds a lookup method for interface-defined properties and marks get/set methods for properties with matching signatures virtual.
PR Summary
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature testsI'm unsure how to meaningfully add tests to prevent regression for this