Populate parser/ hierarchy
[yangtools.git] / parser / odlext-parser-support / src / test / resources / ctxref.yang
1 module foo {
2   namespace "foo";
3   prefix foo;
4
5   import yang-ext {
6     prefix ext;
7   }
8
9   list list {
10     key key;
11
12     leaf key {
13       type string;
14       ext:context-instance leaf-type;
15     }
16
17     ext:context-instance list-type;
18   }
19
20   grouping leaf-ref {
21     leaf-list leaf-ref {
22       type instance-identifier;
23       ext:context-reference leaf-type;
24     }
25   }
26
27   grouping list-ref {
28     leaf list-ref {
29       type instance-identifier;
30       ext:context-reference list-type;
31     }
32   }
33
34   identity leaf-type;
35
36   identity list-type;
37 }