-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Rename _MatchingEngine module to _RegexParser #42081
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
Conversation
|
fe20e06
to
06bf6c3
Compare
9d9a1ab
to
4e543e2
Compare
add_swift_compiler_module(ExperimentalRegex | ||
"${LIBSWIFT_EXPERIMENTAL_REGEX_SOURCES}" | ||
Regex.swift) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you accidentally deleted this and the Regex.swift
source
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Forgot to git add.
I assume |
It's not supposed to be importable. We plan to strip out the the module files when installing _RegexParser. I'll look into that next, let me get back to you on this before merging. |
4e543e2
to
93d42d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Richard and I talked about this and I am now convinced that this won't be a much problem.
This change was introduced in swiftlang/swift#42081.
As the _MatchingEngine module no longer contains the matching engine, this patch renames this module to describe its role more accurately. Because this module primarily contains the AST and the regex parsing logic, I propose we rename it to "_RegexParser".
Also renames the ExperimentalRegex module in SwiftCompilerSources to _RegexParser for consistency. This would prevent errors if sources in _RegexParser used qualified lookup with the module name.