-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move unique label into unordered folder
- Loading branch information
Showing
5 changed files
with
35 additions
and
40 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1 +1,15 @@ | ||
pub mod assignment_problem; | ||
mod assignment_problem; | ||
mod unique_label; | ||
|
||
pub fn calculate_matchings<'a>( | ||
left: &'a model::CSTNode, | ||
right: &'a model::CSTNode, | ||
matching_handlers: &'a matching_handlers::MatchingHandlers<'a>, | ||
) -> crate::Matchings<'a> { | ||
match (left, right) { | ||
(model::CSTNode::NonTerminal(_), model::CSTNode::NonTerminal(_)) => { | ||
assignment_problem::calculate_matchings(left, right, matching_handlers) | ||
} | ||
_ => unreachable!("Unordered matching is only supported for non-terminals."), | ||
} | ||
} |
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