aboutsummaryrefslogtreecommitdiff
path: root/hobgoblin/src/sourcetext.hob
diff options
context:
space:
mode:
Diffstat (limited to 'hobgoblin/src/sourcetext.hob')
-rw-r--r--hobgoblin/src/sourcetext.hob13
1 files changed, 13 insertions, 0 deletions
diff --git a/hobgoblin/src/sourcetext.hob b/hobgoblin/src/sourcetext.hob
new file mode 100644
index 00000000..14754196
--- /dev/null
+++ b/hobgoblin/src/sourcetext.hob
@@ -0,0 +1,13 @@
+struct SourceRange {
+ field sourceText: Shared[SourceText];
+ field start: SourcePosition;
+ field end: SourcePosition;
+}
+
+native SourceText {
+}
+
+struct SourcePosition {
+ field sourceText: Shared[SourceText];
+ field characterIndex: Int32;
+}