| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 6 import 'package:analyzer/dart/ast/token.dart' as analyzer; | 6 import 'package:analyzer/dart/ast/token.dart' as analyzer; |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/error/error.dart'; | 8 import 'package:analyzer/error/error.dart'; |
| 9 import 'package:analyzer/src/generated/parser.dart' as analyzer; | 9 import 'package:analyzer/src/generated/parser.dart' as analyzer; |
| 10 import 'package:analyzer/src/generated/utilities_dart.dart'; | 10 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 @failingTest | 1235 @failingTest |
| 1236 void test_parseCompilationUnit_builtIn_asFunctionName() { | 1236 void test_parseCompilationUnit_builtIn_asFunctionName() { |
| 1237 // TODO(paulberry,ahe): Fasta's parser is confused when one of the built-in | 1237 // TODO(paulberry,ahe): Fasta's parser is confused when one of the built-in |
| 1238 // identifiers `export`, `import`, `library`, `part`, or `typedef` appears | 1238 // identifiers `export`, `import`, `library`, `part`, or `typedef` appears |
| 1239 // as the name of a top level function with an implicit return type. | 1239 // as the name of a top level function with an implicit return type. |
| 1240 super.test_parseCompilationUnit_builtIn_asFunctionName(); | 1240 super.test_parseCompilationUnit_builtIn_asFunctionName(); |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 @override | 1243 @override |
| 1244 @failingTest | 1244 @failingTest |
| 1245 void test_parseCompilationUnit_empty() { | |
| 1246 // TODO(paulberry): No objects placed on stack | |
| 1247 super.test_parseCompilationUnit_empty(); | |
| 1248 } | |
| 1249 | |
| 1250 @override | |
| 1251 @failingTest | |
| 1252 void test_parseCompilationUnit_exportAsPrefix() { | 1245 void test_parseCompilationUnit_exportAsPrefix() { |
| 1253 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. | 1246 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. |
| 1254 super.test_parseCompilationUnit_exportAsPrefix(); | 1247 super.test_parseCompilationUnit_exportAsPrefix(); |
| 1255 } | 1248 } |
| 1256 | 1249 |
| 1257 @override | 1250 @override |
| 1258 @failingTest | 1251 @failingTest |
| 1259 void test_parseCompilationUnit_exportAsPrefix_parameterized() { | 1252 void test_parseCompilationUnit_exportAsPrefix_parameterized() { |
| 1260 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. | 1253 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. |
| 1261 super.test_parseCompilationUnit_exportAsPrefix_parameterized(); | 1254 super.test_parseCompilationUnit_exportAsPrefix_parameterized(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1292 | 1285 |
| 1293 @override | 1286 @override |
| 1294 @failingTest | 1287 @failingTest |
| 1295 void test_parseDirectives_complete() { | 1288 void test_parseDirectives_complete() { |
| 1296 // TODO(paulberry,ahe): Fasta doesn't support script tags yet. | 1289 // TODO(paulberry,ahe): Fasta doesn't support script tags yet. |
| 1297 super.test_parseDirectives_complete(); | 1290 super.test_parseDirectives_complete(); |
| 1298 } | 1291 } |
| 1299 | 1292 |
| 1300 @override | 1293 @override |
| 1301 @failingTest | 1294 @failingTest |
| 1302 void test_parseDirectives_empty() { | |
| 1303 // TODO(paulberry): No objects placed on stack | |
| 1304 super.test_parseDirectives_empty(); | |
| 1305 } | |
| 1306 | |
| 1307 @override | |
| 1308 @failingTest | |
| 1309 void test_parseDirectives_mixed() { | 1295 void test_parseDirectives_mixed() { |
| 1310 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to | 1296 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to |
| 1311 // stop parsing as soon as the first non-directive is encountered; this is | 1297 // stop parsing as soon as the first non-directive is encountered; this is |
| 1312 // useful for quickly traversing an import graph. Consider adding a similar | 1298 // useful for quickly traversing an import graph. Consider adding a similar |
| 1313 // ability to Fasta's parser. | 1299 // ability to Fasta's parser. |
| 1314 super.test_parseDirectives_mixed(); | 1300 super.test_parseDirectives_mixed(); |
| 1315 } | 1301 } |
| 1316 | 1302 |
| 1317 @override | 1303 @override |
| 1318 @failingTest | 1304 @failingTest |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { | 1428 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { |
| 1443 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); | 1429 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); |
| 1444 } | 1430 } |
| 1445 | 1431 |
| 1446 @override | 1432 @override |
| 1447 @failingTest | 1433 @failingTest |
| 1448 void test_parseTypeAlias_genericFunction_voidReturnType() { | 1434 void test_parseTypeAlias_genericFunction_voidReturnType() { |
| 1449 super.test_parseTypeAlias_genericFunction_voidReturnType(); | 1435 super.test_parseTypeAlias_genericFunction_voidReturnType(); |
| 1450 } | 1436 } |
| 1451 } | 1437 } |
| OLD | NEW |