feat(demo): add story 1 — Sorano: Rock and Time

This commit is contained in:
2026-06-20 21:19:57 +02:00
parent 42ed59a6b3
commit 8f87155c1d
5508 changed files with 1595740 additions and 124 deletions
@@ -0,0 +1,20 @@
<?php
namespace SourceSpan;
interface FileSpan extends SourceSpanWithContext
{
public function getFile(): SourceFile;
public function getStart(): FileLocation;
public function getEnd(): FileLocation;
public function expand(FileSpan $other): FileSpan;
/**
* Return a span from $start bytes (inclusive) to $end bytes
* (exclusive) after the beginning of this span
*/
public function subspan(int $start, ?int $end = null): FileSpan;
}