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

Function wrap_par_expr

utils/dasFormatter/helpers.cpp:211–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))) {
213 format::get_writer() << "(" << format::get_substring(real_expr) << ")";
214 format::finish_rule(Pos::from_last(real_expr));
215 }
216 }
217
218 void wrap_par_expr_newline(LineInfo real_expr, LineInfo info_expr) {
219 if (real_expr.line != real_expr.last_line) {

Callers 2

yyparseFunction · 0.85
wrap_par_expr_newlineFunction · 0.85

Calls 4

is_replace_bracesFunction · 0.85
prepare_ruleFunction · 0.85
get_substringFunction · 0.85
finish_ruleFunction · 0.85

Tested by

no test coverage detected