Skip to content

Cleanups and refactorings #142

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

Merged
merged 1 commit into from
Feb 12, 2022
Merged

Conversation

milseman
Copy link
Member

@milseman milseman commented Feb 2, 2022

  • Split off matching code/logic/types from DSL/Core.swift
  • Make a Util/Errors.swift for our Unsupported and Unreachable errors, and use them more broadly
  • Split off AST conversion logic from DSLTree.swift

@milseman milseman requested a review from rxwei February 2, 2022 20:14
@milseman
Copy link
Member Author

milseman commented Feb 2, 2022

@rxwei I don't want to cause conflicts for your PRs, so this can wait until later to merge.

@milseman
Copy link
Member Author

milseman commented Feb 3, 2022

@swift-ci please test linux platform

Comment on lines 250 to 255
public protocol MatchProtocol {
associatedtype Capture
}
extension Substring: MatchProtocol {
public typealias Capture = EmptyCapture
}
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, #127 removes MatchProtocol, so you can probably leave it here so that there's one fewer conflict.

@milseman
Copy link
Member Author

milseman commented Feb 3, 2022

@swift-ci please test linux platform

@rxwei
Copy link
Contributor

rxwei commented Feb 4, 2022

Feel free to merge this as there's no ETA when a new toolchain will come out to unblock my PRs.

@milseman
Copy link
Member Author

@swift-ci please test linux platform

@milseman milseman merged commit a5df6f0 into swiftlang:main Feb 12, 2022
@milseman milseman deleted the code_grooming branch February 12, 2022 04:21
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