| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Data structures representing an API definition, and visitor base classes | 6 * Data structures representing an API definition, and visitor base classes |
| 7 * for visiting those data structures. | 7 * for visiting those data structures. |
| 8 */ | 8 */ |
| 9 library api; | 9 library api; |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 T visitTypeReference(TypeReference typeReference); | 53 T visitTypeReference(TypeReference typeReference); |
| 54 | 54 |
| 55 T visitTypeUnion(TypeUnion typeUnion); | 55 T visitTypeUnion(TypeUnion typeUnion); |
| 56 } | 56 } |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * Definition of a single domain. | 59 * Definition of a single domain. |
| 60 */ | 60 */ |
| 61 class Domain extends ApiNode { | 61 class Domain extends ApiNode { |
| 62 final String name; | 62 final String name; |
| 63 final bool experimental; |
| 63 final List<Request> requests; | 64 final List<Request> requests; |
| 64 final List<Notification> notifications; | 65 final List<Notification> notifications; |
| 65 | 66 |
| 66 Domain(this.name, this.requests, this.notifications, dom.Element html) | 67 Domain(this.name, this.experimental, this.requests, this.notifications, |
| 68 dom.Element html) |
| 67 : super(html); | 69 : super(html); |
| 68 } | 70 } |
| 69 | 71 |
| 70 /** | 72 /** |
| 71 * API visitor that visits the entire API hierarchically by default. | 73 * API visitor that visits the entire API hierarchically by default. |
| 72 */ | 74 */ |
| 73 class HierarchicalApiVisitor extends ApiVisitor { | 75 class HierarchicalApiVisitor extends ApiVisitor { |
| 74 /** | 76 /** |
| 75 * The API to visit. | 77 * The API to visit. |
| 76 */ | 78 */ |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 482 |
| 481 /** | 483 /** |
| 482 * The field that is used to disambiguate this union | 484 * The field that is used to disambiguate this union |
| 483 */ | 485 */ |
| 484 final String field; | 486 final String field; |
| 485 | 487 |
| 486 TypeUnion(this.choices, this.field, dom.Element html) : super(html); | 488 TypeUnion(this.choices, this.field, dom.Element html) : super(html); |
| 487 | 489 |
| 488 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this); | 490 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this); |
| 489 } | 491 } |
| OLD | NEW |