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

Extract syntax builder generation templates into separate directory #456

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Jun 4, 2022

This branch aims to introduce a consistent directory layout for the SourceFile templates from the new SwiftSyntaxBuilderGeneration module by moving the Tokens.swift template into a subdirectory named Templates:

SwiftSyntaxBuilderGeneration
├─ Templates
│  ├─ TokensFile.swift
│  └─ ... (future templates)
└─ main.swift

Additionally, I have reformatted the file with slightly more readable indentation.

cc @ahoppen @kimdv

@fwcd fwcd requested a review from ahoppen as a code owner June 4, 2022 18:00
@kimdv
Copy link
Contributor

kimdv commented Jun 4, 2022

@swift-ci please test

@kimdv
Copy link
Contributor

kimdv commented Jun 4, 2022

Hi @fwcd and welcome! 👋

Could you squash the commits into a single commit and then push?

@fwcd
Copy link
Member Author

fwcd commented Jun 5, 2022

Sure, is everything fine as is? My thinking was to leave them separated until the PR is fully reviewed and mergeable.

@ahoppen
Copy link
Member

ahoppen commented Jun 7, 2022

@swift-ci Please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM 👍

- Extract Tokens SourceFile into separate file
- Move syntax builder templates into subfolder
- Reformat TokensFile for readability
- Rename to SyntaxUtilities
@fwcd fwcd force-pushed the extract-sourcefiles branch from e697316 to 7817251 Compare June 7, 2022 13:23
@ahoppen
Copy link
Member

ahoppen commented Jun 7, 2022

@swift-ci Please test

@fwcd
Copy link
Member Author

fwcd commented Jun 7, 2022

Could we merge this?

@kimdv
Copy link
Contributor

kimdv commented Jun 7, 2022

Yea if it's green and approved.
Do you have permission?

@fwcd
Copy link
Member Author

fwcd commented Jun 7, 2022

I don't have commit access, but I have chatted with @ahoppen earlier, this should be ready to go.

@kimdv kimdv merged commit 3e71568 into swiftlang:main Jun 7, 2022
@kimdv
Copy link
Contributor

kimdv commented Jun 7, 2022

🎉🎉

@fwcd fwcd deleted the extract-sourcefiles branch June 7, 2022 21:50
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.

3 participants