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

Side by Side Diff: pkg/analysis_server/test/mock_sdk.dart

Issue 2827863003: Revert "New Lint quick-fix: prefer_collection_literals (#29378)" (Closed)
Patch Set: Created 3 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 testing.mock_sdk; 5 library testing.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/context.dart'; 9 import 'package:analyzer/src/context/context.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 abstract class StreamTransformer<S, T> {} 193 abstract class StreamTransformer<S, T> {}
194 '''); 194 ''');
195 195
196 static const MockSdkLibrary LIB_COLLECTION = const MockSdkLibrary( 196 static const MockSdkLibrary LIB_COLLECTION = const MockSdkLibrary(
197 'dart:collection', 197 'dart:collection',
198 '/lib/collection/collection.dart', 198 '/lib/collection/collection.dart',
199 ''' 199 '''
200 library dart.collection; 200 library dart.collection;
201 201
202 abstract class HashMap<K, V> implements Map<K, V> {} 202 abstract class HashMap<K, V> implements Map<K, V> {}
203 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {}
204 '''); 203 ''');
205 204
206 static const MockSdkLibrary LIB_CONVERT = const MockSdkLibrary( 205 static const MockSdkLibrary LIB_CONVERT = const MockSdkLibrary(
207 'dart:convert', 206 'dart:convert',
208 '/lib/convert/convert.dart', 207 '/lib/convert/convert.dart',
209 ''' 208 '''
210 library dart.convert; 209 library dart.convert;
211 210
212 import 'dart:async'; 211 import 'dart:async';
213 212
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 bool get isInternal => shortName.startsWith('dart:_'); 447 bool get isInternal => shortName.startsWith('dart:_');
449 448
450 @override 449 @override
451 bool get isShared => throw unimplemented; 450 bool get isShared => throw unimplemented;
452 451
453 @override 452 @override
454 bool get isVmLibrary => throw unimplemented; 453 bool get isVmLibrary => throw unimplemented;
455 454
456 UnimplementedError get unimplemented => new UnimplementedError(); 455 UnimplementedError get unimplemented => new UnimplementedError();
457 } 456 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698