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

Side by Side Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 1890973002: Clean up hints after a new hint was introduced (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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.src.context.mock_sdk; 5 library analyzer.test.src.context.mock_sdk;
6 6
7 import 'package:analyzer/file_system/file_system.dart' as resource; 7 import 'package:analyzer/file_system/file_system.dart' as resource;
8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
9 import 'package:analyzer/src/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/context/context.dart'; 10 import 'package:analyzer/src/context/context.dart';
11 import 'package:analyzer/src/generated/engine.dart' 11 import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine;
12 show AnalysisEngine, ChangeSet;
13 import 'package:analyzer/src/generated/sdk.dart'; 12 import 'package:analyzer/src/generated/sdk.dart';
14 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
15 14
16 const _MockSdkLibrary _LIB_ASYNC = const _MockSdkLibrary( 15 const _MockSdkLibrary _LIB_ASYNC = const _MockSdkLibrary(
17 'dart:async', 16 'dart:async',
18 '/lib/async/async.dart', 17 '/lib/async/async.dart',
19 ''' 18 '''
20 library dart.async; 19 library dart.async;
21 20
22 import 'dart:math'; 21 import 'dart:math';
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 407
409 @override 408 @override
410 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 409 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
411 if (factory == null) { 410 if (factory == null) {
412 return super.createCacheFromSourceFactory(factory); 411 return super.createCacheFromSourceFactory(factory);
413 } 412 }
414 return new AnalysisCache( 413 return new AnalysisCache(
415 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 414 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
416 } 415 }
417 } 416 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/checker.dart ('k') | pkg/analyzer_cli/lib/src/perf_report.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698