Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Jun 7, 2020

Description

Various code clean-ups for smoother null safety migration:

  • Change the structure of all lerp methods such that type inference can infer variable nullability (removed all casts and ! in the migrated output)
  • Introduce specialized _lerpDouble, _lerpInt, and _clampInt that remove dynamic casts.
  • Move the HTML implementation code for Vertices and Canvas into dart:_engine. This removes the web-only additions to the Vertices API, and removes the need to migrate canvas code as part of dart:ui.
  • Remove some usages of late due to incompatibility with our initialization code (we use null check to detect if a variable is initialized, which is not supported by late: Null safety: late non-null variables should not complain about null checking dart-lang/sdk#42214).
  • Add a few missing null safety annotations, and annotations where the tool couldn't infer correct type.

Related Issues

flutter/flutter#53661

@yjbanov yjbanov marked this pull request as ready for review June 8, 2020 16:05
@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@yjbanov yjbanov requested a review from zanderso June 8, 2020 16:05
@auto-assign auto-assign bot requested a review from cbracken June 8, 2020 16:06
Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yjbanov
Copy link
Contributor Author

yjbanov commented Jun 8, 2020

The luci-engine redness was on a Skia commit. I will land this and see if it fixes the engine breakage. If it does, then the breakage was a flake. If not, we'll have to revert the Skia roll.

@yjbanov yjbanov merged commit f581f42 into flutter:master Jun 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2020
cg021 pushed a commit to cg021/engine that referenced this pull request Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants