| 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 analyzer.src.dart.ast.token; | 5 library analyzer.src.dart.ast.token; |
| 6 | 6 |
| 7 import 'package:front_end/src/scanner/token.dart'; | |
| 8 | |
| 9 export 'package:front_end/src/scanner/token.dart' | 7 export 'package:front_end/src/scanner/token.dart' |
| 10 show | 8 show |
| 11 BeginToken, | 9 BeginToken, |
| 12 BeginTokenWithComment, | 10 BeginTokenWithComment, |
| 13 CommentToken, | 11 CommentToken, |
| 14 DocumentationCommentToken, | 12 DocumentationCommentToken, |
| 15 KeywordToken, | 13 KeywordToken, |
| 16 KeywordTokenWithComment, | 14 KeywordTokenWithComment, |
| 17 SimpleToken, | 15 SimpleToken, |
| 18 StringToken, | 16 StringToken, |
| 19 StringTokenWithComment, | 17 StringTokenWithComment, |
| 18 SyntheticKeywordToken, |
| 19 SyntheticStringToken, |
| 20 TokenClass, | 20 TokenClass, |
| 21 TokenWithComment; | 21 TokenWithComment; |
| 22 | |
| 23 /** | |
| 24 * A token whose value is independent of it's type. | |
| 25 */ | |
| 26 class SyntheticStringToken extends StringToken { | |
| 27 /** | |
| 28 * Initialize a newly created token to represent a token of the given [type] | |
| 29 * with the given [value] at the given [offset]. | |
| 30 */ | |
| 31 SyntheticStringToken(TokenType type, String value, int offset) | |
| 32 : super(type, value, offset); | |
| 33 | |
| 34 @override | |
| 35 bool get isSynthetic => true; | |
| 36 } | |
| OLD | NEW |