MCPcopy Create free account
hub / github.com/YACReader/yacreader / baseToken

Method baseToken

YACReaderLibrary/db/query_parser.cpp:327–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327QueryParser::TreeNode QueryParser::baseToken()
328{
329 if (tokenType() == Token::Type::quotedWord) {
330 return TreeNode("expression", { TreeNode("all", { }), TreeNode(token(true), { }) });
331 }
332
333 if (tokenType() == Token::Type::word) {
334 return TreeNode("expression", { TreeNode("all", { }), TreeNode(token(true), { }) });
335 }
336
337 return TreeNode("expression", { TreeNode("all", { }), TreeNode(token(true), { }) });
338}

Callers

nothing calls this directly

Calls 1

TreeNodeClass · 0.85

Tested by

no test coverage detected