| 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.token; |  | 
| 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 | 8 | 
| 11 /// A token emitted by a [Scanner]. | 9 /// A token emitted by a [Scanner]. | 
| 12 class Token { | 10 class Token { | 
| 13   /// The token type. | 11   /// The token type. | 
| 14   final TokenType type; | 12   final TokenType type; | 
| 15 | 13 | 
| 16   /// The span associated with the token. | 14   /// The span associated with the token. | 
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 139   static const ANCHOR = const TokenType._("ANCHOR"); | 137   static const ANCHOR = const TokenType._("ANCHOR"); | 
| 140   static const TAG = const TokenType._("TAG"); | 138   static const TAG = const TokenType._("TAG"); | 
| 141   static const SCALAR = const TokenType._("SCALAR"); | 139   static const SCALAR = const TokenType._("SCALAR"); | 
| 142 | 140 | 
| 143   final String name; | 141   final String name; | 
| 144 | 142 | 
| 145   const TokenType._(this.name); | 143   const TokenType._(this.name); | 
| 146 | 144 | 
| 147   String toString() => name; | 145   String toString() => name; | 
| 148 } | 146 } | 
| OLD | NEW | 
|---|