| 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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1249 |
| 1250 @override | 1250 @override |
| 1251 @failingTest | 1251 @failingTest |
| 1252 void test_parseCompilationUnit_exportAsPrefix_parameterized() { | 1252 void test_parseCompilationUnit_exportAsPrefix_parameterized() { |
| 1253 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. | 1253 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. |
| 1254 super.test_parseCompilationUnit_exportAsPrefix_parameterized(); | 1254 super.test_parseCompilationUnit_exportAsPrefix_parameterized(); |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 @override | 1257 @override |
| 1258 @failingTest | 1258 @failingTest |
| 1259 void test_parseCompilationUnit_script() { | |
| 1260 // TODO(paulberry): No objects placed on stack | |
| 1261 super.test_parseCompilationUnit_script(); | |
| 1262 } | |
| 1263 | |
| 1264 @override | |
| 1265 @failingTest | |
| 1266 void test_parseCompilationUnit_typedefAsPrefix() { | 1259 void test_parseCompilationUnit_typedefAsPrefix() { |
| 1267 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. | 1260 // TODO(paulberry): As of commit 5de9108 this syntax is invalid. |
| 1268 super.test_parseCompilationUnit_typedefAsPrefix(); | 1261 super.test_parseCompilationUnit_typedefAsPrefix(); |
| 1269 } | 1262 } |
| 1270 | 1263 |
| 1271 @override | 1264 @override |
| 1272 @failingTest | 1265 @failingTest |
| 1273 void | 1266 void |
| 1274 test_parseCompilationUnitMember_function_generic_noReturnType_annotated()
{ | 1267 test_parseCompilationUnitMember_function_generic_noReturnType_annotated()
{ |
| 1275 // TODO(paulberry,ahe): Fasta doesn't appear to support annotated type | 1268 // TODO(paulberry,ahe): Fasta doesn't appear to support annotated type |
| 1276 // parameters. | 1269 // parameters. |
| 1277 super | 1270 super |
| 1278 .test_parseCompilationUnitMember_function_generic_noReturnType_annotated
(); | 1271 .test_parseCompilationUnitMember_function_generic_noReturnType_annotated
(); |
| 1279 } | 1272 } |
| 1280 | 1273 |
| 1281 void test_parseCompilationUnitMember_typedef() { | 1274 void test_parseCompilationUnitMember_typedef() { |
| 1282 // TODO(paulberry): Unhandled event: FunctionTypeAlias | 1275 // TODO(paulberry): Unhandled event: FunctionTypeAlias |
| 1283 super.test_parseCompilationUnitMember_typedef(); | 1276 super.test_parseCompilationUnitMember_typedef(); |
| 1284 } | 1277 } |
| 1285 | 1278 |
| 1286 @override | 1279 @override |
| 1287 @failingTest | 1280 @failingTest |
| 1288 void test_parseDirectives_complete() { | |
| 1289 // TODO(paulberry,ahe): Fasta doesn't support script tags yet. | |
| 1290 super.test_parseDirectives_complete(); | |
| 1291 } | |
| 1292 | |
| 1293 @override | |
| 1294 @failingTest | |
| 1295 void test_parseDirectives_mixed() { | 1281 void test_parseDirectives_mixed() { |
| 1296 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to | 1282 // TODO(paulberry,ahe): This test verifies the analyzer parser's ability to |
| 1297 // stop parsing as soon as the first non-directive is encountered; this is | 1283 // stop parsing as soon as the first non-directive is encountered; this is |
| 1298 // useful for quickly traversing an import graph. Consider adding a similar | 1284 // useful for quickly traversing an import graph. Consider adding a similar |
| 1299 // ability to Fasta's parser. | 1285 // ability to Fasta's parser. |
| 1300 super.test_parseDirectives_mixed(); | 1286 super.test_parseDirectives_mixed(); |
| 1301 } | 1287 } |
| 1302 | 1288 |
| 1303 @override | 1289 @override |
| 1304 @failingTest | 1290 @failingTest |
| 1305 void test_parseDirectives_script() { | |
| 1306 // TODO(paulberry): No objects placed on stack | |
| 1307 super.test_parseDirectives_script(); | |
| 1308 } | |
| 1309 | |
| 1310 @override | |
| 1311 @failingTest | |
| 1312 void test_parseFunctionDeclaration_function() { | 1291 void test_parseFunctionDeclaration_function() { |
| 1313 // TODO(paulberry): handle doc comments | 1292 // TODO(paulberry): handle doc comments |
| 1314 super.test_parseFunctionDeclaration_function(); | 1293 super.test_parseFunctionDeclaration_function(); |
| 1315 } | 1294 } |
| 1316 | 1295 |
| 1317 @override | 1296 @override |
| 1318 @failingTest | 1297 @failingTest |
| 1319 void test_parseFunctionDeclaration_functionWithTypeParameters() { | 1298 void test_parseFunctionDeclaration_functionWithTypeParameters() { |
| 1320 // TODO(paulberry): handle doc comments | 1299 // TODO(paulberry): handle doc comments |
| 1321 super.test_parseFunctionDeclaration_functionWithTypeParameters(); | 1300 super.test_parseFunctionDeclaration_functionWithTypeParameters(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { | 1407 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { |
| 1429 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); | 1408 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); |
| 1430 } | 1409 } |
| 1431 | 1410 |
| 1432 @override | 1411 @override |
| 1433 @failingTest | 1412 @failingTest |
| 1434 void test_parseTypeAlias_genericFunction_voidReturnType() { | 1413 void test_parseTypeAlias_genericFunction_voidReturnType() { |
| 1435 super.test_parseTypeAlias_genericFunction_voidReturnType(); | 1414 super.test_parseTypeAlias_genericFunction_voidReturnType(); |
| 1436 } | 1415 } |
| 1437 } | 1416 } |
| OLD | NEW |