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

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

Issue 1076773002: do not suggest local functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 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 | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void clear(); 93 void clear();
94 } 94 }
95 95
96 abstract class Map<K, V> extends Object { 96 abstract class Map<K, V> extends Object {
97 Iterable<K> get keys; 97 Iterable<K> get keys;
98 } 98 }
99 99
100 external bool identical(Object a, Object b); 100 external bool identical(Object a, Object b);
101 101
102 void print(Object object) {} 102 void print(Object object) {}
103
104 class Uri {
105 static List<int> parseIPv6Address(String host, [int start = 0, int end]) {
106 int parseHex(int start, int end) {
107 return 0;
108 }
109 return null;
110 }
111 }
103 '''); 112 ''');
104 113
105 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async', 114 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async',
106 '/lib/async/async.dart', ''' 115 '/lib/async/async.dart', '''
107 library dart.async; 116 library dart.async;
108 117
109 import 'dart:math'; 118 import 'dart:math';
110 119
111 class Future<T> { 120 class Future<T> {
112 factory Future(computation()) => null; 121 factory Future(computation()) => null;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 bool get isInternal => shortName.startsWith('dart:_'); 322 bool get isInternal => shortName.startsWith('dart:_');
314 323
315 @override 324 @override
316 bool get isShared => throw unimplemented; 325 bool get isShared => throw unimplemented;
317 326
318 @override 327 @override
319 bool get isVmLibrary => throw unimplemented; 328 bool get isVmLibrary => throw unimplemented;
320 329
321 UnimplementedError get unimplemented => new UnimplementedError(); 330 UnimplementedError get unimplemented => new UnimplementedError();
322 } 331 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698