MCPcopy Create free account
hub / github.com/PDAL/PDAL / where

Method where

filters/private/expr/AssignParser.cpp:52–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool AssignParser::where(AssignStatement& expr)
53{
54 if (match(TokenType::Eof))
55 return true;
56
57 if (match(TokenType::Identifier))
58 {
59 std::string ident = Utils::toupper(curToken().sval());
60 if (ident == "WHERE")
61 {
62 ConditionalParser parser(lexer());
63 bool status = parser.expression(expr.conditionalExpr());
64 if (!status)
65 setError(parser.error());
66 return status;
67 }
68 }
69
70 setError("Expected keyword 'WHERE' to precede condition assignment. Found '" +
71 peekToken().sval() + "' instead.");
72 return false;
73}
74
75} // namespace expr
76} // namespace pdal

Callers

nothing calls this directly

Calls 4

toupperFunction · 0.85
svalMethod · 0.80
expressionMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected