| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.backend.platform_selector.token; | |
| 6 | |
| 7 import 'package:source_span/source_span.dart'; | 5 import 'package:source_span/source_span.dart'; |
| 8 | 6 |
| 9 /// A token in a platform selector. | 7 /// A token in a platform selector. |
| 10 class Token { | 8 class Token { |
| 11 /// The type of the token. | 9 /// The type of the token. |
| 12 final TokenType type; | 10 final TokenType type; |
| 13 | 11 |
| 14 /// The span indicating where this token came from. | 12 /// The span indicating where this token came from. |
| 15 /// | 13 /// |
| 16 /// This is a [FileSpan] because the tokens are parsed from a single | 14 /// This is a [FileSpan] because the tokens are parsed from a single |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 /// The end of the selector. | 61 /// The end of the selector. |
| 64 static const endOfFile = const TokenType._("end of file"); | 62 static const endOfFile = const TokenType._("end of file"); |
| 65 | 63 |
| 66 /// The name of the token type. | 64 /// The name of the token type. |
| 67 final String name; | 65 final String name; |
| 68 | 66 |
| 69 const TokenType._(this.name); | 67 const TokenType._(this.name); |
| 70 | 68 |
| 71 String toString() => name; | 69 String toString() => name; |
| 72 } | 70 } |
| OLD | NEW |