Changeset cf0941d for src/SynTree
- Timestamp:
- Jun 4, 2015, 11:08:06 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 44b5ca0
- Parents:
- c7ed6d0
- Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ArrayType.cc
rc7ed6d0 rcf0941d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 07:52:08201513 // Update Count : 212 // Last Modified On : Thu Jun 4 21:16:46 2015 13 // Update Count : 7 14 14 // 15 15 … … 25 25 26 26 ArrayType::ArrayType( const ArrayType &other ) 27 : Type( other ), base( maybeClone( other.base ) ), dimension( maybeClone( other.dimension ) ),28 isVarLen( other.isVarLen ), isStatic( other.isStatic ) {27 : Type( other ), base( maybeClone( other.base ) ), dimension( maybeClone( other.dimension ) ), 28 isVarLen( other.isVarLen ), isStatic( other.isStatic ) { 29 29 } 30 30 … … 43 43 } else if ( dimension ) { 44 44 os << "array of "; 45 dimension->print( os, indent );46 45 } else { 47 46 os << "open array of "; … … 49 48 if ( base ) { 50 49 base->print( os, indent ); 50 } // if 51 if ( dimension ) { 52 dimension->print( os, indent ); 51 53 } // if 52 54 } -
src/SynTree/Expression.cc
rc7ed6d0 rcf0941d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:27:07201513 // Update Count : 212 // Last Modified On : Thu Jun 4 21:42:55 2015 13 // Update Count : 10 14 14 // 15 15 … … 52 52 void Expression::print(std::ostream &os, int indent) const { 53 53 if ( env ) { 54 os << std::string( indent, ' ') << "with environment:" << std::endl;54 os << std::string( indent, ' ' ) << "with environment:" << std::endl; 55 55 env->print( os, indent+2 ); 56 56 } // if 57 57 58 58 if ( argName ) { 59 os << std::string( indent, ' ') << "with designator:";59 os << std::string( indent, ' ' ) << "with designator:"; 60 60 argName->print( os, indent+2 ); 61 61 } // if … … 72 72 73 73 void ConstantExpr::print( std::ostream &os, int indent ) const { 74 os << std:: string(indent, ' ') << "Constant Expression: ";75 constant.print(os);76 os << std::endl;74 os << std::endl; 75 os << std::string( indent, ' ' ) << "dimension of constant expression: " ; 76 constant.print( os ); 77 77 Expression::print( os, indent ); 78 78 } -
src/SynTree/ObjectDecl.cc
rc7ed6d0 rcf0941d 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu May 28 14:10:02 201513 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 4 21:21:12 2015 13 // Update Count : 10 14 14 // 15 15 … … 36 36 void ObjectDecl::print( std::ostream &os, int indent ) const { 37 37 if ( get_name() != "" ) { 38 os << get_name() << ": a";38 os << get_name() << ": "; 39 39 } // if 40 40 … … 67 67 #if 0 68 68 if ( get_mangleName() != "") { 69 os << get_mangleName() << ": a";69 os << get_mangleName() << ": "; 70 70 } else 71 71 #endif 72 72 if ( get_name() != "" ) { 73 os << get_name() << ": a";73 os << get_name() << ": "; 74 74 } // if 75 75
Note:
See TracChangeset
for help on using the changeset viewer.