| 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(); |