Skip to content

Commit

Permalink
ref(clif): minor renames in evaluate (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
plastikfan committed Oct 21, 2023
1 parent 16c0918 commit 71a812e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clif/evaluate.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type (
}
)

func (i *tokenInput) yoke(nextIndex int, secondaryCL ThirdPartyCommandLine) int {
func (i *tokenInput) consume(nextIndex int, secondaryCL ThirdPartyCommandLine) int {
const (
unaryIncrement = 1
pairIncrement = 2
Expand Down Expand Up @@ -70,7 +70,7 @@ func (i *tokenInput) concatIf(concatFunc concatIfFunc) *concatenateResult {
}
}

func concatenate(input *tokenInput) *handleTokenResult {
func notInPresent(input *tokenInput) *handleTokenResult {
var (
result = &handleTokenResult{}
)
Expand Down Expand Up @@ -124,7 +124,7 @@ func Evaluate(presentFlags PresentFlagsCollection,
presentFlags: presentFlags,
knownBy: bilateralKnownBy,
}
result = input.concatIf(concatenate)
result = input.concatIf(notInPresent)

return result.commandLine
}
Expand All @@ -141,8 +141,8 @@ func Evaluate(presentFlags PresentFlagsCollection,
presentFlags: presentFlags,
knownBy: bilateralKnownBy,
}
increment := input.yoke(n, secondaryCL)
result = input.concatIf(concatenate)
increment := input.consume(n, secondaryCL)
result = input.concatIf(notInPresent)

t += increment
n += increment
Expand Down

0 comments on commit 71a812e

Please sign in to comment.