-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssr: improve matching for PatternMap iterator
Summary: For SSR matching within a map, we use a `PatternMap` structure, which maps first the name of the map in order, then the fields, allowing them to be in any order. The matching algorithm partitions the field matches into those the have keys that are placeholders, which can match any key in the target map, and those that are not which have a precise match. It first matches the non-placeholders, then arbitrarily assigns the placeholder matches to the remaining fields in the target. Unfortunately this last step had been left out, this diff adds it in. Reviewed By: TD5 Differential Revision: D69058907 fbshipit-source-id: 377c2fd907547b5d7a522cecbe0ed22ce2423753
- Loading branch information
1 parent
0e7598e
commit d73b355
Showing
2 changed files
with
39 additions
and
5 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