final class DeclarationPrinter
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Writes declarations back as Lemon reads them.

Methods§

public function print(Declaration $declaration): string

Writes one declaration on one line, without the line break.

Parameters

$declarationDeclarationThe declaration

Returns

string The text

Throws

LogicException When the declaration is of a class the printer does not know
Test cases 1
Called from 1
Calls 13
public function argument(string $value, ArgumentForm $form): string

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Method calls 1
Type declarations 1