From 6af5af2315e0d19cbabb345a8525450f6693b001 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sat, 10 Aug 2024 14:09:35 +0200 Subject: [PATCH] Graphviz: display the `b1` type as "b1{be,le}->bool" Previously, "BitsType1({Big,Little}BitEndian)" was shown, which reflects the internal compiler representation and was never really meant to be displayed. --- .../src/main/scala/io/kaitai/struct/GraphvizClassCompiler.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/src/main/scala/io/kaitai/struct/GraphvizClassCompiler.scala b/shared/src/main/scala/io/kaitai/struct/GraphvizClassCompiler.scala index b43ba4a5a..2d768d9e1 100644 --- a/shared/src/main/scala/io/kaitai/struct/GraphvizClassCompiler.scala +++ b/shared/src/main/scala/io/kaitai/struct/GraphvizClassCompiler.scala @@ -459,6 +459,7 @@ object GraphvizClassCompiler extends LanguageCompilerStatic { case EnumType(name, basedOn) => s"${dataTypeName(basedOn)}→${type2display(name)}" case BitsType(width, bitEndian) => s"b$width${bitEndian.toSuffix}" + case BitsType1(bitEndian) => s"b1${bitEndian.toSuffix}→bool" case _ => dataType.toString } }