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

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

Issue 1252773002: add test related to #264 and #228 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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/checker_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.dart_sdk; 8 library dev_compiler.src.dart_sdk;
9 9
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 class List<E> implements Iterable<E> { 149 class List<E> implements Iterable<E> {
150 List([int length]); 150 List([int length]);
151 List.filled(int length, E fill); 151 List.filled(int length, E fill);
152 } 152 }
153 class Map<K, V> { 153 class Map<K, V> {
154 Iterable<K> get keys {} 154 Iterable<K> get keys {}
155 } 155 }
156 ''', 156 ''',
157 'dart:async': ''' 157 'dart:async': '''
158 class Future<T> { 158 class Future<T> {
159 Future(computation()) {}
160 Future.value(T t) {}
159 Future then(callback) {} 161 Future then(callback) {}
160 } 162 }
161 class Stream<T> {} 163 class Stream<T> {}
162 ''', 164 ''',
163 'dart:html': ''' 165 'dart:html': '''
164 library dart.html; 166 library dart.html;
165 class HtmlElement {} 167 class HtmlElement {}
166 ''', 168 ''',
169 'dart:math': '''
170 library dart.math;
171 class Random {
172 bool nextBool() {}
173 }
174 ''',
167 }; 175 };
OLDNEW
« no previous file with comments | « no previous file | test/checker/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698