MCPcopy Create free account
hub / github.com/antchfx/xpath / canBeNumber

Function canBeNumber

build.go:166–171  ·  view source on GitHub ↗
(q query)

Source from the content-addressed store, hash-verified

164}
165
166func canBeNumber(q query) bool {
167 if q.ValueType() != xpathResultType.Any {
168 return q.ValueType() == xpathResultType.Number
169 }
170 return true
171}
172
173// processFilterNode builds query for the XPath filter predicate.
174func (b *builder) processFilter(root *filterNode, flags flag, props *builderProp) (query, error) {

Callers 1

processFilterMethod · 0.85

Calls 1

ValueTypeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…