Ignore:
Timestamp:
May 13, 2016, 1:22:24 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
d668182
Parents:
9243a501
Message:

fix printing for ArrayType?, Expression, Initializer, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.cc

    r9243a501 rbb8ea30  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed May 04 12:14:09 2016
     12// Last Modified On : Fri May 13 13:19:09 2016
    1313// Update Count     : 40
    1414//
     
    7575        constant.print( os );
    7676        Expression::print( os, indent );
    77         os << std::endl;
    7877}
    7978
     
    323322        os << ", from aggregate: ";
    324323        if (agg != 0) {
     324                os << std::string( indent + 2, ' ' );
    325325                agg->print(os, indent + 2);
    326326        }
     
    358358        os << std::string( indent, ' ' ) << "from aggregate: " << std::endl;
    359359        if (agg != 0) {
     360                os << std::string( indent + 2, ' ' );
    360361                agg->print(os, indent + 2);
    361362        }
     
    379380void UntypedExpr::print( std::ostream &os, int indent ) const {
    380381        os << "Applying untyped: " << std::endl;
    381         os << std::string( indent+4, ' ' );
    382         function->print(os, indent + 4);
     382        os << std::string( indent+2, ' ' );
     383        function->print(os, indent + 2);
    383384        os << std::string( indent, ' ' ) << "...to: " << std::endl;
    384         printAll(args, os, indent + 4);
     385        printAll(args, os, indent + 2);
    385386        Expression::print( os, indent );
    386387}
Note: See TracChangeset for help on using the changeset viewer.