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 part of scanner; | |
6 | |
7 /** | 5 /** |
8 * An event generating parser of Dart programs. This parser expects | 6 * An event generating parser of Dart programs. This parser expects |
9 * all tokens in a linked list (aka a token stream). | 7 * all tokens in a linked list (aka a token stream). |
10 * | 8 * |
11 * The class [Scanner] is used to generate a token stream. See the | 9 * The class [Scanner] is used to generate a token stream. See the |
12 * file scanner.dart. | 10 * file scanner.dart. |
13 * | 11 * |
14 * Subclasses of the class [Listener] are used to listen to events. | 12 * Subclasses of the class [Listener] are used to listen to events. |
15 * | 13 * |
16 * Most methods of this class belong in one of two major categories: | 14 * Most methods of this class belong in one of two major categories: |
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 } | 2160 } |
2163 listener.handleContinueStatement(hasTarget, continueKeyword, token); | 2161 listener.handleContinueStatement(hasTarget, continueKeyword, token); |
2164 return expectSemicolon(token); | 2162 return expectSemicolon(token); |
2165 } | 2163 } |
2166 | 2164 |
2167 Token parseEmptyStatement(Token token) { | 2165 Token parseEmptyStatement(Token token) { |
2168 listener.handleEmptyStatement(token); | 2166 listener.handleEmptyStatement(token); |
2169 return expectSemicolon(token); | 2167 return expectSemicolon(token); |
2170 } | 2168 } |
2171 } | 2169 } |
OLD | NEW |