MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / consumeIf

Method consumeIf

tools/alive_parser.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 bool consumeIf(token expected) {
111 auto token = peek();
112 if (token == expected) {
113 returned = false;
114 return true;
115 }
116 return false;
117 }
118
119 void ensure(token expected) {
120 auto t = **this;

Callers 12

parse_nameFunction · 0.80
parse_predicateFunction · 0.80
parse_preFunction · 0.80
alive_parser.cppFile · 0.80
parse_nsw_nuwFunction · 0.80
parse_exactFunction · 0.80
parse_fast_mathFunction · 0.80
parse_conversionopFunction · 0.80
parse_fp_conversionopFunction · 0.80
parse_extractvalueFunction · 0.80
parse_insertvalueFunction · 0.80
parse_shufflevectorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected