From 4096aae8d42eab552c722297feb9593427cf4f8b Mon Sep 17 00:00:00 2001 From: meisl Date: Mon, 21 Jun 2021 20:07:24 +0200 Subject: [PATCH] * SourceCode.toString() now states both, java class and .origin --- compilerAst/src/prog8/parser/SourceCode.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compilerAst/src/prog8/parser/SourceCode.kt b/compilerAst/src/prog8/parser/SourceCode.kt index 02b3f721b..c8744d628 100644 --- a/compilerAst/src/prog8/parser/SourceCode.kt +++ b/compilerAst/src/prog8/parser/SourceCode.kt @@ -29,13 +29,9 @@ abstract class SourceCode() { /** * Deliberately does NOT return the actual text. - * Use [getCharStream]. + * For this - if at all - use [getCharStream]. */ - final override fun toString() = super.toString() - - - - + final override fun toString() = "${this.javaClass.name}[${this.origin}]" // "static" factory methods companion object {