-
Notifications
You must be signed in to change notification settings - Fork 753
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 #43135 from nipunayf/fix-42335
Provide code actions to fix invalid transferring of an isolated value into a lock statement
- Loading branch information
Showing
71 changed files
with
2,596 additions
and
15 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
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
30 changes: 30 additions & 0 deletions
30
...gserver-core/src/test/resources/codeaction/add-readonly/config/add_readonly_config25.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,30 @@ | ||
{ | ||
"position": { | ||
"line": 7, | ||
"character": 15 | ||
}, | ||
"source": "add_readonly7.bal", | ||
"description": "Add readonly to a map value", | ||
"expected": [ | ||
{ | ||
"title": "Add readonly to 'map<string>'", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 5, | ||
"character": 33 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"character": 33 | ||
} | ||
}, | ||
"newText": " & readonly" | ||
} | ||
], | ||
"resolvable": false | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...gserver-core/src/test/resources/codeaction/add-readonly/config/add_readonly_config26.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,30 @@ | ||
{ | ||
"position": { | ||
"line": 13, | ||
"character": 15 | ||
}, | ||
"source": "add_readonly7.bal", | ||
"description": "Add readonly to a map value", | ||
"expected": [ | ||
{ | ||
"title": "Add readonly to 'map<string|int>'", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 11, | ||
"character": 37 | ||
}, | ||
"end": { | ||
"line": 11, | ||
"character": 37 | ||
} | ||
}, | ||
"newText": " & readonly" | ||
} | ||
], | ||
"resolvable": false | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...gserver-core/src/test/resources/codeaction/add-readonly/config/add_readonly_config27.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,30 @@ | ||
{ | ||
"position": { | ||
"line": 19, | ||
"character": 15 | ||
}, | ||
"source": "add_readonly7.bal", | ||
"description": "Add readonly to a map value", | ||
"expected": [ | ||
{ | ||
"title": "Add readonly to 'map<map<string>>'", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 17, | ||
"character": 38 | ||
}, | ||
"end": { | ||
"line": 17, | ||
"character": 38 | ||
} | ||
}, | ||
"newText": " & readonly" | ||
} | ||
], | ||
"resolvable": false | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...gserver-core/src/test/resources/codeaction/add-readonly/config/add_readonly_config28.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,30 @@ | ||
{ | ||
"position": { | ||
"line": 25, | ||
"character": 20 | ||
}, | ||
"source": "add_readonly7.bal", | ||
"description": "Add readonly to a map value", | ||
"expected": [ | ||
{ | ||
"title": "Add readonly to 'map<string>'", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 23, | ||
"character": 33 | ||
}, | ||
"end": { | ||
"line": 23, | ||
"character": 33 | ||
} | ||
}, | ||
"newText": " & readonly" | ||
} | ||
], | ||
"resolvable": false | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
...gserver-core/src/test/resources/codeaction/add-readonly/config/add_readonly_config29.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,30 @@ | ||
{ | ||
"position": { | ||
"line": 31, | ||
"character": 30 | ||
}, | ||
"source": "add_readonly7.bal", | ||
"description": "Add readonly to a map value", | ||
"expected": [ | ||
{ | ||
"title": "Add readonly to 'map<string[]>'", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 29, | ||
"character": 35 | ||
}, | ||
"end": { | ||
"line": 29, | ||
"character": 35 | ||
} | ||
}, | ||
"newText": " & readonly" | ||
} | ||
], | ||
"resolvable": false | ||
} | ||
] | ||
} |
Oops, something went wrong.