classGrammarWriter
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): voidStages the complete AST beside its destination and publishes it with one rename.
Parameters
$version | SqlVersion | |
$ast | string |
Throws
RuntimeException When staging or publication failsTest cases 2
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.