mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* Add codegen test for namespaced unions * [Rust] Handle cross-namespace union use * [Rust] Test namespace handling * [Rust] Drop trailing whitespace in codegen * [Rust] Set flags in generate_code.bat to match .sh * [C#] Add additional namespace test file
26 lines
500 B
Plaintext
26 lines
500 B
Plaintext
include "namespace_test1.fbs";
|
|
|
|
namespace NamespaceA;
|
|
|
|
table TableInFirstNS
|
|
{
|
|
foo_table:NamespaceB.TableInNestedNS;
|
|
foo_enum:NamespaceB.EnumInNestedNS;
|
|
foo_union:NamespaceB.UnionInNestedNS;
|
|
foo_struct:NamespaceB.StructInNestedNS;
|
|
}
|
|
|
|
// Test switching namespaces inside a file.
|
|
namespace NamespaceC;
|
|
|
|
table TableInC {
|
|
refer_to_a1:NamespaceA.TableInFirstNS;
|
|
refer_to_a2:NamespaceA.SecondTableInA;
|
|
}
|
|
|
|
namespace NamespaceA;
|
|
|
|
table SecondTableInA {
|
|
refer_to_c:NamespaceC.TableInC;
|
|
}
|