diff options
Diffstat (limited to 'hobgoblin/src/sourcetext.hob')
| -rw-r--r-- | hobgoblin/src/sourcetext.hob | 13 |
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; +} |
