| 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/fasta/ast_builder.dart'; | 9 import 'package:analyzer/src/fasta/ast_builder.dart'; |
| 10 import 'package:analyzer/src/fasta/element_store.dart'; | 10 import 'package:analyzer/src/fasta/element_store.dart'; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 | 416 |
| 417 @override | 417 @override |
| 418 CompilationUnit parseCompilationUnit(String source, | 418 CompilationUnit parseCompilationUnit(String source, |
| 419 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { | 419 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { |
| 420 return _runParser(source, (parser) => parser.parseUnit, errorCodes) | 420 return _runParser(source, (parser) => parser.parseUnit, errorCodes) |
| 421 as CompilationUnit; | 421 as CompilationUnit; |
| 422 } | 422 } |
| 423 | 423 |
| 424 @override | 424 @override |
| 425 CompilationUnit parseCompilationUnitWithOptions(String source, | |
| 426 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { | |
| 427 // TODO(paulberry): implement parseCompilationUnitWithOptions | |
| 428 throw new UnimplementedError(); | |
| 429 } | |
| 430 | |
| 431 @override | |
| 432 ConditionalExpression parseConditionalExpression(String code) { | 425 ConditionalExpression parseConditionalExpression(String code) { |
| 433 return _parseExpression(code); | 426 return _parseExpression(code); |
| 434 } | 427 } |
| 435 | 428 |
| 436 @override | 429 @override |
| 437 Expression parseConstExpression(String code) { | 430 Expression parseConstExpression(String code) { |
| 438 return _parseExpression(code); | 431 return _parseExpression(code); |
| 439 } | 432 } |
| 440 | 433 |
| 441 @override | 434 @override |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 } | 1007 } |
| 1015 | 1008 |
| 1016 @override | 1009 @override |
| 1017 @failingTest | 1010 @failingTest |
| 1018 void test_parsePartOfDirective_uri() { | 1011 void test_parsePartOfDirective_uri() { |
| 1019 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by | 1012 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by |
| 1020 // Fasta. | 1013 // Fasta. |
| 1021 super.test_parsePartOfDirective_uri(); | 1014 super.test_parsePartOfDirective_uri(); |
| 1022 } | 1015 } |
| 1023 } | 1016 } |
| OLD | NEW |