Add ignores to work around dart-lang/linter#4381 (#2053)

This commit is contained in:
Natalie Weizenbaum 2023-08-01 18:13:14 -07:00 committed by GitHub
parent 17e3a48639
commit 8802c69337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -82,7 +82,10 @@ final class BinaryOperationExpression implements Expression {
var right = this.right; // Hack to make analysis work.
var rightNeedsParens = switch (right) {
BinaryOperationExpression(:var operator) =>
// dart-lang/linter#4381
// ignore: unnecessary_this
operator.precedence <= this.operator.precedence &&
// ignore: unnecessary_this
!(operator == this.operator && operator.isAssociative),
ListExpression(hasBrackets: false, contents: [_, _, ...]) => true,
_ => false

View File

@ -16,7 +16,7 @@ dependencies:
charcode: ^1.2.0
cli_repl: ^0.2.1
collection: ^1.16.0
http: ^0.13.3
http: ">=0.13.3 <1.0.0"
js: ^0.6.3
meta: ^1.3.0
node_interop: ^2.1.0
@ -36,7 +36,7 @@ dependencies:
watcher: ^1.0.0
dev_dependencies:
analyzer: ^5.13.0
analyzer: ">=5.13.0 <7.0.0"
archive: ^3.1.2
cli_pkg: ^2.4.4
crypto: ^3.0.0