OLD | NEW |
1 // Copyright (c) 2017, 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 import 'dart:collection'; | 9 import 'dart:collection'; |
10 | 10 |
11 import 'package:html/dom.dart' as dom; | 11 import 'package:html/dom.dart' as dom; |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 * The field that is used to disambiguate this union | 515 * The field that is used to disambiguate this union |
516 */ | 516 */ |
517 final String field; | 517 final String field; |
518 | 518 |
519 TypeUnion(this.choices, this.field, dom.Element html, {bool experimental}) | 519 TypeUnion(this.choices, this.field, dom.Element html, {bool experimental}) |
520 : super(html, experimental, false); | 520 : super(html, experimental, false); |
521 | 521 |
522 @override | 522 @override |
523 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this); | 523 accept(ApiVisitor visitor) => visitor.visitTypeUnion(this); |
524 } | 524 } |
OLD | NEW |