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

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

Issue 2361203004: Issue 27358. Reset AnalysisContext 'sourceFactory' and 'typeSystem' on analysis options change. (Closed)
Patch Set: Created 4 years, 2 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const Object deprecated = const Deprecated("next release"); 119 const Object deprecated = const Deprecated("next release");
120 120
121 class Iterator<E> { 121 class Iterator<E> {
122 bool moveNext(); 122 bool moveNext();
123 E get current; 123 E get current;
124 } 124 }
125 125
126 abstract class Iterable<E> { 126 abstract class Iterable<E> {
127 Iterator<E> get iterator; 127 Iterator<E> get iterator;
128 bool get isEmpty; 128 bool get isEmpty;
129 Iterable/*<R>*/ map/*<R>*/(/*=R*/ f(E e));
129 } 130 }
130 131
131 abstract class List<E> implements Iterable<E> { 132 abstract class List<E> implements Iterable<E> {
132 void add(E value); 133 void add(E value);
134 void addAll(Iterable<E> iterable) {}
133 E operator [](int index); 135 E operator [](int index);
134 void operator []=(int index, E value); 136 void operator []=(int index, E value);
135 Iterator<E> get iterator => null; 137 Iterator<E> get iterator => null;
136 void clear(); 138 void clear();
137 } 139 }
138 140
139 abstract class Map<K, V> extends Object { 141 abstract class Map<K, V> extends Object {
140 bool containsKey(Object key); 142 bool containsKey(Object key);
141 Iterable<K> get keys; 143 Iterable<K> get keys;
142 } 144 }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 bool get isInternal => shortName.startsWith('dart:_'); 391 bool get isInternal => shortName.startsWith('dart:_');
390 392
391 @override 393 @override
392 bool get isShared => throw unimplemented; 394 bool get isShared => throw unimplemented;
393 395
394 @override 396 @override
395 bool get isVmLibrary => throw unimplemented; 397 bool get isVmLibrary => throw unimplemented;
396 398
397 UnimplementedError get unimplemented => new UnimplementedError(); 399 UnimplementedError get unimplemented => new UnimplementedError();
398 } 400 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698