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 parser; | 5 library parser; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
9 import 'dart:collection'; | 9 import 'dart:collection'; |
10 import 'dart:utf'; | 10 import 'dart:utf'; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 void endClassDeclaration(int interfacesCount, Token beginToken, | 223 void endClassDeclaration(int interfacesCount, Token beginToken, |
224 Token extendsKeyword, Token implementsKeyword, | 224 Token extendsKeyword, Token implementsKeyword, |
225 Token endToken) { | 225 Token endToken) { |
226 super.endClassDeclaration(interfacesCount, beginToken, | 226 super.endClassDeclaration(interfacesCount, beginToken, |
227 extendsKeyword, implementsKeyword, | 227 extendsKeyword, implementsKeyword, |
228 endToken); | 228 endToken); |
229 ClassNode node = popNode(); // Discard ClassNode and assert the type. | 229 ClassNode node = popNode(); // Discard ClassNode and assert the type. |
230 } | 230 } |
231 | 231 |
232 void endInterface(int supertypeCount, Token interfaceKeyword, | |
233 Token extendsKeyword, Token endToken) { | |
234 super.endInterface(supertypeCount, interfaceKeyword, extendsKeyword, | |
235 endToken); | |
236 ClassNode node = popNode(); // Discard ClassNode and assert the type. | |
237 } | |
238 | |
239 void endTopLevelFields(int count, Token beginToken, Token endToken) { | 232 void endTopLevelFields(int count, Token beginToken, Token endToken) { |
240 super.endTopLevelFields(count, beginToken, endToken); | 233 super.endTopLevelFields(count, beginToken, endToken); |
241 VariableDefinitions node = popNode(); // Discard node and assert the type. | 234 VariableDefinitions node = popNode(); // Discard node and assert the type. |
242 } | 235 } |
243 | 236 |
244 void endFunctionTypeAlias(Token typedefKeyword, Token endToken) { | 237 void endFunctionTypeAlias(Token typedefKeyword, Token endToken) { |
245 super.endFunctionTypeAlias(typedefKeyword, endToken); | 238 super.endFunctionTypeAlias(typedefKeyword, endToken); |
246 Typedef node = popNode(); // Discard Typedef and assert type type. | 239 Typedef node = popNode(); // Discard Typedef and assert type type. |
247 } | 240 } |
248 | 241 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 set text(String newText) { | 305 set text(String newText) { |
313 throw "not supported"; | 306 throw "not supported"; |
314 } | 307 } |
315 } | 308 } |
316 | 309 |
317 class Mock { | 310 class Mock { |
318 const Mock(); | 311 const Mock(); |
319 bool get useColors => true; | 312 bool get useColors => true; |
320 internalError(message) { throw message.toString(); } | 313 internalError(message) { throw message.toString(); } |
321 } | 314 } |
OLD | NEW |