Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix(server): add Macro to NodeKind

Joseph Mikhail89160a4f9e72
diff --git a/memory-layer/src/main/scala/ix/memory/model/Node.scala b/memory-layer/src/main/scala/ix/memory/model/Node.scala
index 38ca41bc..ed35833f 100644
--- a/memory-layer/src/main/scala/ix/memory/model/Node.scala
+++ b/memory-layer/src/main/scala/ix/memory/model/Node.scala
@@ -29,6 +29,7 @@ object NodeKind {
case object Goal extends NodeKind
case object Region extends NodeKind
case object Chunk extends NodeKind
+ case object Macro extends NodeKind
private val nameMap: Map[String, NodeKind] = Map(
"module" -> Module,
@@ -52,7 +53,8 @@ object NodeKind {
"bug" -> Bug,
"goal" -> Goal,
"region" -> Region,
- "chunk" -> Chunk
+ "chunk" -> Chunk,
+ "macro" -> Macro
)
implicit val encoder: Encoder[NodeKind] = Encoder[String].contramap {
@@ -78,6 +80,7 @@ object NodeKind {
case Goal => "goal"
case Region => "region"
case Chunk => "chunk"
+ case Macro => "macro"
}
implicit val decoder: Decoder[NodeKind] = Decoder[String].emap { s =>