diff --git a/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/squid/SemanticAstNode.kt b/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/squid/SemanticAstNode.kt index 2b07aeba..c6f4ca75 100644 --- a/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/squid/SemanticAstNode.kt +++ b/zpa-core/src/main/kotlin/org/sonar/plugins/plsqlopen/api/squid/SemanticAstNode.kt @@ -73,10 +73,17 @@ class SemanticAstNode(type: AstNodeType, name: String, token: Token?) : AstNode( get() = tokens.joinToString(" ") { it.originalValue } override fun toString(): String { - return super.toString() + if (plSqlDatatype !is UnknownDatatype) { - " datatype=$plSqlDatatype" - } else { - "" + return buildString { + append(name) + if (tokenOrNull != null) { + append(" value='").append(token.value).append("'") + append(" line=").append(token.line) + append(" column=").append(token.column) + } + if (plSqlDatatype !is UnknownDatatype) { + append(" datatype=") + append(plSqlDatatype) + } } } }