-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn/Report an error about duplicated CDDL keys/values
Code now detects when a CDDL block contains anonymous types that would create duplicates. It dies when a key or a value is defined twice for the same CDDL type, preventing any reference to the term. It warns when the duplicate is for definitions that are not of the same type. For example, an error is returned for: ``` err = [ "dupl", "dupl" ] ``` ... while the following only returns an error because it remains possible to reference individual terms by making the link type explicit: ``` warn = [ ( dupl: "val" ), "dupl" ] ```
- Loading branch information
Showing
11 changed files
with
1,747 additions
and
128 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
Oops, something went wrong.