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

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

Issue 706263003: Issue 20827. Add imports as needed the 'Add type annotation' Quick Assist. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/sdk.dart'; 10 import 'package:analyzer/src/generated/sdk.dart';
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void print(Object object) {} 83 void print(Object object) {}
84 '''); 84 ''');
85 85
86 static const _MockSdkLibrary LIB_ASYNC = 86 static const _MockSdkLibrary LIB_ASYNC =
87 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' 87 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', '''
88 library dart.async; 88 library dart.async;
89 89
90 import 'dart:math'; 90 import 'dart:math';
91 91
92 class Future { 92 class Future<T> {
93 static Future wait(List<Future> futures) => null; 93 static Future wait(List<Future> futures) => null;
94 } 94 }
95 95
96 class Stream<T> {} 96 class Stream<T> {}
97 '''); 97 ''');
98 98
99 static const _MockSdkLibrary LIB_MATH = 99 static const _MockSdkLibrary LIB_MATH =
100 const _MockSdkLibrary('dart:math', '/lib/math/math.dart', ''' 100 const _MockSdkLibrary('dart:math', '/lib/math/math.dart', '''
101 library dart.math; 101 library dart.math;
102 const double E = 2.718281828459045; 102 const double E = 2.718281828459045;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 bool get isInternal => throw unimplemented; 253 bool get isInternal => throw unimplemented;
254 254
255 @override 255 @override
256 bool get isShared => throw unimplemented; 256 bool get isShared => throw unimplemented;
257 257
258 @override 258 @override
259 bool get isVmLibrary => throw unimplemented; 259 bool get isVmLibrary => throw unimplemented;
260 260
261 UnimplementedError get unimplemented => new UnimplementedError(); 261 UnimplementedError get unimplemented => new UnimplementedError();
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698