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.unhandled_listener; | 5 library fasta.unhandled_listener; |
6 | 6 |
7 import 'package:front_end/src/fasta/scanner/token.dart' show Token; | 7 import '../scanner/token.dart' show Token; |
8 | 8 |
9 import 'stack_listener.dart' show NullValue, StackListener; | 9 import 'stack_listener.dart' show NullValue, StackListener; |
10 | 10 |
11 export 'stack_listener.dart' show NullValue; | 11 export 'stack_listener.dart' show NullValue; |
12 | 12 |
13 // TODO(ahe): Get rid of this. | 13 // TODO(ahe): Get rid of this. |
14 enum Unhandled { | 14 enum Unhandled { |
15 ConditionalUri, | 15 ConditionalUri, |
16 ConditionalUris, | 16 ConditionalUris, |
17 DottedName, | 17 DottedName, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 push(popList(count) ?? NullValue.Combinators); | 67 push(popList(count) ?? NullValue.Combinators); |
68 } | 68 } |
69 | 69 |
70 @override | 70 @override |
71 void endDottedName(int count, Token firstIdentifier) { | 71 void endDottedName(int count, Token firstIdentifier) { |
72 debugEvent("DottedName"); | 72 debugEvent("DottedName"); |
73 popList(count); | 73 popList(count); |
74 push(Unhandled.DottedName); | 74 push(Unhandled.DottedName); |
75 } | 75 } |
76 } | 76 } |
OLD | NEW |