* Remove visual cascade
(decl)
| 160 | * Remove visual cascade |
| 161 | */ |
| 162 | restoreBefore(decl) { |
| 163 | let lines = decl.raw('before').split('\n') |
| 164 | let min = lines[lines.length - 1] |
| 165 | |
| 166 | this.all.group(decl).up(prefixed => { |
| 167 | let array = prefixed.raw('before').split('\n') |
| 168 | let last = array[array.length - 1] |
| 169 | if (last.length < min.length) { |
| 170 | min = last |
| 171 | } |
| 172 | }) |
| 173 | |
| 174 | lines[lines.length - 1] = min |
| 175 | decl.raws.before = lines.join('\n') |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Set prefix to declaration |
no test coverage detected