This repository was archived by the owner on Mar 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11
2- const log = console . debug // in dev
3- // const log = () => {} // in production
2+ // const log = console.debug // in dev
3+ const log = ( ) => { } // in production
44
55module . exports = class TreeIndenter {
66 constructor ( languageMode ) {
@@ -56,11 +56,11 @@ module.exports = class TreeIndenter {
5656 const notFirstOrLastSibling =
5757 ( node . previousSibling != null && node . nextSibling != null )
5858
59- const isScope = this . scopes . indent [ node . parent . type ] (
60- notFirstOrLastSibling && isScope && increment ++ )
59+ const isScope = this . scopes . indent [ node . parent . type ] ;
60+ ( notFirstOrLastSibling && isScope && increment ++ )
6161
62- const isScope2 = this . scopes . indentExceptFirst [ node . parent . type ] (
63- ! increment && isScope2 && node . previousSibling != null && increment ++ )
62+ const isScope2 = this . scopes . indentExceptFirst [ node . parent . type ] ;
63+ ( ! increment && isScope2 && node . previousSibling != null && increment ++ )
6464
6565 // check whether the last (lower) indentation happend due to a scope that
6666 // started on the same row and ends directly before this.
You can’t perform that action at this time.
0 commit comments