aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/scssphp/source-span/src/FileSpan.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/scssphp/source-span/src/FileSpan.php')
-rw-r--r--vendor/scssphp/source-span/src/FileSpan.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/scssphp/source-span/src/FileSpan.php b/vendor/scssphp/source-span/src/FileSpan.php
new file mode 100644
index 000000000..0ff936844
--- /dev/null
+++ b/vendor/scssphp/source-span/src/FileSpan.php
@@ -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;
+}