Add text-based metadata header: /* TSDL
[babeltrace.git] / formats / ctf / metadata / ctf-test / tofix / ctf-path.txt
index a9c76a063816321b5e225b9fb4ea021bbf2ce90f..86a78743b6cabdbb6804d93ab8ff804fc1c70ff7 100644 (file)
@@ -1,3 +1,4 @@
+/* TSDL */
 typealias integer { size = 8; align = 8; signed = false; base = hex; } := uint8_t;
 typealias integer { size = 32; align = 8; signed = false; base = hex;  } := uint32_t;
 
@@ -45,5 +46,23 @@ event {
                enum select sel2;
        } str2;
         variant var2 <str2.sel2> b;
+
+       /*
+        * TODO: Deal with path name lookup conflict, e.g. if a field is
+        * named "stream", it conflicts with the stream dynamic scope.
+        * Local fields hide dynamic scopes.
+        */
+       struct {
+               enum select sel3
+       } stream;
+        variant var3 <stream.sel3> c;
+       /* But now the following lookup should fail: */
+       /* variant var4 <stream.event.header.a> d; */
+
+       /*
+        * TODO: support conflict-free local-scoped tags, starting with
+        * ".".
+        */
+       variant var5 <.stream.sel3> e;
     };
 };
This page took 0.024157 seconds and 4 git commands to generate.