| 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 library yaml.event; | |
| 6 | |
| 7 import 'package:source_span/source_span.dart'; | 5 import 'package:source_span/source_span.dart'; |
| 8 | 6 |
| 9 import 'style.dart'; | 7 import 'style.dart'; |
| 10 import 'yaml_document.dart'; | 8 import 'yaml_document.dart'; |
| 11 | 9 |
| 12 /// An event emitted by a [Parser]. | 10 /// An event emitted by a [Parser]. |
| 13 class Event { | 11 class Event { |
| 14 /// The event type. | 12 /// The event type. |
| 15 final EventType type; | 13 final EventType type; |
| 16 | 14 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 146 |
| 149 static const MAPPING_START = const EventType._("MAPPING_START"); | 147 static const MAPPING_START = const EventType._("MAPPING_START"); |
| 150 static const MAPPING_END = const EventType._("MAPPING_END"); | 148 static const MAPPING_END = const EventType._("MAPPING_END"); |
| 151 | 149 |
| 152 final String name; | 150 final String name; |
| 153 | 151 |
| 154 const EventType._(this.name); | 152 const EventType._(this.name); |
| 155 | 153 |
| 156 String toString() => name; | 154 String toString() => name; |
| 157 } | 155 } |
| OLD | NEW |