| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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 servicec.listener; | 5 library servicec.listener; |
| 6 | 6 |
| 7 import 'package:compiler/src/scanner/scannerlib.dart' show | 7 import 'package:compiler/src/tokens/token.dart' show |
| 8 ErrorToken, | 8 ErrorToken, |
| 9 Token; | 9 Token; |
| 10 | 10 |
| 11 import 'errors.dart' show | 11 import 'errors.dart' show |
| 12 ErrorTag; | 12 ErrorTag; |
| 13 | 13 |
| 14 /// Identity listener: methods just propagate the argument. | 14 /// Identity listener: methods just propagate the argument. |
| 15 abstract class Listener { | 15 abstract class Listener { |
| 16 Token beginCompilationUnit(Token tokens) { | 16 Token beginCompilationUnit(Token tokens) { |
| 17 return tokens; | 17 return tokens; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 Token expectedType(Token tokens) { | 269 Token expectedType(Token tokens) { |
| 270 log("error: $tokens is not a type"); | 270 log("error: $tokens is not a type"); |
| 271 return debugSubject.expectedType(tokens); | 271 return debugSubject.expectedType(tokens); |
| 272 } | 272 } |
| 273 | 273 |
| 274 Token expected(String string, Token tokens) { | 274 Token expected(String string, Token tokens) { |
| 275 log("error: $tokens is not the symbol $string"); | 275 log("error: $tokens is not the symbol $string"); |
| 276 return debugSubject.expected(string, tokens); | 276 return debugSubject.expected(string, tokens); |
| 277 } | 277 } |
| 278 } | 278 } |
| OLD | NEW |