()
| 347 | } |
| 348 | |
| 349 | func (p *printer) printIndent() { |
| 350 | if p.options.MinifyWhitespace { |
| 351 | return |
| 352 | } |
| 353 | |
| 354 | if p.printNextIndentAsSpace { |
| 355 | p.print(" ") |
| 356 | p.printNextIndentAsSpace = false |
| 357 | return |
| 358 | } |
| 359 | |
| 360 | indent := p.options.Indent |
| 361 | if p.options.LineLimit > 0 && indent*2 >= p.options.LineLimit { |
| 362 | indent = p.options.LineLimit / 2 |
| 363 | } |
| 364 | for i := 0; i < indent; i++ { |
| 365 | p.print(" ") |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | func (p *printer) mangledPropName(ref ast.Ref) string { |
| 370 | ref = ast.FollowSymbols(p.symbols, ref) |
no test coverage detected