-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #649 from nipunayf/increase-type-param-support
Improve support for type parameter recognition
- Loading branch information
Showing
28 changed files
with
868 additions
and
493 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
...nerator/modules/flow-model-generator-ls-extension/src/main/resources/central-index.sqlite
Binary file not shown.
135 changes: 135 additions & 0 deletions
135
...or-ls-extension/src/test/resources/node_template/config/function_call-io-fileReadCsv.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"source": "data_mapper/main.bal", | ||
"position": { | ||
"line": 14, | ||
"offset": 0 | ||
}, | ||
"description": "Sample diagram node", | ||
"codedata": { | ||
"node": "FUNCTION_CALL", | ||
"org": "ballerina", | ||
"module": "io", | ||
"symbol": "fileReadCsv", | ||
"version": "1.6.1" | ||
}, | ||
"output": { | ||
"id": "31", | ||
"metadata": { | ||
"label": "fileReadCsv", | ||
"description": "Read file content as a CSV.\nWhen the expected data type is record[], the first entry of the csv file should contain matching headers.\n```ballerina\nstring[][]|io:Error content = io:fileReadCsv(\"./resources/myfile.csv\");\nrecord{}[]|io:Error content = io:fileReadCsv(\"./resources/myfile.csv\");\n```", | ||
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_io_1.6.1.png" | ||
}, | ||
"codedata": { | ||
"node": "FUNCTION_CALL", | ||
"org": "ballerina", | ||
"module": "io", | ||
"symbol": "fileReadCsv", | ||
"version": "1.6.1", | ||
"id": 341, | ||
"inferredReturnType": "returnType[]" | ||
}, | ||
"returning": false, | ||
"properties": { | ||
"returnType": { | ||
"metadata": { | ||
"label": "returnType", | ||
"description": "The type of the return value (string[] or a Ballerina record)" | ||
}, | ||
"valueType": "TYPE", | ||
"valueTypeConstraint": "string[]|map<anydata>", | ||
"placeholder": "string[]|map<anydata>", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false, | ||
"codedata": { | ||
"kind": "PARAM_FOR_TYPE_INFER", | ||
"originalName": "returnType" | ||
} | ||
}, | ||
"path": { | ||
"metadata": { | ||
"label": "path", | ||
"description": "The CSV file path" | ||
}, | ||
"valueType": "EXPRESSION", | ||
"valueTypeConstraint": "string", | ||
"placeholder": "\"\"", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false, | ||
"codedata": { | ||
"kind": "REQUIRED", | ||
"originalName": "path" | ||
}, | ||
"typeMembers": [ | ||
{ | ||
"type": "string", | ||
"packageInfo": "", | ||
"kind": "BASIC_TYPE", | ||
"selected": false | ||
} | ||
] | ||
}, | ||
"skipHeaders": { | ||
"metadata": { | ||
"label": "skipHeaders", | ||
"description": "Number of headers, which should be skipped prior to reading records" | ||
}, | ||
"valueType": "EXPRESSION", | ||
"valueTypeConstraint": "int", | ||
"placeholder": "0", | ||
"optional": true, | ||
"editable": true, | ||
"advanced": true, | ||
"codedata": { | ||
"kind": "DEFAULTABLE", | ||
"originalName": "skipHeaders" | ||
}, | ||
"typeMembers": [ | ||
{ | ||
"type": "int", | ||
"packageInfo": "", | ||
"kind": "BASIC_TYPE", | ||
"selected": false | ||
} | ||
] | ||
}, | ||
"type": { | ||
"metadata": { | ||
"label": "Variable Type", | ||
"description": "Type of the variable" | ||
}, | ||
"valueType": "TYPE", | ||
"value": "returnType[]", | ||
"placeholder": "var", | ||
"optional": false, | ||
"editable": false, | ||
"advanced": false, | ||
"codedata": {} | ||
}, | ||
"variable": { | ||
"metadata": { | ||
"label": "Variable Name", | ||
"description": "Name of the variable" | ||
}, | ||
"valueType": "IDENTIFIER", | ||
"value": "returnType", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false | ||
}, | ||
"checkError": { | ||
"metadata": { | ||
"label": "Check Error", | ||
"description": "Trigger error flow" | ||
}, | ||
"valueType": "FLAG", | ||
"value": true, | ||
"optional": false, | ||
"editable": true, | ||
"advanced": true | ||
} | ||
}, | ||
"flags": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.