aboutsummaryrefslogtreecommitdiff
path: root/flatbuffers/sources.fbs
blob: 3b797d717ee055639252bcbac5057083e6c3b1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Sources;

union SourceValue {
  NullSource,
  RuntimeSource,
  FileFragmentSource,
}

table Source {
    value:SourceValue (required);
}

table NullSource {
}

table RuntimeSource {
}

table FileFragmentSource {
  source_text:SourceText;
  start_character_index:uint;
  end_character_index:uint;
}

table SourceText {
  name:string (required);
  contents:string (required);
}