OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of scanner; | 5 part of scanner; |
6 | 6 |
7 class PartialParser extends Parser { | 7 class PartialParser extends Parser { |
8 PartialParser(Listener listener) : super(listener); | 8 PartialParser(Listener listener) : super(listener); |
9 | 9 |
10 Token parseClassBody(Token token) => skipClassBody(token); | 10 Token parseClassBody(Token token) => skipClassBody(token); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 return token; | 157 return token; |
158 } | 158 } |
159 return listener.unexpected(token); | 159 return listener.unexpected(token); |
160 } | 160 } |
161 BeginGroupToken beginGroupToken = token; | 161 BeginGroupToken beginGroupToken = token; |
162 Token endToken = beginGroupToken.endGroup; | 162 Token endToken = beginGroupToken.endGroup; |
163 listener.endFormalParameters(0, token, endToken); | 163 listener.endFormalParameters(0, token, endToken); |
164 return endToken.next; | 164 return endToken.next; |
165 } | 165 } |
166 } | 166 } |
OLD | NEW |