Skip to content

Commit

Permalink
Add ignores to work around dart-lang/linter#4381 (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Aug 2, 2023
1 parent 17e3a48 commit 8802c69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/src/ast/sass/expression/binary_operation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8802c69

Please sign in to comment.