MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / isMathFunc

Function isMathFunc

dql/math.go:148–157  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

146}
147
148func isMathFunc(f string) bool {
149 // While adding an op, also add it to the corresponding function type.
150 return f == "*" || f == "%" || f == "+" || f == "-" || f == "/" ||
151 f == "exp" || f == "ln" || f == "cond" ||
152 f == "<" || f == ">" || f == ">=" || f == "<=" ||
153 f == "==" || f == "!=" ||
154 f == "min" || f == "max" || f == "sqrt" ||
155 f == "pow" || f == "logbase" || f == "floor" || f == "ceil" ||
156 f == "since" || f == "dot"
157}
158
159func parseMathFunc(gq *GraphQuery, it *lex.ItemIterator, again bool) (*MathTree, bool, error) {
160 if !again {

Callers 1

parseMathFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected