| OLD | NEW |
| 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 ddc.src.checker.dart_sdk; | 8 library ddc.src.checker.dart_sdk; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 final String expires; | 133 final String expires; |
| 134 const Deprecated(this.expires); | 134 const Deprecated(this.expires); |
| 135 } | 135 } |
| 136 const Object deprecated = const Deprecated("next release"); | 136 const Object deprecated = const Deprecated("next release"); |
| 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]); |
| 145 List.filled(int length, E fill); |
| 146 } |
| 144 class Map<K, V> {} | 147 class Map<K, V> {} |
| 145 ''', | 148 ''', |
| 146 'dart:async': ''' | 149 'dart:async': ''' |
| 147 class Future<T> { | 150 class Future<T> { |
| 148 Future then(callback) {} | 151 Future then(callback) {} |
| 149 } | 152 } |
| 150 class Stream<T> {} | 153 class Stream<T> {} |
| 151 ''', | 154 ''', |
| 152 'dart:html': ''' | 155 'dart:html': ''' |
| 153 library dart.html; | 156 library dart.html; |
| 154 class HtmlElement {} | 157 class HtmlElement {} |
| 155 ''', | 158 ''', |
| 156 }; | 159 }; |
| OLD | NEW |