void function ( CompilationUnit arg0 , TypeDeclaration arg1 ) { List < TypeDeclaration > loc0 = arg0 . getTypes ( ) ; if ( isNullOrEmpty ( loc0 ) ) { loc0 = new ArrayList < TypeDeclaration > ( ) ; arg0 . setTypes ( loc0 ) ; } loc0 . add ( arg1 ) ; }
adds the given type declaration to the compilation unit . the list of types will be initialized if it is null . concode_field_sep VoidType VOID_TYPE concode_elem_sep PrimitiveType LONG_TYPE concode_elem_sep PrimitiveType CHAR_TYPE concode_elem_sep PrimitiveType INT_TYPE concode_elem_sep PrimitiveType FLOAT_TYPE concode_elem_sep PrimitiveType BYTE_TYPE concode_elem_sep PrimitiveType SHORT_TYPE concode_elem_sep PrimitiveType DOUBLE_TYPE concode_elem_sep PrimitiveType BOOLEAN_TYPE concode_field_sep void addStmt concode_elem_sep void addStmt concode_elem_sep void addMember concode_elem_sep void addArgument concode_elem_sep ReferenceType createReferenceType concode_elem_sep ReferenceType createReferenceType concode_elem_sep FieldDeclaration createFieldDeclaration concode_elem_sep FieldDeclaration createFieldDeclaration concode_elem_sep NameExpr createNameExpr concode_elem_sep Parameter createParameter concode_elem_sep VariableDeclarationExpr createVariableDeclarationExpr concode_elem_sep void addParameter concode_elem_sep List<N> getNodesByType