| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| library zxio; |
| |
| /// Table where all members are optional. |
| type TableWithAllOptional = table { |
| /// foo doc comment. |
| 1: foo uint16; |
| |
| /// bar doc comment. |
| 2: bar uint32; |
| }; |
| |
| /// Table where some members are required. |
| type TableWithSomeRequired = table { |
| /// foo doc comment. |
| 1: foo uint16; |
| |
| /// bar doc comment. This is required. |
| @required |
| 2: bar uint32; |
| }; |