-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Strongly typed value serialization and deserialization using IJSValueReader, JSValue, and IJSValueWriter #3760
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Strongly typed value serialization and deserialization using IJSValueReader, JSValue, and IJSValueWriter", | ||
"packageName": "react-native-windows", | ||
"email": "vmorozov@microsoft.com", | ||
"commit": "d7599a1fbbb88300ccd2b3e280b74fda9f41f061", | ||
"date": "2019-12-11T20:44:46.143Z" | ||
} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ FrameworkElement CircleViewManagerCPP::CreateView() noexcept { | |
|
||
// IViewManagerWithChildren | ||
|
||
void CircleViewManagerCPP::AddView(FrameworkElement const &parent, UIElement const &child, int64_t index) noexcept { | ||
void CircleViewManagerCPP::AddView(FrameworkElement const &parent, UIElement const &child, int64_t /*index*/) noexcept { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you add this change as part of this PR? If so, could we separate the unrelated changes out? If not I think your branch might be in a weird state. #Resolved There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have eliminated a warning caused by the unused variable. My branch is in a good state. #Resolved |
||
if (auto const &border = parent.try_as<Border>()) { | ||
border.Child(child); | ||
} | ||
|
@@ -50,15 +50,15 @@ void CircleViewManagerCPP::RemoveAllChildren(FrameworkElement const &parent) noe | |
} | ||
} | ||
|
||
void CircleViewManagerCPP::RemoveChildAt(FrameworkElement const &parent, int64_t index) noexcept { | ||
void CircleViewManagerCPP::RemoveChildAt(FrameworkElement const &parent, int64_t /*index*/) noexcept { | ||
if (auto const &border = parent.try_as<Border>()) { | ||
border.Child(nullptr); | ||
} | ||
} | ||
|
||
void CircleViewManagerCPP::ReplaceChild( | ||
FrameworkElement const &parent, | ||
UIElement const &oldChild, | ||
UIElement const & /*oldChild*/, | ||
UIElement const &newChild) noexcept { | ||
if (auto const &border = parent.try_as<Border>()) { | ||
border.Child(newChild); | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
What is the motivation for this change? #Resolved
Uh oh!
There was an error while loading. Please reload this page.
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.
The error object has a member 'message' the ||{} technique is used to ensure that we do not crash should the error be null. #Resolved