Home | History | Annotate | Download | only in gn

Lines Matching full:indent

58 void ParseNode::PrintComments(std::ostream& out, int indent) const {
60 std::string ind = IndentFor(indent + 1);
114 void AccessorNode::Print(std::ostream& out, int indent) const {
115 out << IndentFor(indent) << "ACCESSOR\n";
116 PrintComments(out, indent);
117 out << IndentFor(indent + 1) << base_.value() << "\n";
119 index_->Print(out, indent + 1);
121 member_->Print(out, indent + 1);
230 void BinaryOpNode::Print(std::ostream& out, int indent) const {
231 out << IndentFor(indent) << "BINARY(" << op_.value() << ")\n";
232 PrintComments(out, indent);
233 left_->Print(out, indent + 1);
234 right_->Print(out, indent + 1);
280 void BlockNode::Print(std::ostream& out, int indent) const {
281 out << IndentFor(indent) << "BLOCK\n";
282 PrintComments(out, indent);
284 statements_[i]->Print(out, indent + 1);
357 void ConditionNode::Print(std::ostream& out, int indent) const {
358 out << IndentFor(indent) << "CONDITION\n";
359 PrintComments(out, indent);
360 condition_->Print(out, indent + 1);
361 if_true_->Print(out, indent + 1);
363 if_false_->Print(out, indent + 1);
395 void FunctionCallNode::Print(std::ostream& out, int indent) const {
396 out << IndentFor(indent) << "FUNCTION(" << function_.value() << ")\n";
397 PrintComments(out, indent);
398 args_->Print(out, indent + 1);
400 block_->Print(out, indent + 1);
440 void IdentifierNode::Print(std::ostream& out, int indent) const {
441 out << IndentFor(indent) << "IDENTIFIER(" << value_.value() << ")\n";
442 PrintComments(out, indent);
489 void ListNode::Print(std::ostream& out, int indent) const {
490 out << IndentFor(indent) << "LIST\n";
491 PrintComments(out, indent);
493 contents_[i]->Print(out, indent + 1);
545 void LiteralNode::Print(std::ostream& out, int indent) const {
546 out << IndentFor(indent) << "LITERAL(" << value_.value() << ")\n";
547 PrintComments(out, indent);
578 void UnaryOpNode::Print(std::ostream& out, int indent) const {
579 out << IndentFor(indent) << "UNARY(" << op_.value() << ")\n";
580 PrintComments(out, indent);
581 operand_->Print(out, indent + 1);
609 void BlockCommentNode::Print(std::ostream& out, int indent) const {
610 out << IndentFor(indent) << "BLOCK_COMMENT(" << comment_.value() << ")\n";
611 PrintComments(out, indent);