Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -101,6 +101,8 @@ public Optional<Artifact> transform(FunctionDefinitionNode functionDefinitionNod
.name(functionName)
.type(Artifact.Type.DATA_MAPPER);
}
} else if (functionDefinitionNode.functionBody().kind() == SyntaxKind.EXTERNAL_FUNCTION_BODY) {
return Optional.empty();
} else if (functionDefinitionNode.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION) {
functionBuilder
.accessor(functionName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 13,
"line": 14,
"offset": 0
},
"endLine": {
"line": 15,
"line": 16,
"offset": 1
}
},
Expand All @@ -27,11 +27,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 25,
"line": 26,
"offset": 0
},
"endLine": {
"line": 27,
"line": 28,
"offset": 1
}
},
Expand All @@ -45,11 +45,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 39,
"line": 40,
"offset": 0
},
"endLine": {
"line": 44,
"line": 45,
"offset": 1
}
},
Expand All @@ -63,11 +63,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 18,
"line": 19,
"offset": 0
},
"endLine": {
"line": 22,
"line": 23,
"offset": 1
}
},
Expand All @@ -81,11 +81,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 47,
"line": 48,
"offset": 0
},
"endLine": {
"line": 49,
"line": 50,
"offset": 1
}
},
Expand All @@ -99,11 +99,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 8,
"line": 9,
"offset": 0
},
"endLine": {
"line": 10,
"line": 11,
"offset": 1
}
},
Expand All @@ -117,11 +117,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 3,
"line": 4,
"offset": 0
},
"endLine": {
"line": 5,
"line": 6,
"offset": 1
}
},
Expand All @@ -135,11 +135,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 30,
"line": 31,
"offset": 0
},
"endLine": {
"line": 36,
"line": 37,
"offset": 1
}
},
Expand All @@ -155,11 +155,11 @@
"location": {
"fileName": "functions.bal",
"startLine": {
"line": 52,
"line": 53,
"offset": 0
},
"endLine": {
"line": 71,
"line": 72,
"offset": 1
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ballerina/io;
import ballerina/jballerina.java;

// Basic function with no parameters and no return value
public function sayHello() {
Expand Down Expand Up @@ -70,3 +71,9 @@ public function main() {
io:println("Error: " + divResult.message());
}
}

function execCommand(handle runtime, handle command) returns handle|error = @java:Method {
'class: "java.lang.Runtime",
name: "exec",
paramTypes: ["java.lang.String"]
} external;
Loading