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

Side by Side Diff: lib/src/checker/dart_sdk.dart

Issue 1051523002: Update mock sdk to fix test (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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
« no previous file with comments | « no previous file | test/checker/inferred_type_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This 5 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This
6 /// includes logic to determine where the sdk is located in the filesystem, and 6 /// includes logic to determine where the sdk is located in the filesystem, and
7 /// definitions to provide mock sdks. 7 /// definitions to provide mock sdks.
8 library dev_compiler.src.checker.dart_sdk; 8 library dev_compiler.src.checker.dart_sdk;
9 9
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 class _Override { const _Override(); } 137 class _Override { const _Override(); }
138 const Object override = const _Override(); 138 const Object override = const _Override();
139 class _Proxy { const _Proxy(); } 139 class _Proxy { const _Proxy(); }
140 const Object proxy = const _Proxy(); 140 const Object proxy = const _Proxy();
141 141
142 class Iterable<E> {} 142 class Iterable<E> {}
143 class List<E> implements Iterable<E> { 143 class List<E> implements Iterable<E> {
144 List([int length]); 144 List([int length]);
145 List.filled(int length, E fill); 145 List.filled(int length, E fill);
146 } 146 }
147 class Map<K, V> {} 147 class Map<K, V> {
148 Iterable<K> get keys {}
149 }
148 ''', 150 ''',
149 'dart:async': ''' 151 'dart:async': '''
150 class Future<T> { 152 class Future<T> {
151 Future then(callback) {} 153 Future then(callback) {}
152 } 154 }
153 class Stream<T> {} 155 class Stream<T> {}
154 ''', 156 ''',
155 'dart:html': ''' 157 'dart:html': '''
156 library dart.html; 158 library dart.html;
157 class HtmlElement {} 159 class HtmlElement {}
158 ''', 160 ''',
159 }; 161 };
OLDNEW
« no previous file with comments | « no previous file | test/checker/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698