-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds namespace fix for nested sequence and adds support for nested ty…
…pes in Sequence and Scalar ADT (#163) * Modified generator to fix bug for nested sequence namespace * Modified `fully_qualified_type_ref` method to return `FullyQualifiedTypeReference` Previously this returned `Option<FullyQualifiedTypeReference>` * Modified templates for nested types in sequence * Adds tests for nested enums * Adds changes for using enum in namespace * Adds `NamespaceNode` for `FullyQualifiedName`
- Loading branch information
Showing
18 changed files
with
287 additions
and
133 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
1 change: 1 addition & 0 deletions
1
code-gen-projects/input/bad/sequence_with_enum_element/invalid_value.ion
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 @@ | ||
[foobar] // expected values are either foo , bar or baz, found foobar. |
1 change: 1 addition & 0 deletions
1
code-gen-projects/input/good/sequence_with_enum_element/valid_value.ion
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 @@ | ||
[foo, bar, baz] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type::{ | ||
name: sequence_with_enum_element, | ||
type: list, | ||
element: { valid_values: [foo, bar, baz] } | ||
} |
Oops, something went wrong.