Lines Matching refs:prettyPrinter
24 $prettyPrinter = new Standard([
28 return [$parser, $prettyPrinter];
32 [$parser, $prettyPrinter] = $this->createParserAndPrinter($this->parseModeLine($modeLine));
33 $output = canonicalize($prettyPrinter->$method($parser->parse($code)));
60 $prettyPrinter = new Standard();
65 $this->assertEquals('($a + $b) * $c', $prettyPrinter->prettyPrintExpr($expr));
70 …$this->assertEquals("function () {\n return 'a\nb';\n}", $prettyPrinter->prettyPrintExpr($expr)…
74 $prettyPrinter = new PrettyPrinter\Standard();
78 $this->assertSame($expected, $prettyPrinter->prettyPrintFile($stmts));
82 $prettyPrinter = new Standard(['shortArraySyntax' => true]);
87 $this->assertSame($expected, $prettyPrinter->prettyPrintExpr($expr));
174 $prettyPrinter = new PrettyPrinter\Standard();
175 $prettyPrinter->prettyPrint($stmts);
184 $prettyPrinter = new PrettyPrinter\Standard();
185 $prettyPrinter->prettyPrint($stmts);
256 $prettyPrinter = new Standard([
268 $code = $prettyPrinter->prettyPrint($stmts);
270 $code = $prettyPrinter->prettyPrintFile($stmts);
274 $code = $prettyPrinter->prettyPrintFile($stmts);
291 $code = $prettyPrinter->prettyPrint($stmts);