classLanguageProfile
final class LanguageProfile
uses Snapshot
Public API: explicitly declared with
@visibility public.Fixed grammar artifacts, semantic specification revision, and lexical interpretation.
A revision identifies the contract being implemented, not completed implementation or formal proof. No parser, cache, connection, clock, or mutable settings survive here.
(new \SqlSemantics\Platform\MySql\Model\Contract\LanguageProfile(\SqlSemantics\Platform\MySql\Model\Contract\GrammarRelease::MySql847))->ruleRevision // => 'SQLSEM-DESIGN-001/1.0'Properties§
public string $ruleRevisionThe specification revision, independently of implementation completion.
public GrammarRelease $grammarpublic LexicalSettings $lexical = new \SqlSemantics\Platform\MySql\Model\Contract\LexicalSettings()public ParameterStyle $parameters = ParameterStyle::NativeMethods§
public function __construct(
public GrammarRelease $grammar,
public LexicalSettings $lexical = new \SqlSemantics\Platform\MySql\Model\Contract\LexicalSettings(),
public ParameterStyle $parameters = ParameterStyle::Native,
)The grammar release fixes its artifact digests and its database family.
Parameters
$grammar | GrammarRelease | |
$lexical | LexicalSettings | |
$parameters | ParameterStyle |
Calls 2
- new LexicalSettings line 32
- class-const ParameterStyle::Native() line 33
public function compatibleWith(self $other): boolProfile compatibility includes the fixed artifacts and effective lexical settings.
Parameters
$other | self |
Returns
boolTest cases 4
LanguageProfileTest::testCompatibleWithAcceptsAProfileOfTheSameArtifactsAndSettingscallsLanguageProfileTest::testCompatibleWithRejectsAnotherGrammarReleasecallsLanguageProfileTest::testCompatibleWithRejectsAnotherParameterStylecallsLanguageProfileTest::testCompatibleWithRejectsOtherLexicalSettingscalls
Called from 3
- method-call SqlSemantics\Platform\MySql\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-mysql/src/Model/Contract/AnalysisContext.php:69
- method-call SqlSemantics\Platform\MySql\Semantics::context() packages/sql-semantics-mysql/src/Semantics.php:110
- method-call SqlSemantics\Platform\MySql\Semantics::context() packages/sql-semantics-mysql/src/Semantics.php:117
Calls 1
- method-call LexicalSettings::equals() line 44
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
LanguageProfileTest::testCompatibleWithAcceptsAProfileOfTheSameArtifactsAndSettingscallsLanguageProfileTest::testCompatibleWithRejectsAnotherGrammarReleasecallsLanguageProfileTest::testCompatibleWithRejectsAnotherParameterStylecallsLanguageProfileTest::testCompatibleWithRejectsOtherLexicalSettingscalls
Relations§
Instantiated in 1
Method calls 3
- method-call SqlSemantics\Platform\MySql\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-mysql/src/Model/Contract/AnalysisContext.php:69
- method-call SqlSemantics\Platform\MySql\Semantics::context() packages/sql-semantics-mysql/src/Semantics.php:110
- method-call SqlSemantics\Platform\MySql\Semantics::context() packages/sql-semantics-mysql/src/Semantics.php:117
Type declarations 20
- type SqlSemantics\Platform\MySql\Lowering\Lowering packages/sql-semantics-mysql/src/Lowering/Lowering.php:178
- type SqlSemantics\Platform\MySql\Model\Contract\AnalysisContext packages/sql-semantics-mysql/src/Model/Contract/AnalysisContext.php:58
- type SqlSemantics\Platform\MySql\Model\Statement\Declaration\Table packages/sql-semantics-mysql/src/Model/Statement/Declaration/Table.php:49
- type SqlSemantics\Platform\MySql\Model\Statement\Operation packages/sql-semantics-mysql/src/Model/Statement/Operation.php:81
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:80
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:102
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:114
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:124
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:132
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:140
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:152
- type SqlSemantics\Platform\MySql\Rules\Query\ItemNaming packages/sql-semantics-mysql/src/Rules/Query/ItemNaming.php:92
- type SqlSemantics\Platform\MySql\Rules\Query\SelectFacts packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:122
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\TableDeclaration packages/sql-semantics-mysql/src/Rules/TableDefinition/TableDeclaration.php:144
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\TableDeclaration packages/sql-semantics-mysql/src/Rules/TableDefinition/TableDeclaration.php:166
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\TableDeclaration packages/sql-semantics-mysql/src/Rules/TableDefinition/TableDeclaration.php:186
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\ViewColumns packages/sql-semantics-mysql/src/Rules/TableDefinition/ViewColumns.php:57
- type SqlSemantics\Platform\MySql\Semantics packages/sql-semantics-mysql/src/Semantics.php:56
- type SqlSemantics\Platform\MySql\Semantics packages/sql-semantics-mysql/src/Semantics.php:87
- type SqlSemantics\Platform\MySql\SqlNames packages/sql-semantics-mysql/src/SqlNames.php:30