MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / canPop

Method canPop

src/core/objects/object_query.cpp:121–124  ·  view source on GitHub ↗

Returns true if elements can be popped at the current nesting.

Source from the content-addressed store, hash-verified

119
120 /// Returns true if elements can be popped at the current nesting.
121 bool canPop() const noexcept
122 {
123 return !stack.empty() && stack.back().depth == depth;
124 }
125
126 /// Returns true if elements of the given type can be popped at the current nesting.
127 bool canPop(ObjectQuery::Operator op) const noexcept {

Callers 1

parseMethod · 0.80

Calls 3

backMethod · 0.80
getOperatorMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected