Skip to content

Commit

Permalink
adding fields to CodeModelNode
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Jan 26, 2025
1 parent d82d71a commit 6a048bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lwcore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tasks.withType<Test>().all {
}

dependencies {
implementation(project(":core"))
api(libs.lionwebjava)
api(libs.lionwebkotlincore)
// api(libs.lionwebkotlincore) {
Expand Down
7 changes: 6 additions & 1 deletion lwcore/src/main/kotlin/CodeModelNode.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import com.strumenta.kolasu.model.Origin
import com.strumenta.kolasu.model.Position
import io.lionweb.lioncore.java.language.INamed
import io.lionweb.lioncore.java.model.Node
import io.lionweb.lioncore.java.model.impl.DynamicNode
import io.lionweb.lioncore.kotlin.BaseNode

abstract class CodeModelNode : BaseNode()
abstract class CodeModelNode : BaseNode() {
var origin: Origin? = null
var position: Position? = null
}

interface NamedNode : Node, INamed

Expand Down

0 comments on commit 6a048bf

Please sign in to comment.