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 * └── 1 child not shown
* *
*/ */
val SimpleNodePrinter = TextTreeRenderer(false, -1) val SimpleNodePrinter = TextTreeRenderer(true, -1)
open class RelevantAttributePrinter : BaseNodeAttributePrinter() { open class RelevantAttributePrinter : BaseNodeAttributePrinter() {
@ -36,7 +36,7 @@ open class RelevantAttributePrinter : BaseNodeAttributePrinter() {
/** /**
* Base attribute printer, subclass to filter attributes. * 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 protected open fun ignoreAttribute(node: Node, attribute: Attribute): Boolean = true

View File

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