-
Notifications
You must be signed in to change notification settings - Fork 169
=> Dart 3.0! #4267
=> Dart 3.0! #4267
Conversation
@@ -193,4 +174,12 @@ class _Visitor extends SimpleAstVisitor<void> { | |||
|
|||
return true; | |||
} | |||
|
|||
static TokenType _invertedTokenType(TokenType type) => switch (type) { |
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.
This looks so nice!
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.
Bonus points for being generated by our assist. 🥳
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.
/fyi @munificent
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.
For points, you could make this an extension on TokenType
😄
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.
* dart 3.0 migration * fixed dangling library
With (internal) cl/523481067 landed and server on 3.0, I think we're actually good to go here and this is safe to land.
/cc @bwilkerson @srawlins