| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.diet_listener; | 5 library fasta.diet_listener; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' show AsyncMarker; | 7 import 'package:kernel/ast.dart' show AsyncMarker; |
| 8 | 8 |
| 9 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; | 9 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void handleModifiers(int count) { | 101 void handleModifiers(int count) { |
| 102 debugEvent("Modifiers"); | 102 debugEvent("Modifiers"); |
| 103 } | 103 } |
| 104 | 104 |
| 105 @override | 105 @override |
| 106 void handleNoTypeArguments(Token token) { | 106 void handleNoTypeArguments(Token token) { |
| 107 debugEvent("NoTypeArguments"); | 107 debugEvent("NoTypeArguments"); |
| 108 } | 108 } |
| 109 | 109 |
| 110 @override | 110 @override |
| 111 void handleNoConstructorReferenceContinuationAfterTypeArguments(Token token) { |
| 112 debugEvent("NoConstructorReferenceContinuationAfterTypeArguments"); |
| 113 } |
| 114 |
| 115 @override |
| 111 void handleNoType(Token token) { | 116 void handleNoType(Token token) { |
| 112 debugEvent("NoType"); | 117 debugEvent("NoType"); |
| 113 } | 118 } |
| 114 | 119 |
| 115 @override | 120 @override |
| 116 void handleType(Token beginToken, Token endToken) { | 121 void handleType(Token beginToken, Token endToken) { |
| 117 debugEvent("Type"); | 122 debugEvent("Type"); |
| 118 discard(1); | 123 discard(1); |
| 119 } | 124 } |
| 120 | 125 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 bool get isTargetingDartVm { | 558 bool get isTargetingDartVm { |
| 554 // TODO(ahe): Find a more reliable way to check if this is the Dart VM. | 559 // TODO(ahe): Find a more reliable way to check if this is the Dart VM. |
| 555 return !coreTypes.containsLibrary("dart:_js_helper"); | 560 return !coreTypes.containsLibrary("dart:_js_helper"); |
| 556 } | 561 } |
| 557 | 562 |
| 558 @override | 563 @override |
| 559 void debugEvent(String name) { | 564 void debugEvent(String name) { |
| 560 // printEvent(name); | 565 // printEvent(name); |
| 561 } | 566 } |
| 562 } | 567 } |
| OLD | NEW |