classCloneAddressSpacingRule
final class CloneAddressSpacingRule
implements SpacingRule
sql/sql_yacc.yy clone_stmt checks the raw token positions on both sides of the port colon.
Methods§
public function apply(LexemeBoundary $boundary, LexemeInput $input): ?SpacingConstraintJoins only address colons, without affecting labels or unrelated colon syntax.
Parameters
$boundary | LexemeBoundary | |
$input | LexemeInput |
Returns
Test cases 4
CloneAddressSpacingRuleTest::testApplyConstrainsOnlyItsSourceDefinedBoundarycovers and callsCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColoncallsCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColon#0coversCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColon#1covers
Calls 3
- function-call
array_sliceline 29 - new SpacingConstraint line 30
- class-const SpacingConstraint::JOIN() line 30
Test cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
CloneAddressSpacingRuleTest::testApplyConstrainsOnlyItsSourceDefinedBoundarycovers and callsCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColoncallsCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColon#0coversCloneAddressSpacingRuleTest::testApplyRecognizesAFlatStatementAndBothSidesOfTheAddressColon#1covers
Other tests reaching this symbol 9
LexicalExceptionTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls