Lines Matching refs:Print

54   if (!node->is_initializer_block()) Print("{ ");
56 if (node->statements()->length() > 0) Print(" ");
57 if (!node->is_initializer_block()) Print("}");
62 Print("var ");
64 Print(";");
69 Print("function ");
71 Print(" = ");
73 Print(";");
78 Print("module ");
80 Print(" = ");
82 Print(";");
87 Print("import ");
89 Print(" from ");
91 Print(";");
96 Print("export ");
98 Print(";");
114 Print(".");
120 Print("at ");
127 Print(";");
132 Print(";");
137 Print("if (");
139 Print(") ");
142 Print(" else ");
149 Print("continue");
152 Print(" ");
156 Print(";");
161 Print("break");
164 Print(" ");
168 Print(";");
173 Print("return ");
175 Print(";");
180 Print("with (");
182 Print(") ");
189 Print("switch (");
191 Print(") { ");
195 Print("}");
201 Print("do ");
203 Print(" while (");
205 Print(");");
211 Print("while (");
213 Print(") ");
220 Print("for (");
223 Print(" ");
225 Print("; ");
228 Print("; ");
233 Print(") ");
240 Print("for (");
242 Print(" in ");
244 Print(") ");
250 Print("try ");
252 Print(" catch (");
255 Print(") ");
261 Print("try ");
263 Print(" finally ");
269 Print("debugger ");
274 Print("(");
276 Print(")");
282 Print("(");
284 Print(")");
290 Print(" ? ");
292 Print(" : ");
303 Print(" RegExp(");
305 Print(",");
307 Print(") ");
312 Print("{ ");
314 if (i != 0) Print(",");
316 Print(" ");
318 Print(": ");
321 Print(" }");
326 Print("[ ");
328 if (i != 0) Print(",");
331 Print(" ]");
342 Print(" %s ", Token::String(node->op()));
348 Print("throw ");
357 Print("(");
359 Print(").");
363 Print("[");
365 Print("]");
377 Print("new (");
379 Print(")");
385 Print("%%");
395 Print("(%s%s", Token::String(op), needsSpace ? " " : "");
397 Print(")");
402 Print("(");
403 if (node->is_prefix()) Print("%s", Token::String(node->op()));
405 if (node->is_postfix()) Print("%s", Token::String(node->op()));
406 Print(")");
411 Print("(");
413 Print(" %s ", Token::String(node->op()));
415 Print(")");
420 Print("(");
422 Print(" %s ", Token::String(node->op()));
424 Print(")");
429 Print("<this-function>");
433 const char* PrettyPrinter::Print(AstNode* node) {
452 Print("\n");
459 PrintF("%s", printer.Print(node));
475 void PrettyPrinter::Print(const char* format, ...) {
505 if (i != 0) Print(" ");
515 Print(": ");
522 Print("(");
524 if (i != 0) Print(", ");
527 Print(")");
535 if (quote) Print("\"");
537 Print("%c", string->Get(i));
539 if (quote) Print("\"");
541 Print("null");
543 Print("true");
545 Print("false");
547 Print("undefined");
549 Print("%g", object->Number());
553 Print("JS-Function");
555 Print("JS-array[%u]", JSArray::cast(object)->length());
557 Print("JS-Object");
559 Print("?UNKNOWN?");
562 Print("FixedArray");
564 Print("<unknown literal %p>", object);
570 Print("(");
572 if (i > 0) Print(", ");
575 Print(")");
581 if (i > 0) Print(" ");
588 Print("function ");
591 Print(" { ");
594 Print(" }");
600 Print("default");
602 Print("case ");
605 Print(": ");
608 Print(" ");
623 ast_printer_->Print("\n");
650 Print(". ");
652 Print(txt);
660 Print(" ");
662 Print("\n");
684 Print(" ");
686 Print("\n");
689 Print("\n");
777 Print(" = function ");
779 Print("\n");