final class VirtualTableRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Lowers virtual table definitions.

Rule: SQLITE-VIRTUAL-TABLE-LOWER-001. Scope: cmd: create_vtab, cmd: create_vtab LP vtabarglist RP, create_vtab, vtabarglist, vtabarg, vtabargtoken, lp, anylist. Constructors: CreateVirtualTable, ModuleArgument. The grammar accepts any tokens as an argument; each argument lowers to the exact text of its token span (SQLITE-MODULE-ARGUMENT-TEXT-001), so no token of an argument is dropped or respelled. Terminates: the argument subtrees are walked with an explicit stack. Source: https://sqlite.org/lang_createvtab.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
Calls 1
public function command(Form $form): ?Statement

Lowers a virtual table definition, or answers null for a command of another family.

Parameters

$formForm

Returns

Called from 1
Calls 3
public function arguments(Node $list): list<ModuleArgument>

Lowers the argument list to the exact text of each argument, in order.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 8

Private surface 3§

Implementation details, listed for orientation only.

private const ARGUMENT_PRODUCTIONS = ['vtabarglist: vtabarg', 'vtabarglist: vtabarglist COMMA vtabarg', 'vtabarg:', …
private CreateTableRule $tables
private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 1
Type declarations 1