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
Enable strict null checks #1283
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
247cb3d
Update dependencies to null-safe versions
jathak 3fa2b1d
Fix hints and lints
nex3 5d0ad69
Split IfClause into ElseClause
nex3 ca3c6f5
Refactor how style rules interact with at-root
nex3 21e7ec1
Split Declaration's constructor into two
nex3 984e76e
Remove type parameters from recursive AST visitors
nex3 8fdb281
Make the first parameter to ImportCache() named, not mandatory
nex3 dfbdae0
Prepare for null-safety migration
jathak 81d952d
Automated null-safety migration
nex3 e85d9a7
Fix automated migrator errors
nex3 8fd3c1b
Rename Extender to ExtensionStore
nex3 3ead2e2
Split out an Extender class from Extension
nex3 de013bf
Make spans universally non-nullable
nex3 654744f
Fix bogus null assertions
nex3 102d3ce
Make the IO interface align with the VM API
nex3 af0f25c
Fix broken tests
Awjin 5535458
Fix broken specs
nex3 59b9dac
Update the pubspec
nex3 c2e02a5
Use ?[] instead of .andGet()
nex3 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 determines when
_styleRuleIgnoringAtRoot
should be used instead of_styleRule
?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 spec, mostly—in this case,
&
as an expression always ignores@at-root
so you can interpolate it into selectors. Separating out these variables not only makes it more explicit which references respect@at-root
and which don't, it also removes the implicit constraint that_inStyleRule
means that_styleRule != null
. Instead, we just check_styleRule == null
, which is more visible to the type system.