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 engine.parser_test; | 5 library analyzer.test.generated.parser_test; |
6 | 6 |
7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
11 import 'package:analyzer/src/generated/incremental_scanner.dart'; | 11 import 'package:analyzer/src/generated/incremental_scanner.dart'; |
12 import 'package:analyzer/src/generated/parser.dart'; | 12 import 'package:analyzer/src/generated/parser.dart'; |
13 import 'package:analyzer/src/generated/scanner.dart'; | 13 import 'package:analyzer/src/generated/scanner.dart'; |
14 import 'package:analyzer/src/generated/source.dart' show Source; | 14 import 'package:analyzer/src/generated/source.dart' show Source; |
15 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 15 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
(...skipping 11276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11292 new Scanner(null, new CharSequenceReader(source), listener); | 11292 new Scanner(null, new CharSequenceReader(source), listener); |
11293 Token tokenStream = scanner.tokenize(); | 11293 Token tokenStream = scanner.tokenize(); |
11294 // | 11294 // |
11295 // Parse the source. | 11295 // Parse the source. |
11296 // | 11296 // |
11297 Parser parser = new Parser(null, listener); | 11297 Parser parser = new Parser(null, listener); |
11298 return invokeParserMethodImpl( | 11298 return invokeParserMethodImpl( |
11299 parser, methodName, <Object>[tokenStream], tokenStream) as Token; | 11299 parser, methodName, <Object>[tokenStream], tokenStream) as Token; |
11300 } | 11300 } |
11301 } | 11301 } |
OLD | NEW |