classLiteralText
final class LiteralText
implements TextSegment
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
A run of characters the analyzer resolved exactly.
Properties§
public string $textMethods§
public function __construct(public string $text)Parameters
$text | string | The resolved characters |
public function display(): stringThe characters themselves.
Returns
stringTest cases 78§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 76
CatalogCommandTestcallsBuiltinCallModelTest::testFormatPatternCarriesAGapInTheFormatAndKeepsCountingArgumentsPastItcallsCallEvaluatorTestcallsCalleeReturnsTestcallsDeriverTestcallsEntryBinderTestcallsCallbackEffectsTestcallsObjectEffectsTestcallsPropertyWritesTestcallsSliceExecutorTestcallsEntryFactoryTestcallsExpressionEvaluatorTestcallsRegistryTestcallsInterpreterTestcallsModelQueriesTestcallsQueryRecordTestcallsReferenceEvaluatorTestcallsStatementRecorderTestcallsValueBinderTestcallsCatalogEntryTest::testPartsAreTheRunsAndGapsTheStatementIsKnownIncallsCatalogTestcallsEntryIdentityTestcallsResolutionTestcallsStatementPartTest::testOfKeepsTheRunsAndTheGapsInOrdercallsValueDomainTestcallsArrayEntryTestcallsDomainTestcallsLiteralTermTestcallsObjectMemoryTestcallsPatternTermTestcallsTermTestcallsCatalogFilterTestcallsPlaceholderScannerTestcallsStatementKindReaderTestcallsTableReaderTestcallsTextGeneralizationTest::testAtomsSplitTextIntoCharactersAndKeepGapsWholecallsTextPatternTest::testFromSegmentsCoalescesAdjacentTextcallsTextPatternTest::testFromSegmentsDropsEmptyTextcallsTextPatternTest::testHolesAreReturnedInSourceOrdercallsTextSegmentTest::testDisplayDistinguishesResolvedTextFromAGapcallsBuilderCallsTestcallsBuilderQueriesTestcallsCallbackModelTestcallsCallModelTestcallsClausesTestcallsGrammarTestcallsModelMetadataTestcallsPredicatesTestcallsQueryStateTestcallsSelectCompilerTestcallsWriteCompilerTestcallsAnalyzerTestcallsCatalogIndexTestcallsCatalogStatisticsTestcallsHtmlReporterTestcallsClassPageTest::testRenderIsWrittenExactlycallsFileIndexPageTest::testRenderIsWrittenExactlycallsFilePageTest::testRenderIsWrittenExactlycallsFindingPageTest::testRenderIsWrittenExactlycallsNamespacePageTest::testRenderIsWrittenExactlycallsOverviewPageTest::testRenderIsWrittenExactlycallsStatementIndexPageTest::testRenderIsWrittenExactlycallsStatementPageTest::testRenderIsWrittenExactlycallsStatementPageTest::testRenderOfACallNothingWasReadFromIsWrittenExactlycallsTableIndexPageTest::testRenderIsWrittenExactlycallsTablePageTest::testRenderIsWrittenExactlycallsPageShellTest::testRenderIsWrittenExactlycallsReportSiteTestcallsSearchIndexTestcallsSourceCodeTestcallsSqlHighlighterTest::testInlineWritesTheStatementOnOneLinecallsSqlHighlighterTest::testRenderMarksTheResolvedRunsAndTheGapsBetweenThemcallsStatementListTest::testFacetsIsWrittenExactlycallsStatementRowTestcallsJsonReporterTestcallsTextReporterTestcalls
Relations§
Instantiated in 5
- new SqlCatalog\Core\Text\TextGeneralization::mergeResolved() packages/sql-catalog/src/Core/Text/TextGeneralization.php:77
- new SqlCatalog\Core\Text\TextGeneralization::mergeResolved() packages/sql-catalog/src/Core/Text/TextGeneralization.php:79
- new SqlCatalog\Core\Text\TextGeneralization::rebuild() packages/sql-catalog/src/Core/Text/TextGeneralization.php:201
- new SqlCatalog\Core\Text\TextPattern::fromText() packages/sql-catalog/src/Core/Text/TextPattern.php:38
- new SqlCatalog\Core\Text\TextPattern::fromSegments() packages/sql-catalog/src/Core/Text/TextPattern.php:63
Constant reads 1
Type checks 6
- instanceof SqlCatalog\Core\Analysis\BuiltinCallModel::formatPattern() packages/sql-catalog/src/Core/Analysis/BuiltinCallModel.php:127
- instanceof SqlCatalog\Core\Catalog\StatementPart::of() packages/sql-catalog/src/Core/Catalog/StatementPart.php:51
- instanceof SqlCatalog\Core\Text\TextGeneralization::atoms() packages/sql-catalog/src/Core/Text/TextGeneralization.php:123
- instanceof SqlCatalog\Core\Text\TextPattern::fromSegments() packages/sql-catalog/src/Core/Text/TextPattern.php:59
- instanceof SqlCatalog\Core\Text\TextPattern::fromSegments() packages/sql-catalog/src/Core/Text/TextPattern.php:62
- instanceof SqlCatalog\Core\Text\TextPattern::text() packages/sql-catalog/src/Core/Text/TextPattern.php:95