Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
5c7fe46
Support new clause addition
KavinduZoysa Sep 11, 2025
7bd3e6e
Fix adding unnecessary imports for vector store
dulajdilshan Sep 11, 2025
6a5d57b
Merge branch '1.2.x' of https://github.com/ballerina-platform/balleri…
KavinduZoysa Sep 11, 2025
ddf9bbe
Merge remote-tracking branch 'upstream/1.2.x' into vector-store-builder
dulajdilshan Sep 12, 2025
c0b3012
Merge pull request #300 from KavinduZoysa/fix-1246
KavinduZoysa Sep 12, 2025
5275df7
Merge pull request #301 from dulajdilshan/vector-store-builder
dulajdilshan Sep 12, 2025
0cb6bf4
Fix issue with getting http function model
LakshanWeerasinghe Sep 12, 2025
cc00103
Support service class with resource methods
nipunayf Sep 12, 2025
68abc4c
Update the test cases
nipunayf Sep 12, 2025
9ce1557
Merge pull request #306 from LakshanWeerasinghe/fix#1255
NipunaRanasinghe Sep 12, 2025
7068ea1
Merge pull request #307 from nipunayf/support-service-type
nipunayf Sep 12, 2025
2c35d93
Introduce intersection type in reference based types model
KavinduZoysa Sep 16, 2025
7f089f2
Set correct type name for the contant input in data mapper
KavinduZoysa Sep 15, 2025
6f77b37
Merge pull request #313 from KavinduZoysa/fix-1268
KavinduZoysa Sep 16, 2025
2c620ed
Merge pull request #311 from KavinduZoysa/fix-1272
KavinduZoysa Sep 16, 2025
1abdb6e
Fix test failure in datamapper
KavinduZoysa Sep 17, 2025
e3b0aef
Merge pull request #319 from KavinduZoysa/fix-failure
nipunayf Sep 17, 2025
e37328c
[Gradle Release Plugin] - new version commit: 'v1.2.1'.
Sep 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ public Optional<Artifact> transform(ClassDefinitionNode classDefinitionNode) {
Artifact.Builder typeBuilder = new Artifact.Builder(classDefinitionNode)
.name(classDefinitionNode.className().text())
.type(Artifact.Type.TYPE);

classDefinitionNode.members().forEach(member -> {
member.apply(this).ifPresent(typeBuilder::child);
});

return Optional.of(typeBuilder.build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,44 @@
"type": "TYPE",
"name": "LocalClient",
"scope": "Global",
"children": {}
"children": {
"init": {
"id": "init",
"location": {
"fileName": "connection.bal",
"startLine": {
"line": 33,
"offset": 4
},
"endLine": {
"line": 37,
"offset": 5
}
},
"type": "FUNCTION",
"name": "init",
"scope": "Global",
"children": {}
},
"getData": {
"id": "getData",
"location": {
"fileName": "connection.bal",
"startLine": {
"line": 39,
"offset": 4
},
"endLine": {
"line": 43,
"offset": 5
}
},
"type": "REMOTE",
"name": "getData",
"scope": "Global",
"children": {}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"description": "Service class with resource methods test case",
"source": "service_class.bal",
"output": {
"Types": {
"Album": {
"id": "Album",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 2,
"offset": 0
},
"endLine": {
"line": 5,
"offset": 3
}
},
"type": "TYPE",
"name": "Album",
"scope": "Global",
"children": {}
},
"MusicService": {
"id": "MusicService",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 7,
"offset": 0
},
"endLine": {
"line": 47,
"offset": 1
}
},
"type": "TYPE",
"name": "MusicService",
"scope": "Global",
"children": {
"init": {
"id": "init",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 40,
"offset": 4
},
"endLine": {
"line": 42,
"offset": 5
}
},
"type": "FUNCTION",
"name": "init",
"scope": "Global",
"children": {}
},
"getAlbumCount": {
"id": "getAlbumCount",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 44,
"offset": 4
},
"endLine": {
"line": 46,
"offset": 5
}
},
"type": "FUNCTION",
"name": "getAlbumCount",
"scope": "Global",
"children": {}
},
"post#albums": {
"id": "post#albums",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 19,
"offset": 4
},
"endLine": {
"line": 22,
"offset": 5
}
},
"type": "RESOURCE",
"name": "albums",
"accessor": "post",
"scope": "Global",
"children": {}
},
"get#albums": {
"id": "get#albums",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 15,
"offset": 4
},
"endLine": {
"line": 17,
"offset": 5
}
},
"type": "RESOURCE",
"name": "albums",
"accessor": "get",
"scope": "Global",
"children": {}
},
"get#albums/[string title]": {
"id": "get#albums/[string title]",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 24,
"offset": 4
},
"endLine": {
"line": 30,
"offset": 5
}
},
"type": "RESOURCE",
"name": "albums/[string title]",
"accessor": "get",
"scope": "Global",
"children": {}
},
"delete#albums/[string title]": {
"id": "delete#albums/[string title]",
"location": {
"fileName": "service_class.bal",
"startLine": {
"line": 32,
"offset": 4
},
"endLine": {
"line": 38,
"offset": 5
}
},
"type": "RESOURCE",
"name": "albums/[string title]",
"accessor": "delete",
"scope": "Global",
"children": {}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,62 @@
"type": "TYPE",
"name": "TcpEchoService",
"scope": "Global",
"children": {}
"children": {
"onClose": {
"id": "onClose",
"location": {
"fileName": "tcp.bal",
"startLine": {
"line": 37,
"offset": 4
},
"endLine": {
"line": 44,
"offset": 5
}
},
"type": "REMOTE",
"name": "onClose",
"scope": "Global",
"children": {}
},
"onError": {
"id": "onError",
"location": {
"fileName": "tcp.bal",
"startLine": {
"line": 28,
"offset": 4
},
"endLine": {
"line": 35,
"offset": 5
}
},
"type": "REMOTE",
"name": "onError",
"scope": "Global",
"children": {}
},
"onBytes": {
"id": "onBytes",
"location": {
"fileName": "tcp.bal",
"startLine": {
"line": 19,
"offset": 4
},
"endLine": {
"line": 26,
"offset": 5
}
},
"type": "REMOTE",
"name": "onBytes",
"scope": "Global",
"children": {}
}
}
}
},
"Listeners": {
Expand Down
Loading
Loading