forked from finos/rune-dsl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* save * build switch without enum completeness awareness * implement switch with enum or literal condition only * fix validation * add validation test for mismatched switch conditions * validate missing enum values * add validation test for missing enum values with default present * fix test * fix switch generate * update documentation with switch and update operator precendance * update docs with review comments * Rename CaseStatement to SwitchCase * inline default switch case statement * renames SwitchOperation.values to SwitchOperation.cases * Handle switch statement with only default and no cases * fix typo * fix spacing * fix spacing * fix typo * neaten up recursion logic * take switch return type from context * Show missing enum values on validation * Prevent multi cardinality inputs * Only allow basic and enum type switch inputs * Improve invalid switch argument message * Rename switch conditions to guards * Test for handling multi cardinality results * fix formatting * fix whitespace diffs
- Loading branch information
Showing
14 changed files
with
697 additions
and
78 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
43 changes: 19 additions & 24 deletions
43
...-ide/src/test/java/com/regnosys/rosetta/ide/tests/AbstractRosettaLanguageServerTest.xtend
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.