MCPcopy
hub / github.com/qax-os/excelize / isOperand

Function isOperand

calc.go:1454–1456  ·  view source on GitHub ↗

isOperand determine if the token is parse operand.

(token efp.Token)

Source from the content-addressed store, hash-verified

1452
1453// isOperand determine if the token is parse operand.
1454func isOperand(token efp.Token) bool {
1455 return token.TType == efp.TokenTypeOperand && (token.TSubType == efp.TokenSubTypeNumber || token.TSubType == efp.TokenSubTypeText || token.TSubType == efp.TokenSubTypeLogical)
1456}
1457
1458// tokenToFormulaArg create a formula argument by given token.
1459func tokenToFormulaArg(token efp.Token) formulaArg {

Callers 2

evalInfixExpMethod · 0.85
parseTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected