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\Sqlite\Model\Contract\LanguageProfile(\SqlSemantics\Platform\Sqlite\Model\Contract\GrammarRelease::Sqlite3472))->ruleRevision // => 'SQLSEM-DESIGN-001/1.0'Properties§
public string $ruleRevisionThe specification revision, independently of implementation completion.
public GrammarRelease $grammarpublic LexicalSettings $lexical = new \SqlSemantics\Platform\Sqlite\Model\Contract\LexicalSettings()public ParameterStyle $parameters = ParameterStyle::NativeMethods§
public function __construct(
public GrammarRelease $grammar,
public LexicalSettings $lexical = new \SqlSemantics\Platform\Sqlite\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 4
- new LexicalSettings line 33
- class-const ParameterStyle::Native() line 34
- static-call Check::input() line 36
- method-call LexicalSettings::equals() line 36
public function compatibleWith(self $other): boolProfile compatibility includes the fixed artifacts and effective lexical settings.
Parameters
$other | self |
Returns
boolTest cases 2
Called from 3
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:69
- method-call SqlSemantics\Platform\Sqlite\Semantics::context() packages/sql-semantics-sqlite/src/Semantics.php:110
- method-call SqlSemantics\Platform\Sqlite\Semantics::context() packages/sql-semantics-sqlite/src/Semantics.php:117
Calls 1
- method-call LexicalSettings::equals() line 45
Test cases 42§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 39
AnalysisContextTest::testDeclaredComparesNamesAsTheContextSayscallsAnalysisContextTest::testDeclaredDefaultsTheDeclarationSchemaToTheFirstSearchedSchemacallsAnalysisContextTest::testDeclaredKeepsDistinctDeclarationsWithTheSameNamecallsAnalysisContextTest::testDeclaredKeepsOneCopyOfTheSameDeclarationObjectcallsAnalysisContextTest::testDeclaredMatchesACatalogOnlyWhenBothSidesWriteOnecallsAnalysisContextTest::testDeclaredRefusesADeclarationOfAnotherProfilecallsAnalysisContextTest::testDeclaredRefusesAnEmptySearchPathcallsAnalysisContextTest::testDeclaredSearchesOneSchemaAndUsesTheDeclarationSchemaForUnqualifiedTablescallsColumnLookupTest::testFindAdmitsOnlyTheOccurrenceTheQualifierNamescallsColumnLookupTest::testFindContinuesInTheEnclosingPositionWithAGreaterDepthcallsColumnLookupTest::testFindIsAmbiguousForSeveralSlotsAtOnePositioncallsColumnLookupTest::testFindIsConditionalWhileANearerOccurrenceIsIncompletelyKnowncallsColumnLookupTest::testFindIsConditionalWithoutCandidatesWhenNothingIsKnowncallsColumnLookupTest::testFindIsMissingOnlyWhenEverySearchedOccurrenceIsCompletecallsColumnLookupTest::testFindPrefersTheNearerPositionOverAFartherSlotcallsColumnLookupTest::testFindResolvesTheOnlySlotWithTheNamecallsColumnLookupTest::testFindSkipsHiddenSlotsForAnUnqualifiedNamecallsColumnLookupTest::testFindUsesAnImplicitSlotWhenNoShapeSlotHasTheNamecallsEnvironmentTest::testAliasedFindsEveryOutputFieldWithTheAliascallsEnvironmentTest::testCommonTableComparesNamesAsTheContextSayscallsEnvironmentTest::testCommonTableFindsTheNearestBindingWithLaterOnesShadowingEarlierOnescallsLookupLevelTest::testAdmitsAnAliasedOccurrenceByItsAliasOnlycallsLookupLevelTest::testAdmitsAPlainOccurrenceByItsNameAndSchemacallsLookupLevelTest::testAdmitsEveryOccurrenceWithoutAQualifiercallsLookupLevelTest::testFoundListsTheMatchingSlotsOfEveryAdmittedOccurrenceAtTheGivenDepthcallsLookupLevelTest::testFoundSearchesImplicitSlotsOnlyWhenNoDeclaredSlotMatchescallsLookupLevelTest::testOpenListsAnOccurrenceWithASlotWhoseNameIsUndecidedcallsLookupLevelTest::testOpenListsTheIncompleteOccurrencesWithoutAMatchcallsTableLookupTest::testFindIsConditionalForALaterSchemaOfAnOpenContextcallsTableLookupTest::testFindIsMissingInACompleteContextAndUndeclaredInAnOpenOnecallsTableLookupTest::testFindReportsConflictingDeclarationsOfOneSchemacallsTableLookupTest::testFindResolvesTheOneDeclarationOfTheFirstSchemaThatHasItcallsTableLookupTest::testFindSearchesOnlyTheSchemaAQualifiedNameWritescallsTableTest::testACompleteTableIsTheDefaultcallsTableTest::testMatchingColumnsFindsDeclaredColumnsBeforeImplicitOnescallsTableTest::testMatchingColumnsKeepsARepeatedDeclaredNamecallsTableTest::testMatchingColumnsSearchesEveryImplicitNameWhenNoDeclaredColumnMatchescallsIncompleteMembersTest::testDescribeNamesTheRelationWhoseMembersAreIncompletecallsSemanticsTest::testAnalyzeRefusesAContextOfAnotherProfilecalls
Relations§
Instantiated in 1
Method calls 3
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:69
- method-call SqlSemantics\Platform\Sqlite\Semantics::context() packages/sql-semantics-sqlite/src/Semantics.php:110
- method-call SqlSemantics\Platform\Sqlite\Semantics::context() packages/sql-semantics-sqlite/src/Semantics.php:117
Type declarations 14
- type SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:58
- type SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:49
- type SqlSemantics\Platform\Sqlite\Model\Statement\Operation packages/sql-semantics-sqlite/src/Model/Statement/Operation.php:81
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:53
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:73
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:83
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:93
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:101
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:109
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:121
- type SqlSemantics\Platform\Sqlite\Rules\Definition\TableDeclaration packages/sql-semantics-sqlite/src/Rules/Definition/TableDeclaration.php:80
- type SqlSemantics\Platform\Sqlite\Semantics packages/sql-semantics-sqlite/src/Semantics.php:56
- type SqlSemantics\Platform\Sqlite\Semantics packages/sql-semantics-sqlite/src/Semantics.php:87
- type SqlSemantics\Platform\Sqlite\SqlNames packages/sql-semantics-sqlite/src/SqlNames.php:30