classPluginRule
final class PluginRule
Lowers INSTALL and UNINSTALL of plugins and components.
Rule: MYSQL-PLUGIN-001. Scope: install (5.6, 5.7), install_stmt, uninstall, opt_install_set_value_list, install_set_value_list, install_set_value, install_option_type, install_set_rvalue (8.0 and later). The variable goes through the leaf variable rule with the scope written before it; the value through the expression family, or is the word ON. The equals sign is the one of equal (LeafNoise). Constructs: InstallPlugin, UninstallPlugin, InstallComponent, UninstallComponent, ComponentSetting, OnWord. Terminates: the assignment list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/install-plugin.html, https://dev.mysql.com/doc/refman/8.4/en/install-component.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a plugin or component statement.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- new InstallPlugin line 58
- method-call Form::node() line 59
- new InstallComponent line 62
- method-call PluginRule::settings() line 62
- new UninstallPlugin line 63
- new UninstallComponent line 64
- static-call ImplementationGap::production() line 65
public function settings(Node $list): list<ComponentSetting>Lowers the SET list of INSTALL COMPONENT: a node of opt_install_set_value_list.
Parameters
$list | Node |
Returns
list<ComponentSetting>Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- method-call Lowering::form() line 77
- static-call ImplementationGap::production() line 82
- method-call Lists::items() line 87
- new Lists line 87
- method-call PluginRule::setting() line 88
public function setting(Node $setting): ComponentSettingLowers one assignment: a node of install_set_value.
Parameters
$setting | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 6
- method-call Lowering::form() line 101
- static-call ImplementationGap::production() line 103
- class-const VariableScope::Global() line 108
- class-const VariableScope::Persist() line 109
- new ComponentSetting line 115
- new OnWord line 117
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PluginRuleTestcalls