OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.test.generated.parser_test; | 5 library analyzer.test.generated.parser_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/dart/ast/visitor.dart'; | 9 import 'package:analyzer/dart/ast/visitor.dart'; |
| 10 import 'package:analyzer/error/error.dart'; |
| 11 import 'package:analyzer/error/listener.dart'; |
10 import 'package:analyzer/src/dart/ast/token.dart'; | 12 import 'package:analyzer/src/dart/ast/token.dart'; |
11 import 'package:analyzer/src/dart/scanner/reader.dart'; | 13 import 'package:analyzer/src/dart/scanner/reader.dart'; |
12 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 14 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
13 import 'package:analyzer/src/generated/error.dart'; | |
14 import 'package:analyzer/src/generated/parser.dart'; | 15 import 'package:analyzer/src/generated/parser.dart'; |
15 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 16 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
16 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 17 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
17 import 'package:analyzer/src/generated/utilities_dart.dart'; | 18 import 'package:analyzer/src/generated/utilities_dart.dart'; |
18 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 19 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
19 import 'package:unittest/unittest.dart' hide Configuration; | 20 import 'package:unittest/unittest.dart' hide Configuration; |
20 | 21 |
21 import '../utils.dart'; | 22 import '../utils.dart'; |
22 import 'test_support.dart'; | 23 import 'test_support.dart'; |
23 | 24 |
(...skipping 10981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11005 new Scanner(null, new CharSequenceReader(source), listener); | 11006 new Scanner(null, new CharSequenceReader(source), listener); |
11006 Token tokenStream = scanner.tokenize(); | 11007 Token tokenStream = scanner.tokenize(); |
11007 // | 11008 // |
11008 // Parse the source. | 11009 // Parse the source. |
11009 // | 11010 // |
11010 Parser parser = new Parser(null, listener); | 11011 Parser parser = new Parser(null, listener); |
11011 return invokeParserMethodImpl( | 11012 return invokeParserMethodImpl( |
11012 parser, methodName, <Object>[tokenStream], tokenStream) as Token; | 11013 parser, methodName, <Object>[tokenStream], tokenStream) as Token; |
11013 } | 11014 } |
11014 } | 11015 } |
OLD | NEW |