source: translator/SynTree/TypeExpr.cc @ 9df2dd5

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 9df2dd5 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 517 bytes
Line 
1/*
2 * This file is part of the Cforall project
3 *
4 * $Id: TypeExpr.cc,v 1.4 2005/08/29 20:59:26 rcbilson Exp $
5 *
6 */
7
8#include "Expression.h"
9#include "Type.h"
10#include "utility.h"
11
12
13TypeExpr::TypeExpr( Type *type )
14    : type( type )
15{
16}
17
18TypeExpr::TypeExpr( const TypeExpr &other )
19    : type( maybeClone( other.type ) )
20{
21}
22
23TypeExpr::~TypeExpr()
24{
25    delete type;
26}
27
28void 
29TypeExpr::print( std::ostream &os, int indent ) const
30{
31    if( type ) type->print( os, indent );
32    Expression::print( os, indent );
33}
34
Note: See TracBrowser for help on using the repository browser.