Skip to content

Commit 3c69a59

Browse files
committed
fea(domain): add origin node
1 parent 726fe4c commit 3c69a59

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoAnalyserTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ func installController(g *gin.Engine) *gin.Engine {
110110
assertEquals(thirdCall.FunctionName, "Group")
111111
assertEquals(thirdCall.NodeName, "*gin.Engine")
112112
assertEquals(thirdCall.Parameters[0].TypeValue, "/users")
113+
114+
println(Json.encodeToString(value))
113115
}
114116

115117
@Test

chapi-domain/src/main/kotlin/chapi/domain/core/CodeCall.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ open class CodeCall(
2929
var NodeName: String = "",
3030
var FunctionName: String = "",
3131
var Parameters: Array<CodeProperty> = arrayOf(),
32-
var Position: CodePosition = CodePosition()
32+
var Position: CodePosition = CodePosition(),
33+
// like "v1.Group", the v1 will be the Receiver
34+
// since 2.0.0-Beta.9
35+
var OriginNodeName: String = "",
3336
) {
3437

3538
open fun buildClassFullName(): String {

0 commit comments

Comments
 (0)