Use ascii printer for tree dumps

Some environments may not display
the structure correctly otherwise. See
eg https://travis-ci.org/github/pmd/pmd/jobs/668122788#L9312-L9322
This commit is contained in:
Clément Fournier 2020-03-29 09:21:36 +02:00
parent e84349531b
commit 5cbfdfdd99
3 changed files with 1726 additions and 1726 deletions

View File

@ -21,7 +21,7 @@ import org.apache.commons.lang3.StringEscapeUtils
* 1 child not shown
*
*/
val SimpleNodePrinter = TextTreeRenderer(false, -1)
val SimpleNodePrinter = TextTreeRenderer(true, -1)
open class RelevantAttributePrinter : BaseNodeAttributePrinter() {
@ -36,7 +36,7 @@ open class RelevantAttributePrinter : BaseNodeAttributePrinter() {
/**
* Base attribute printer, subclass to filter attributes.
*/
open class BaseNodeAttributePrinter : TextTreeRenderer(false, -1) {
open class BaseNodeAttributePrinter : TextTreeRenderer(true, -1) {
protected open fun ignoreAttribute(node: Node, attribute: Attribute): Boolean = true

View File

@ -1,90 +1,90 @@
└─ Source
└─ Pkg
├─ TermSelect
│ ├─ TermName
│ └─ TermName
└─ PkgObject
├─ TermName
└─ Template
├─ Self
│ └─ NameAnonymous
├─ DefnType
│ ├─ TypeName
│ └─ TypeSelect
│ ├─ TermSelect
│ │ ├─ TermName
│ │ └─ TermName
│ └─ TypeName
├─ DefnVal
│ ├─ PatVar
│ │ └─ TermName
│ └─ TermSelect
│ ├─ TermSelect
│ │ ├─ TermName
│ │ └─ TermName
│ └─ TermName
├─ DefnType
│ ├─ TypeName
│ └─ TypeSelect
│ ├─ TermSelect
│ │ ├─ TermName
│ │ └─ TermName
│ └─ TypeName
├─ DefnVal
│ ├─ PatVar
│ │ └─ TermName
│ └─ TermSelect
│ ├─ TermSelect
│ │ ├─ TermName
│ │ └─ TermName
│ └─ TermName
├─ DefnType
│ ├─ ModAnnot
│ │ └─ Init
│ │ ├─ TypeName
│ │ ├─ NameAnonymous
│ │ ├─ LitString
│ │ └─ LitString
│ ├─ TypeName
│ ├─ TypeParam
│ │ ├─ ModCovariant
│ │ ├─ TypeName
│ │ └─ TypeBounds
│ └─ TypeApply
│ ├─ TypeName
│ └─ TypeName
├─ DefnVal
│ ├─ ModAnnot
│ │ └─ Init
│ │ ├─ TypeName
│ │ ├─ NameAnonymous
│ │ ├─ LitString
│ │ └─ LitString
│ ├─ PatVar
│ │ └─ TermName
│ └─ TermName
└─ DefnType
├─ ModAnnot
│ └─ Init
│ ├─ TypeName
│ ├─ NameAnonymous
│ ├─ LitString
│ └─ LitString
├─ TypeName
├─ TypeParam
│ ├─ TypeName
│ └─ TypeBounds
├─ TypeParam
│ ├─ ModCovariant
│ ├─ TypeName
│ └─ TypeBounds
└─ TypeApply
├─ TypeSelect
│ ├─ TermSelect
│ │ ├─ TermSelect
│ │ │ ├─ TermName
│ │ │ └─ TermName
│ │ └─ TermName
│ └─ TypeName
├─ TypeName
└─ TypeName
+- Source
+- Pkg
+- TermSelect
| +- TermName
| +- TermName
+- PkgObject
+- TermName
+- Template
+- Self
| +- NameAnonymous
+- DefnType
| +- TypeName
| +- TypeSelect
| +- TermSelect
| | +- TermName
| | +- TermName
| +- TypeName
+- DefnVal
| +- PatVar
| | +- TermName
| +- TermSelect
| +- TermSelect
| | +- TermName
| | +- TermName
| +- TermName
+- DefnType
| +- TypeName
| +- TypeSelect
| +- TermSelect
| | +- TermName
| | +- TermName
| +- TypeName
+- DefnVal
| +- PatVar
| | +- TermName
| +- TermSelect
| +- TermSelect
| | +- TermName
| | +- TermName
| +- TermName
+- DefnType
| +- ModAnnot
| | +- Init
| | +- TypeName
| | +- NameAnonymous
| | +- LitString
| | +- LitString
| +- TypeName
| +- TypeParam
| | +- ModCovariant
| | +- TypeName
| | +- TypeBounds
| +- TypeApply
| +- TypeName
| +- TypeName
+- DefnVal
| +- ModAnnot
| | +- Init
| | +- TypeName
| | +- NameAnonymous
| | +- LitString
| | +- LitString
| +- PatVar
| | +- TermName
| +- TermName
+- DefnType
+- ModAnnot
| +- Init
| +- TypeName
| +- NameAnonymous
| +- LitString
| +- LitString
+- TypeName
+- TypeParam
| +- TypeName
| +- TypeBounds
+- TypeParam
| +- ModCovariant
| +- TypeName
| +- TypeBounds
+- TypeApply
+- TypeSelect
| +- TermSelect
| | +- TermSelect
| | | +- TermName
| | | +- TermName
| | +- TermName
| +- TypeName
+- TypeName
+- TypeName