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 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 ''', | 164 ''', |
165 'dart:html': ''' | 165 'dart:html': ''' |
166 library dart.html; | 166 library dart.html; |
167 class HtmlElement {} | 167 class HtmlElement {} |
168 ''', | 168 ''', |
169 'dart:math': ''' | 169 'dart:math': ''' |
170 library dart.math; | 170 library dart.math; |
171 class Random { | 171 class Random { |
172 bool nextBool() {} | 172 bool nextBool() {} |
173 } | 173 } |
| 174 num min(num x, num y) {} |
| 175 num max(num x, num y) {} |
174 ''', | 176 ''', |
175 }; | 177 }; |
OLD | NEW |