Skip to content
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

Allow creating specific tree types #1925

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

milesziemer
Copy link
Contributor

Adds method to TokenTree that allows creating a tree with a specific TreeType. Previously, there was no way to do this since the parse methods on TreeType are package private. This addition supports use cases where new trees need to be added to a root tree.

A test was added for this method, and other tests were updated to use it.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@milesziemer milesziemer requested a review from a team as a code owner August 15, 2023 15:46
Adds method to TokenTree that allows creating a tree with a specific
TreeType. Previously, there was no way to do this since the parse
methods on TreeType are package private. This addition supports
use cases where new trees need to be added to a root tree.

A test was added for this method, and other tests were updated to
use it.
@milesziemer milesziemer merged commit 474da00 into smithy-lang:main Aug 15, 2023
10 checks passed
alextwoods pushed a commit to alextwoods/smithy that referenced this pull request Sep 15, 2023
Adds method to TokenTree that allows creating a tree with a specific
TreeType. Previously, there was no way to do this since the parse
methods on TreeType are package private. This addition supports
use cases where new trees need to be added to a root tree.

A test was added for this method, and other tests were updated to
use it.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants