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

Side by Side Diff: pkg/analyzer/test/utils.dart

Issue 1524893002: Fix imports within the analyzer package (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.utils; 5 library analyzer.test.utils;
6 6
7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/type.dart';
7 import 'package:analyzer/src/generated/ast.dart'; 9 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/java_io.dart'; 10 import 'package:analyzer/src/generated/java_io.dart';
10 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; 11 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider;
11 import 'package:path/path.dart' as path; 12 import 'package:path/path.dart' as path;
12 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
13 14
14 void initializeTestEnvironment() { 15 void initializeTestEnvironment() {
15 groupSep = ' | '; 16 groupSep = ' | ';
16 JavaFile.pathContext = path.posix; 17 JavaFile.pathContext = path.posix;
17 } 18 }
18 19
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 Asserter<DartType> isType(DartType argument) => (DartType t) { 295 Asserter<DartType> isType(DartType argument) => (DartType t) {
295 expect(t, same(argument)); 296 expect(t, same(argument));
296 }; 297 };
297 298
298 /** 299 /**
299 * Given a type, produce an assertion that a type has the same element. 300 * Given a type, produce an assertion that a type has the same element.
300 */ 301 */
301 Asserter<DartType> sameElement(DartType elementType) => 302 Asserter<DartType> sameElement(DartType elementType) =>
302 hasElement(elementType.element); 303 hasElement(elementType.element);
303 } 304 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/task/strong_mode_test.dart ('k') | pkg/analyzer/tool/task_dependency_graph/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698