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

Function cloneAnnotationList

src/ast/ast.cpp:755–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753 // function
754
755 AnnotationList cloneAnnotationList ( const AnnotationList & list ) {
756 AnnotationList clist;
757 for ( auto & ann : list ) {
758 auto decl = new AnnotationDeclaration();
759 decl->annotation = ann->annotation;
760 decl->arguments = ann->arguments;
761 decl->at = ann->at;
762 clist.push_back(decl);
763 }
764 return clist;
765 }
766
767 FunctionPtr Function::clone() const {
768 auto cfun = new Function();

Callers 1

cloneMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected