summaryrefslogtreecommitdiff
path: root/reflection/reflection.fbs
diff options
context:
space:
mode:
Diffstat (limited to 'reflection/reflection.fbs')
-rw-r--r--reflection/reflection.fbs11
1 files changed, 10 insertions, 1 deletions
diff --git a/reflection/reflection.fbs b/reflection/reflection.fbs
index c80f3567..50724710 100644
--- a/reflection/reflection.fbs
+++ b/reflection/reflection.fbs
@@ -60,6 +60,8 @@ table Enum {
underlying_type:Type (required);
attributes:[KeyValue];
documentation:[string];
+ /// File that this Enum is declared in.
+ declaration_file: string;
}
table Field {
@@ -85,6 +87,8 @@ table Object { // Used for both tables and structs.
bytesize:int; // For structs.
attributes:[KeyValue];
documentation:[string];
+ /// File that this Object is declared in.
+ declaration_file: string;
}
table RPCCall {
@@ -100,9 +104,11 @@ table Service {
calls:[RPCCall];
attributes:[KeyValue];
documentation:[string];
+ /// File that this Service is declared in.
+ declaration_file: string;
}
-// New schema language features that are not supported by old code generators.
+/// New schema language features that are not supported by old code generators.
enum AdvancedFeatures : ulong (bit_flags) {
AdvancedArrayFeatures,
AdvancedUnionFeatures,
@@ -118,6 +124,9 @@ table Schema {
root_table:Object;
services:[Service]; // Sorted.
advanced_features:AdvancedFeatures;
+ /// All the files used in this compilation. Files are relative to where
+ /// flatc was invoked.
+ fbs_files:[string];
}
root_type Schema;