style tweaks to previous patch.
This commit is contained in:
parent
c50cb65019
commit
67c20c0715
|
@ -1476,7 +1476,7 @@
|
||||||
if (this.isChainable() && this.first.isChainable()) {
|
if (this.isChainable() && this.first.isChainable()) {
|
||||||
allInvertable = true;
|
allInvertable = true;
|
||||||
curr = this;
|
curr = this;
|
||||||
while (curr && (curr.operator != null)) {
|
while (curr && curr.operator) {
|
||||||
allInvertable && (allInvertable = curr.operator in INVERSIONS);
|
allInvertable && (allInvertable = curr.operator in INVERSIONS);
|
||||||
curr = curr.first;
|
curr = curr.first;
|
||||||
}
|
}
|
||||||
|
@ -1484,7 +1484,7 @@
|
||||||
return new Parens(this).invert();
|
return new Parens(this).invert();
|
||||||
}
|
}
|
||||||
curr = this;
|
curr = this;
|
||||||
while (curr && (curr.operator != null)) {
|
while (curr && curr.operator) {
|
||||||
curr.invert = !curr.invert;
|
curr.invert = !curr.invert;
|
||||||
curr.operator = INVERSIONS[curr.operator];
|
curr.operator = INVERSIONS[curr.operator];
|
||||||
curr = curr.first;
|
curr = curr.first;
|
||||||
|
|
|
@ -1175,13 +1175,13 @@ exports.Op = class Op extends Base
|
||||||
invert: ->
|
invert: ->
|
||||||
if @isChainable() and @first.isChainable()
|
if @isChainable() and @first.isChainable()
|
||||||
allInvertable = yes
|
allInvertable = yes
|
||||||
curr = @
|
curr = this
|
||||||
while curr and curr.operator?
|
while curr and curr.operator
|
||||||
allInvertable &&= (curr.operator of INVERSIONS)
|
allInvertable and= (curr.operator of INVERSIONS)
|
||||||
curr = curr.first
|
curr = curr.first
|
||||||
return new Parens(this).invert() unless allInvertable
|
return new Parens(this).invert() unless allInvertable
|
||||||
curr = @
|
curr = this
|
||||||
while curr and curr.operator?
|
while curr and curr.operator
|
||||||
curr.invert = !curr.invert
|
curr.invert = !curr.invert
|
||||||
curr.operator = INVERSIONS[curr.operator]
|
curr.operator = INVERSIONS[curr.operator]
|
||||||
curr = curr.first
|
curr = curr.first
|
||||||
|
|
Loading…
Reference in New Issue