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

Method preVisitFunctionBody

src/ast/ast_print.cpp:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390 if ( fn->arguments.size() ) ss << "(";
391 }
392 virtual void preVisitFunctionBody ( Function * fn,Expression * expr ) override {
393 Visitor::preVisitFunctionBody(fn,expr);
394 if ( fn->arguments.size() ) ss << ")";
395 if ( fn->result ) ss << " : " << fn->result->describe();
396 if ( !gen2 ) ss << "\n";
397 }
398 virtual void preVisitArgument ( Function * fn, const VariablePtr & arg, bool last ) override {
399 Visitor::preVisitArgument(fn,arg,last);
400 if (!arg->annotation.empty()) {

Callers 1

visitMethod · 0.45

Calls 2

sizeMethod · 0.45
describeMethod · 0.45

Tested by

no test coverage detected