Changeset ea9b9d3
- Timestamp:
- Jun 11, 2015, 1:38:57 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:
- b5b0907
- Parents:
- a8541d9
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parser/ExpressionNode.cc ¶
ra8541d9 rea9b9d3 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:17:07 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jun 8 17:33:40201513 // Update Count : 1 4711 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jun 10 14:57:52 2015 13 // Update Count : 151 14 14 // 15 15 … … 252 252 new ConstantExpr( 253 253 Constant( new BasicType( q, BasicType::UnsignedInt ), 254 toString( value.size() + 1 ) ) ), // account for '\0'254 toString( value.size()+1-2 ) ) ), // +1 for '\0' and -2 for '"' 255 255 false, false ); 256 256 return new ConstantExpr( Constant( at, value ), maybeBuild< Expression >( get_argName() ) ); -
TabularUnified src/SynTree/Constant.cc ¶
ra8541d9 rea9b9d3 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun Jun 7 08:45:30201513 // Update Count : 511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jun 10 14:41:03 2015 13 // Update Count : 8 14 14 // 15 15 … … 27 27 28 28 void Constant::print( std::ostream &os ) const { 29 os << value;29 os << "(" << value; 30 30 if ( type ) { 31 os << " ";31 os << ": "; 32 32 type->print( os ); 33 33 } // if 34 os << ")"; 34 35 } 35 36
Note: See TracChangeset
for help on using the changeset viewer.