MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / par_multiply

Function par_multiply

src/gpre/sqe.cpp:2166–2188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164//
2165
2166static gpre_nod* par_multiply(gpre_req* request, bool aster_ok, USHORT* paren_count, bool* bool_flag)
2167{
2168 assert_IS_REQ(request);
2169 gpre_nod* node = par_primitive_value(request, aster_ok, paren_count, bool_flag);
2170 if (node->nod_type == nod_asterisk)
2171 return node;
2172
2173 if (gpreGlob.token_global.tok_keyword == KW_COLLATE)
2174 return par_collate(request, node);
2175
2176 nod_t nod_type;
2177 while (true)
2178 {
2179 if (MSC_match(KW_ASTERISK))
2180 nod_type = nod_times;
2181 else if (MSC_match(KW_SLASH))
2182 nod_type = nod_divide;
2183 else
2184 return node;
2185
2186 node = MSC_binary(nod_type, node, par_primitive_value(request, false, paren_count, bool_flag));
2187 }
2188}
2189
2190
2191//____________________________________________________________

Callers 1

SQE_valueFunction · 0.70

Calls 4

par_collateFunction · 0.85
MSC_matchFunction · 0.85
MSC_binaryFunction · 0.85
par_primitive_valueFunction · 0.70

Tested by

no test coverage detected