| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.parser.listener; | 5 library dart2js.parser.listener; |
| 6 | 6 |
| 7 import '../compiler.dart' show | 7 import '../compiler.dart' show |
| 8 Compiler; | 8 Compiler; |
| 9 import '../dart_types.dart' show DynamicType; | 9 import '../dart_types.dart' show DynamicType; |
| 10 import '../diagnostics/diagnostic_listener.dart'; | 10 import '../diagnostics/diagnostic_listener.dart'; |
| (...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2664 } | 2664 } |
| 2665 doParse(new Parser(listener)); | 2665 doParse(new Parser(listener)); |
| 2666 } on ParserError catch (e) { | 2666 } on ParserError catch (e) { |
| 2667 partial.hasParseError = true; | 2667 partial.hasParseError = true; |
| 2668 return new ErrorNode(element.position, e.reason); | 2668 return new ErrorNode(element.position, e.reason); |
| 2669 } | 2669 } |
| 2670 Node node = listener.popNode(); | 2670 Node node = listener.popNode(); |
| 2671 assert(listener.nodes.isEmpty); | 2671 assert(listener.nodes.isEmpty); |
| 2672 return node; | 2672 return node; |
| 2673 } | 2673 } |
| OLD | NEW |