-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2695 implement output type tree in getdatalayout lsp request #2697
Open
efr15
wants to merge
20
commits into
2699-new-command-insert-variable-display
Choose a base branch
from
2695-implement-output-type-tree-in-getdatalayout-lsp-request
base: 2699-new-command-insert-variable-display
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
92c06ce
WI #2695 Implement output type TREE in GetDataLayout LSP request
5c53c02
WI #2695 Remove actual test writing
eac4e72
WI #2695 Make CSV the default output type (for backward compatibility)
1ccc78c
WI #2695 Remove useless using
8fae92a
WI #2695 Move JSON settings
8dc1010
WI #2695 Code review
422c531
WI #2695 Code review (2)
d855b6c
WI #2695 Set index to UNDEFINED for Program and DataSections
1c205f9
WI #2695 Remove IsGroup property (too ambiguous)
9c70805
WI #2695 Improve comments
4bb378d
WI #2695 Code review (3)
030f7a2
Merge branch '2699-new-command-insert-variable-display' into 2695-imp…
489ccba
WI #2695 Use IsNationalOrNationalEdited from SODISPLAY refactoring
2a76505
WI #2695 Manage index for sections
b2eede2
WI #2695 Implement check for max OCCURS
234cff2
WI #2695 Add missing pictures
cc1936e
WI #2695 Implement check for FILLER with no named ascendant
1c1a9a6
Merge branch '2699-new-command-insert-variable-display' into 2695-imp…
e314ea4
WI #2695 Adapt usage of IsNationalOrNationalEdited
e16d614
WI #2695 Remove not needed using
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
File renamed without changes.
59 changes: 59 additions & 0 deletions
59
...LanguageServer.Test/LSRTests/GetDataLayoutRequestTREE/input/GetDataLayoutRequestTREE.tlsp
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...rver.Test/LSRTests/GetDataLayoutRequestTREE/output_expected/GetDataLayoutRequestTREE.rlsp
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,6 @@ | ||
{ | ||
"success": true, | ||
"diff_index": [ | ||
-1 | ||
] | ||
} |
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
7 changes: 7 additions & 0 deletions
7
TypeCobol.LanguageServer.Test/ProcessorTests/DataLayout/INCLUDED.cpy
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,7 @@ | ||
02 root-included. | ||
05 grp-included. | ||
10 var-included-1 PIC X. | ||
10 FILLER PIC X. | ||
10 var-included-occ PIC X OCCURS 3. | ||
05 grp-included-redef REDEFINES grp-included. | ||
10 var-included-2 PIC X(5). |
120 changes: 120 additions & 0 deletions
120
TypeCobol.LanguageServer.Test/ProcessorTests/DataLayout/Tree-Copy.txt
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,120 @@ | ||
{"line":1,"character":12} | ||
--------------------------------------------------------------------------------- | ||
{ | ||
"logicalLevel": 0, | ||
"line": 0, | ||
"physicalLevel": 0, | ||
"name": "copy", | ||
"occursDimension": 0, | ||
"start": 0, | ||
"length": 0, | ||
"index": -1, | ||
"flags": 0, | ||
"children": [ | ||
{ | ||
"logicalLevel": 1, | ||
"line": 0, | ||
"physicalLevel": 0, | ||
"name": "working-storage", | ||
"occursDimension": 0, | ||
"start": 0, | ||
"length": 0, | ||
"index": -1, | ||
"flags": 0, | ||
"children": [ | ||
{ | ||
"logicalLevel": 2, | ||
"line": 1, | ||
"physicalLevel": 1, | ||
"name": "TCOQLF", | ||
"declaration": "GROUP", | ||
"occursDimension": 0, | ||
"start": 1, | ||
"length": 6, | ||
"index": 0, | ||
"flags": 2, | ||
"children": [ | ||
{ | ||
"logicalLevel": 3, | ||
"line": 2, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var1", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 1, | ||
"length": 1, | ||
"index": 0, | ||
"flags": 2, | ||
"children": [] | ||
}, | ||
{ | ||
"logicalLevel": 3, | ||
"line": 3, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var2", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 2, | ||
"length": 1, | ||
"index": 1, | ||
"flags": 2, | ||
"children": [] | ||
}, | ||
{ | ||
"logicalLevel": 3, | ||
"line": 4, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var3", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 3, | ||
"length": 1, | ||
"index": 2, | ||
"flags": 2, | ||
"children": [] | ||
}, | ||
{ | ||
"logicalLevel": 3, | ||
"line": 5, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var4", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 4, | ||
"length": 1, | ||
"index": 3, | ||
"flags": 2, | ||
"children": [] | ||
}, | ||
{ | ||
"logicalLevel": 3, | ||
"line": 6, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var5", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 5, | ||
"length": 1, | ||
"index": 4, | ||
"flags": 2, | ||
"children": [] | ||
}, | ||
{ | ||
"logicalLevel": 3, | ||
"line": 7, | ||
"physicalLevel": 5, | ||
"name": "TCOQLF-Var6", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 6, | ||
"length": 1, | ||
"index": 5, | ||
"flags": 2, | ||
"children": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
TypeCobol.LanguageServer.Test/ProcessorTests/DataLayout/Tree-MainPgm.txt
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,55 @@ | ||
{"line":10,"character":12} | ||
--------------------------------------------------------------------------------- | ||
{ | ||
"logicalLevel": 0, | ||
"line": 0, | ||
"physicalLevel": 0, | ||
"name": "MAINPGM", | ||
"occursDimension": 0, | ||
"start": 0, | ||
"length": 0, | ||
"index": -1, | ||
"flags": 0, | ||
"children": [ | ||
{ | ||
"logicalLevel": 1, | ||
"line": 0, | ||
"physicalLevel": 0, | ||
"name": "working-storage", | ||
"occursDimension": 0, | ||
"start": 0, | ||
"length": 0, | ||
"index": -1, | ||
"flags": 0, | ||
"children": [ | ||
{ | ||
"logicalLevel": 2, | ||
"line": 6, | ||
"physicalLevel": 1, | ||
"name": "main-group", | ||
"declaration": "GROUP", | ||
"occursDimension": 0, | ||
"start": 1, | ||
"length": 1, | ||
"index": 0, | ||
"flags": 2, | ||
"children": [ | ||
{ | ||
"logicalLevel": 3, | ||
"line": 7, | ||
"physicalLevel": 5, | ||
"name": "main-var", | ||
"declaration": "PIC X", | ||
"occursDimension": 0, | ||
"start": 1, | ||
"length": 1, | ||
"index": 0, | ||
"flags": 2, | ||
"children": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JSON produced are huge. Maybe we should contract node data into a single value or an array ?
Much less readable I agree but also much shorter !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, to be done at the end