Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/visitor.dart'; 9 import 'package:analyzer/dart/ast/visitor.dart';
9 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 11 import 'package:analyzer/dart/element/type.dart';
12 import 'package:analyzer/src/dart/ast/token.dart';
11 import 'package:analyzer/src/dart/ast/utilities.dart'; 13 import 'package:analyzer/src/dart/ast/utilities.dart';
12 import 'package:analyzer/src/dart/element/element.dart'; 14 import 'package:analyzer/src/dart/element/element.dart';
15 import 'package:analyzer/src/dart/scanner/reader.dart';
16 import 'package:analyzer/src/dart/scanner/scanner.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 17 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/error.dart'; 18 import 'package:analyzer/src/generated/error.dart';
15 import 'package:analyzer/src/generated/incremental_scanner.dart'; 19 import 'package:analyzer/src/generated/incremental_scanner.dart';
16 import 'package:analyzer/src/generated/parser.dart'; 20 import 'package:analyzer/src/generated/parser.dart';
17 import 'package:analyzer/src/generated/scanner.dart';
18 import 'package:analyzer/src/generated/source.dart' show Source; 21 import 'package:analyzer/src/generated/source.dart' show Source;
19 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 22 import 'package:analyzer/src/generated/testing/ast_factory.dart';
20 import 'package:analyzer/src/generated/testing/element_factory.dart'; 23 import 'package:analyzer/src/generated/testing/element_factory.dart';
21 import 'package:analyzer/src/generated/testing/token_factory.dart'; 24 import 'package:analyzer/src/generated/testing/token_factory.dart';
22 import 'package:analyzer/src/generated/utilities_dart.dart'; 25 import 'package:analyzer/src/generated/utilities_dart.dart';
23 import 'package:unittest/unittest.dart' hide Configuration; 26 import 'package:unittest/unittest.dart' hide Configuration;
24 27
25 import '../reflective_tests.dart'; 28 import '../reflective_tests.dart';
26 import '../utils.dart'; 29 import '../utils.dart';
27 import 'test_support.dart'; 30 import 'test_support.dart';
(...skipping 11508 matching lines...) Expand 10 before | Expand all | Expand 10 after
11536 new Scanner(null, new CharSequenceReader(source), listener); 11539 new Scanner(null, new CharSequenceReader(source), listener);
11537 Token tokenStream = scanner.tokenize(); 11540 Token tokenStream = scanner.tokenize();
11538 // 11541 //
11539 // Parse the source. 11542 // Parse the source.
11540 // 11543 //
11541 Parser parser = new Parser(null, listener); 11544 Parser parser = new Parser(null, listener);
11542 return invokeParserMethodImpl( 11545 return invokeParserMethodImpl(
11543 parser, methodName, <Object>[tokenStream], tokenStream) as Token; 11546 parser, methodName, <Object>[tokenStream], tokenStream) as Token;
11544 } 11547 }
11545 } 11548 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/incremental_scanner_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698