()
| 846 | } |
| 847 | |
| 848 | func (p *pattern) fix() error { |
| 849 | err := p.fixIdentities(nil) |
| 850 | if err != nil { |
| 851 | return err |
| 852 | } |
| 853 | p.fixRepeatingArguments() |
| 854 | return nil |
| 855 | } |
| 856 | |
| 857 | func (p *pattern) fixIdentities(uniq patternList) error { |
| 858 | // Make pattern-tree tips point to same object if they are equal. |