Skip to content

Commit 8802c69

Browse files
authored
Add ignores to work around dart-lang/linter#4381 (#2053)
1 parent 17e3a48 commit 8802c69

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/src/ast/sass/expression/binary_operation.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ final class BinaryOperationExpression implements Expression {
8282
var right = this.right; // Hack to make analysis work.
8383
var rightNeedsParens = switch (right) {
8484
BinaryOperationExpression(:var operator) =>
85+
// dart-lang/linter#4381
86+
// ignore: unnecessary_this
8587
operator.precedence <= this.operator.precedence &&
88+
// ignore: unnecessary_this
8689
!(operator == this.operator && operator.isAssociative),
8790
ListExpression(hasBrackets: false, contents: [_, _, ...]) => true,
8891
_ => false

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
charcode: ^1.2.0
1717
cli_repl: ^0.2.1
1818
collection: ^1.16.0
19-
http: ^0.13.3
19+
http: ">=0.13.3 <1.0.0"
2020
js: ^0.6.3
2121
meta: ^1.3.0
2222
node_interop: ^2.1.0
@@ -36,7 +36,7 @@ dependencies:
3636
watcher: ^1.0.0
3737

3838
dev_dependencies:
39-
analyzer: ^5.13.0
39+
analyzer: ">=5.13.0 <7.0.0"
4040
archive: ^3.1.2
4141
cli_pkg: ^2.4.4
4242
crypto: ^3.0.0

0 commit comments

Comments
 (0)