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

Method describeName

src/ast/ast.cpp:810–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 }
809
810 string Function::describeName(DescribeModule moduleName) const {
811 TextWriter ss;
812 if ( moduleName==DescribeModule::yes && module && !module->name.empty() ) {
813 ss << module->name << "::";
814 }
815 if ( !isalpha(name[0]) && name[0]!='_' && name[0]!='`' ) {
816 ss << "operator ";
817 }
818 ss << name;
819 return ss.str();
820 }
821
822 string Function::describe(DescribeModule moduleName, DescribeExtra extra) const {
823 TextWriter ss;

Callers 2

preVisitMethod · 0.80
preVisitMethod · 0.80

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected