mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-29 20:29:01 +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 right = this.right; // Hack to make analysis work.
|
||||||
var rightNeedsParens = switch (right) {
|
var rightNeedsParens = switch (right) {
|
||||||
BinaryOperationExpression(:var operator) =>
|
BinaryOperationExpression(:var operator) =>
|
||||||
// dart-lang/linter#4381
|
|
||||||
// ignore: unnecessary_this
|
|
||||||
operator.precedence <= this.operator.precedence &&
|
operator.precedence <= this.operator.precedence &&
|
||||||
// ignore: unnecessary_this
|
|
||||||
!(operator == this.operator && operator.isAssociative),
|
!(operator == this.operator && operator.isAssociative),
|
||||||
ListExpression(hasBrackets: false, contents: [_, _, ...]) => true,
|
ListExpression(hasBrackets: false, contents: [_, _, ...]) => true,
|
||||||
_ => false
|
_ => false
|
||||||
|
Loading…
Reference in New Issue
Block a user