MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / skip_token

Function skip_token

utils/dasFormatter/helpers.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 bool skip_token(bool v2_only, bool need_skip, LineInfo token) {
195 if (!need_skip) {
196 return false;
197 }
198 auto start = format::Pos::from(token);
199 auto end = format::Pos::from_last(token);
200 if (start == end) {
201 return false;
202 }
203 if ((!v2_only || format::is_replace_braces()) && format::prepare_rule(start)) {
204 format::finish_rule(end);
205 return true;
206 } else {
207 return false;
208 }
209 }
210
211 void wrap_par_expr(LineInfo real_expr, LineInfo info_expr) {
212 if (format::is_replace_braces() && real_expr == info_expr && format::prepare_rule(Pos::from(real_expr))) {

Callers 1

yyparseFunction · 0.85

Calls 3

is_replace_bracesFunction · 0.85
prepare_ruleFunction · 0.85
finish_ruleFunction · 0.85

Tested by

no test coverage detected