-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ballerina-platform/ballerin…
…a-dev-tools into config-var-bug
- Loading branch information
Showing
14 changed files
with
539 additions
and
55 deletions.
There are no files selected for viewing
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
96 changes: 96 additions & 0 deletions
96
...model-generator-ls-extension/src/test/resources/data_mapper_source/config/variable15.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,96 @@ | ||
{ | ||
"source": "variable14.bal", | ||
"description": "Sample diagram node", | ||
"diagram": { | ||
"id": "31", | ||
"metadata": { | ||
"label": "Variable", | ||
"description": "New variable with type" | ||
}, | ||
"codedata": { | ||
"node": "VARIABLE", | ||
"lineRange": { | ||
"startLine": { | ||
"line": 16, | ||
"offset": 36 | ||
}, | ||
"endLine": { | ||
"line": 16, | ||
"offset": 36 | ||
} | ||
} | ||
}, | ||
"returning": false, | ||
"properties": { | ||
"variable": { | ||
"metadata": { | ||
"label": "Name", | ||
"description": "Name of the variable" | ||
}, | ||
"valueType": "IDENTIFIER", | ||
"value": "var1", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false | ||
}, | ||
"type": { | ||
"metadata": { | ||
"label": "Type", | ||
"description": "Type of the variable" | ||
}, | ||
"valueType": "TYPE", | ||
"value": "Students", | ||
"placeholder": "var", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false | ||
}, | ||
"expression": { | ||
"metadata": { | ||
"label": "Expression", | ||
"description": "Initialize with value" | ||
}, | ||
"valueType": "EXPRESSION", | ||
"value": "{names:[\"1\",\"2\", \"4\"]}", | ||
"optional": true, | ||
"editable": true, | ||
"advanced": false | ||
} | ||
}, | ||
"flags": 0 | ||
}, | ||
"propertyKey": "expression", | ||
"position": { | ||
"line": 17, | ||
"offset": 30 | ||
}, | ||
"mappings": [ | ||
{ | ||
"output": "var1.names", | ||
"inputs": [], | ||
"expression": "[\"1\", \"2\"]", | ||
"diagnostics": [], | ||
"elements": [ | ||
{ | ||
"mappings": [ | ||
{ | ||
"output": "var1.names.0", | ||
"inputs": [], | ||
"expression": "\"1\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
}, | ||
{ | ||
"output": "var1.names.1", | ||
"inputs": [], | ||
"expression": "\"2\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"output": "{names:[\"1\",\"2\"]}" | ||
} |
160 changes: 160 additions & 0 deletions
160
...model-generator-ls-extension/src/test/resources/data_mapper_source/config/variable16.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,160 @@ | ||
{ | ||
"source": "variable15.bal", | ||
"description": "Sample diagram node", | ||
"diagram": { | ||
"id": "31", | ||
"metadata": { | ||
"label": "Variable", | ||
"description": "New variable with type" | ||
}, | ||
"codedata": { | ||
"node": "VARIABLE", | ||
"lineRange": { | ||
"startLine": { | ||
"line": 16, | ||
"offset": 36 | ||
}, | ||
"endLine": { | ||
"line": 16, | ||
"offset": 36 | ||
} | ||
} | ||
}, | ||
"returning": false, | ||
"properties": { | ||
"variable": { | ||
"metadata": { | ||
"label": "Name", | ||
"description": "Name of the variable" | ||
}, | ||
"valueType": "IDENTIFIER", | ||
"value": "var1", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false | ||
}, | ||
"type": { | ||
"metadata": { | ||
"label": "Type", | ||
"description": "Type of the variable" | ||
}, | ||
"valueType": "TYPE", | ||
"value": "Students", | ||
"placeholder": "var", | ||
"optional": false, | ||
"editable": true, | ||
"advanced": false | ||
}, | ||
"expression": { | ||
"metadata": { | ||
"label": "Expression", | ||
"description": "Initialize with value" | ||
}, | ||
"valueType": "EXPRESSION", | ||
"value": "{names:[[\"1\", \"6\"],[\"10\", \"60\"],[\"10\", \"60\", \"70\"]]}", | ||
"optional": true, | ||
"editable": true, | ||
"advanced": false | ||
} | ||
}, | ||
"flags": 0 | ||
}, | ||
"propertyKey": "expression", | ||
"position": { | ||
"line": 17, | ||
"offset": 30 | ||
}, | ||
"mappings": [ | ||
{ | ||
"output": "var1.names", | ||
"inputs": [], | ||
"expression": "[[\"1\", \"6\"], [\"10\", \"60\"], [\"10\", \"61\"]]", | ||
"diagnostics": [], | ||
"elements": [ | ||
{ | ||
"mappings": [ | ||
{ | ||
"output": "var1.names.0", | ||
"inputs": [], | ||
"expression": "[\"1\", \"6\"]", | ||
"diagnostics": [], | ||
"elements": [ | ||
{ | ||
"mappings": [ | ||
{ | ||
"output": "var1.names.0.0", | ||
"inputs": [], | ||
"expression": "\"1\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
}, | ||
{ | ||
"output": "var1.names.0.1", | ||
"inputs": [], | ||
"expression": "\"6\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"output": "var1.names.1", | ||
"inputs": [], | ||
"expression": "[\"10\", \"60\"]", | ||
"diagnostics": [], | ||
"elements": [ | ||
{ | ||
"mappings": [ | ||
{ | ||
"output": "var1.names.1.0", | ||
"inputs": [], | ||
"expression": "\"10\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
}, | ||
{ | ||
"output": "var1.names.1.1", | ||
"inputs": [], | ||
"expression": "\"60\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"output": "var1.names.2", | ||
"inputs": [], | ||
"expression": "[\"10\", \"61\"]", | ||
"diagnostics": [], | ||
"elements": [ | ||
{ | ||
"mappings": [ | ||
{ | ||
"output": "var1.names.2.0", | ||
"inputs": [], | ||
"expression": "\"10\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
}, | ||
{ | ||
"output": "var1.names.2.1", | ||
"inputs": [], | ||
"expression": "\"61\"", | ||
"diagnostics": [], | ||
"elements": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"output": "{names:[[\"1\", \"6\"],[\"10\", \"60\"],[\"10\", \"61\"]]}" | ||
} |
Oops, something went wrong.