-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mku/concat_op' into 'master'
Adding ConcatOp, ConcatOperand and ConcatOperandList configs Closes #1367 See merge request eng/libadalang/libadalang!1622
- Loading branch information
Showing
13 changed files
with
2,178 additions
and
0 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
113 changes: 113 additions & 0 deletions
113
testsuite/tests/unparsing/concat_op/long/doc-baseline.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,113 @@ | ||
{ | ||
"id": 14, | ||
"kind": "command", | ||
"command": { | ||
"command": "group", | ||
"id": 0, | ||
"groupContents": { | ||
"id": 13, | ||
"kind": "list", | ||
"list": [ | ||
{ | ||
"id": 0, | ||
"kind": "text", | ||
"text": "\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"" | ||
}, | ||
{ | ||
"id": 1, | ||
"kind": "command", | ||
"command": { | ||
"command": "line", | ||
"literal": false, | ||
"soft": false, | ||
"hard": false | ||
} | ||
}, | ||
{ | ||
"id": 6, | ||
"kind": "command", | ||
"command": { | ||
"command": "group", | ||
"id": 0, | ||
"groupContents": { | ||
"id": 5, | ||
"kind": "list", | ||
"list": [ | ||
{ | ||
"id": 2, | ||
"kind": "text", | ||
"text": "&" | ||
}, | ||
{ | ||
"id": 3, | ||
"kind": "command", | ||
"command": { | ||
"command": "line", | ||
"literal": false, | ||
"soft": false, | ||
"hard": false | ||
} | ||
}, | ||
{ | ||
"id": 4, | ||
"kind": "text", | ||
"text": "\"BBBBBBBBBBBBBBBBBBBBBBBB\"" | ||
} | ||
] | ||
}, | ||
"break": false, | ||
"expandedStates": null | ||
} | ||
}, | ||
{ | ||
"id": 7, | ||
"kind": "command", | ||
"command": { | ||
"command": "line", | ||
"literal": false, | ||
"soft": false, | ||
"hard": false | ||
} | ||
}, | ||
{ | ||
"id": 12, | ||
"kind": "command", | ||
"command": { | ||
"command": "group", | ||
"id": 0, | ||
"groupContents": { | ||
"id": 11, | ||
"kind": "list", | ||
"list": [ | ||
{ | ||
"id": 8, | ||
"kind": "text", | ||
"text": "&" | ||
}, | ||
{ | ||
"id": 9, | ||
"kind": "command", | ||
"command": { | ||
"command": "line", | ||
"literal": false, | ||
"soft": false, | ||
"hard": false | ||
} | ||
}, | ||
{ | ||
"id": 10, | ||
"kind": "text", | ||
"text": "\"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\"" | ||
} | ||
] | ||
}, | ||
"break": false, | ||
"expandedStates": null | ||
} | ||
} | ||
] | ||
}, | ||
"break": false, | ||
"expandedStates": null | ||
} | ||
} |
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 @@ | ||
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & "BBBBBBBBBBBBBBBBBBBBBBBB" & "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" |
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,3 @@ | ||
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" | ||
& "BBBBBBBBBBBBBBBBBBBBBBBB" | ||
& "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" |
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 @@ | ||
description: | | ||
This test checks the formatting of a concat operation. | ||
It is expected the expression breaks before each `&` | ||
operator. | ||
driver: unparser | ||
rule: simple_expr |
Oops, something went wrong.