mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 12:14:42 +01:00
Stop working around dart-lang/linter#4381 (#2071)
This commit is contained in:
parent
8f0eca33e2
commit
58cbab42e6
@ -82,10 +82,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user