Automattic\WooCommerce\Vendor\GraphQL\Language

Printer::doPrintpublic staticWC 1.0

Converts the AST of a Automattic\WooCommerce\Vendor\GraphQL node to a string.

Handles both executable definitions and schema definitions.

Method of the class: Printer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Printer::doPrint( $ast ): string;
$ast(Node) (required)
.

Printer::doPrint() code WC 10.9.1

public static function doPrint(Node $ast): string
{
    return static::p($ast);
}