diff --git a/compiler/src/prog8/ast/AST.kt b/compiler/src/prog8/ast/AST.kt index cd4e37a89..3f2746f1b 100644 --- a/compiler/src/prog8/ast/AST.kt +++ b/compiler/src/prog8/ast/AST.kt @@ -1794,7 +1794,7 @@ fun prog8Parser.ModuleContext.toAst(name: String, isLibrary: Boolean, importedFr private fun ParserRuleContext.toPosition() : Position { val file = if(start.inputStream.sourceName == IntStream.UNKNOWN_SOURCE_NAME) - "" + "@internal@" else File(start.inputStream.sourceName).name // note: be ware of TAB characters in the source text, they count as 1 column...