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.yaml_document; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 | 6 |
9 import 'package:source_span/source_span.dart'; | 7 import 'package:source_span/source_span.dart'; |
10 | 8 |
11 import 'yaml_node.dart'; | 9 import 'yaml_node.dart'; |
12 | 10 |
13 /// A YAML document, complete with metadata. | 11 /// A YAML document, complete with metadata. |
14 class YamlDocument { | 12 class YamlDocument { |
15 /// The contents of the document. | 13 /// The contents of the document. |
16 final YamlNode contents; | 14 final YamlNode contents; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 /// The handle for use in the document. | 56 /// The handle for use in the document. |
59 final String handle; | 57 final String handle; |
60 | 58 |
61 /// The prefix that the handle maps to. | 59 /// The prefix that the handle maps to. |
62 final String prefix; | 60 final String prefix; |
63 | 61 |
64 TagDirective(this.handle, this.prefix); | 62 TagDirective(this.handle, this.prefix); |
65 | 63 |
66 String toString() => "%TAG $handle $prefix"; | 64 String toString() => "%TAG $handle $prefix"; |
67 } | 65 } |
OLD | NEW |