MCPcopy Create free account
hub / github.com/docopt/docopt.go / fix

Method fix

docopt.go:848–855  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

846}
847
848func (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
857func (p *pattern) fixIdentities(uniq patternList) error {
858 // Make pattern-tree tips point to same object if they are equal.

Callers 3

parseFunction · 0.80
TestListArgumentMatchFunction · 0.80

Calls 2

fixIdentitiesMethod · 0.95
fixRepeatingArgumentsMethod · 0.95

Tested by 2

TestListArgumentMatchFunction · 0.64