classPatternTerm
final class PatternTerm
implements Term
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
A string whose resolved parts are known but which still has gaps.
Properties§
public TextPattern $patternMethods§
public function __construct(public TextPattern $pattern)Parameters
$pattern | TextPattern | The partially resolved string |
public function toPattern(): TextPatternThe pattern itself.
Returns
Test cases 1
public function type(): TypeShapeAlways string, because the gaps are spliced into text.
Returns
Test cases 2
Calls 1
- static-call TypeShape::of() line 40
public function signature(): stringThe pattern signature, which keeps gap origins apart.
Returns
stringTest cases 1
Calls 1
- method-call TextPattern::signature() line 49
Test cases 35§
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 32
CatalogCommandTestcallsBuiltinCallModelTest::testSprintfFillsAPartlyKnownFormatcallsCallEvaluatorTestcallsCalleeReturnsTestcallsDeriverTestcallsEntryBinderTestcallsCallbackEffectsTestcallsObjectEffectsTestcallsPropertyWritesTestcallsEntryFactoryTestcallsExpressionEvaluatorTestcallsRegistryTestcallsReferenceEvaluatorTestcallsValueDomainTestcallsDomainTest::testAsTermKeepsAPatternThatStillHasGapscallsDomainTest::testWithVariablePreservesResolvedDomainsAndExistingFragmentNamescallsEnvironmentTestcallsObjectMemoryTestcallsTermTest::testTypeIsReportedByEveryKindOfTermcallsBuilderCallsTestcallsBuilderQueriesTestcallsCallbackModelTestcallsClausesTestcallsGrammarTestcallsModelMetadataTestcallsPredicatesTestcallsQueryStateTestcallsSelectCompilerTestcallsWriteCompilerTestcallsAnalyzerTestcallsJsonReporterTestcallsTextReporterTestcalls