MCPcopy Create free account
hub / github.com/build2/build2 / parse_switch

Method parse_switch

libbuild2/parser.cxx:5551–5568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5549 }
5550
5551 void parser::
5552 parse_switch (token& t, type& tt)
5553 {
5554 auto g = make_guard ([this, old = condition_] () mutable
5555 {
5556 condition_ = old;
5557 });
5558 condition_ = get_location (t);
5559
5560 parse_switch (t, tt,
5561 false /* multi */,
5562 [this] (token& t, type& tt, bool s, const string& k)
5563 {
5564 return parse_clause_block (
5565 t, tt, true /* allow_loop_control */, s, k);
5566 },
5567 {});
5568 }
5569
5570 void parser::
5571 parse_switch (token& t, type& tt,

Callers

nothing calls this directly

Calls 4

get_locationFunction · 0.85
modeEnum · 0.85
parse_namesFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected