classOutputPart
final class OutputPart
A chosen lexeme and its resolved right boundary.
Properties§
public Lexeme $lexemepublic string $separatorpublic string $candidatepublic list<string> $spacingRules = []public int $allowed = SpacingConstraint::EITHERMethods§
public function __construct(
public Lexeme $lexeme,
public string $separator,
public string $candidate,
public list<string> $spacingRules = [],
public int $allowed = SpacingConstraint::EITHER,
)Parameters
$lexeme | Lexeme | |
$separator | string | |
$candidate | string | |
$spacingRules | list<string> | |
$allowed | int |
Test cases 1
Calls 1
- class-const SpacingConstraint::EITHER() line 20
Test cases 42§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OutputPartTest::testKeepsTheResolvedSeparatorAndItsRuleSourcescovers and calls
Other tests reaching this symbol 41
BytePlanCompilerTestcallsPlanBuilderTestcallsGrammarCoverageTestcallsLexicalObservationTest::testFeaturesKeepsValueTextOutOfFiniteDefinitionSetscallsDerivationTraceTestcallsTokenGeneratorTestcallsLexicalExceptionTestcallsLexemeSequenceTestcallsResolvedOutputTest::testPiecesPreservesChosenJoinsAndSpacesWithoutFormattingcallsBoundaryCompletionTestcallsCandidateResolverTest::testResolveIntersectsInternalAndExternalConstraintsWithoutChangingTheRightStatecallsCandidateResolverTest::testResolvePropagatesConditionsAcrossAnEmptyMarkerWithoutWritingSpacescallsCandidateResolverTest::testResolveReportsContradictionsWithBothRuleSourcescallsReverseLexemeGeneratorTestcallsSqlGeneratorTestcallsTerminalSequenceTestcallsGenerationContextTestcallsCharsetLexemeGeneratorTest::testGenerateKeepsOnlyCharsetsCompatibleWithTheResolvedLiteralcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsFactorLexemeGeneratorTest::testGenerateKeepsFactorPairsDistinctWithinTheirUsercallsKeywordLexemeGeneratorTest::testGenerateSeparatesFunctionUseFromIdentifierUsecallsLexicalDefinitionTestcallsPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogethercallsPrecisionLexemeGeneratorTest::testGenerateUsesOnlyTheScaleInTheSameOccurrencecallsLexicalGrammarTestcallsMySqlProviderTestcallsGenerationContextTestcallsDefinitionFactoryTestcallsHashBoundLexemeGeneratorTest::testGenerateMakesBothOrdersReachableAndRejectsRepeatedNamescallsKeywordLexemeGeneratorTest::testGenerateChecksTheLookaheadFollowerBeforeOfferingAnAliascallsLexicalDefinitionTestcallsLexicalGrammarTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsGenerationContextTestcallsDefinitionFactoryTestcallsJoinLexemeGeneratorTest::testGenerateKeepsOnlyModifiersCompatibleWithTheSelectedSuffixcallsLexicalDefinitionTestcallsLexicalGrammarTestcallsSqliteProviderTestcalls