final class GrammarWriter

Publishes one generated AST; lexical declarations are maintained in source code.

Methods§

public function __construct(private ArtifactDirectory $directory = new \SqlFaker\Compiler\Resource\ArtifactDirectory())
public function publish(SqlVersion $version, string $ast): void

Stages the complete AST beside its destination and publishes it with one rename.

Parameters

$versionSqlVersion
$aststring

Throws

RuntimeException When staging or publication fails
Test cases 2
Calls 7

Private surface 1§

Implementation details, listed for orientation only.

private ArtifactDirectory $directory = new \SqlFaker\Compiler\Resource\ArtifactDirectory()

Test cases 2§

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

Dedicated tests 2