Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(clif): minor renames in evaluate (#211) #214

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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