Index: pkg/analyzer/test/src/context/mock_sdk.dart |
diff --git a/pkg/analyzer/test/src/context/mock_sdk.dart b/pkg/analyzer/test/src/context/mock_sdk.dart |
index 09fde808a8747960251d33759241a65be8156c4b..e5e00510ca4ac58ab2659df0c337d91ff29f6f99 100644 |
--- a/pkg/analyzer/test/src/context/mock_sdk.dart |
+++ b/pkg/analyzer/test/src/context/mock_sdk.dart |
@@ -30,10 +30,8 @@ const Map<String, LibraryInfo> libraries = const { |
const String sdkRoot = '/sdk'; |
-const _MockSdkLibrary _LIB_ASYNC = const _MockSdkLibrary( |
- 'dart:async', |
- '$sdkRoot/lib/async/async.dart', |
- ''' |
+const _MockSdkLibrary _LIB_ASYNC = |
+ const _MockSdkLibrary('dart:async', '$sdkRoot/lib/async/async.dart', ''' |
library dart.async; |
import 'dart:math'; |
@@ -62,9 +60,8 @@ abstract class Completer<T> { |
void completeError(Object error, [StackTrace stackTrace]); |
bool get isCompleted; |
} |
-''', |
- const <String, String>{ |
- '$sdkRoot/lib/async/stream.dart': r''' |
+''', const <String, String>{ |
+ '$sdkRoot/lib/async/stream.dart': r''' |
part of dart.async; |
abstract class Stream<T> { |
Future<T> get first; |
@@ -89,21 +86,17 @@ abstract class StreamSubscription<T> { |
abstract class StreamTransformer<S, T> {} |
''' |
- }); |
+}); |
const _MockSdkLibrary _LIB_COLLECTION = const _MockSdkLibrary( |
- 'dart:collection', |
- '$sdkRoot/lib/collection/collection.dart', |
- ''' |
+ 'dart:collection', '$sdkRoot/lib/collection/collection.dart', ''' |
library dart.collection; |
abstract class HashMap<K, V> implements Map<K, V> {} |
'''); |
const _MockSdkLibrary _LIB_CONVERT = const _MockSdkLibrary( |
- 'dart:convert', |
- '$sdkRoot/lib/convert/convert.dart', |
- ''' |
+ 'dart:convert', '$sdkRoot/lib/convert/convert.dart', ''' |
library dart.convert; |
import 'dart:async'; |
@@ -112,10 +105,8 @@ abstract class Converter<S, T> implements StreamTransformer {} |
class JsonDecoder extends Converter<String, Object> {} |
'''); |
-const _MockSdkLibrary _LIB_CORE = const _MockSdkLibrary( |
- 'dart:core', |
- '$sdkRoot/lib/core/core.dart', |
- ''' |
+const _MockSdkLibrary _LIB_CORE = |
+ const _MockSdkLibrary('dart:core', '$sdkRoot/lib/core/core.dart', ''' |
library dart.core; |
import 'dart:async'; |
@@ -316,8 +307,7 @@ const Object override = const _Override(); |
const _MockSdkLibrary _LIB_FOREIGN_HELPER = const _MockSdkLibrary( |
'dart:_foreign_helper', |
- '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart', |
- ''' |
+ '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart', ''' |
library dart._foreign_helper; |
JS(String typeDescription, String codeTemplate, |
@@ -326,17 +316,13 @@ JS(String typeDescription, String codeTemplate, |
'''); |
const _MockSdkLibrary _LIB_HTML_DART2JS = const _MockSdkLibrary( |
- 'dart:html', |
- '$sdkRoot/lib/html/dart2js/html_dart2js.dart', |
- ''' |
+ 'dart:html', '$sdkRoot/lib/html/dart2js/html_dart2js.dart', ''' |
library dart.html; |
class HtmlElement {} |
'''); |
const _MockSdkLibrary _LIB_HTML_DARTIUM = const _MockSdkLibrary( |
- 'dart:html', |
- '$sdkRoot/lib/html/dartium/html_dartium.dart', |
- ''' |
+ 'dart:html', '$sdkRoot/lib/html/dartium/html_dartium.dart', ''' |
library dart.dom.html; |
final HtmlDocument document; |
@@ -369,15 +355,12 @@ Element query(String relativeSelectors) => null; |
const _MockSdkLibrary _LIB_INTERCEPTORS = const _MockSdkLibrary( |
'dart:_interceptors', |
- '$sdkRoot/lib/_internal/js_runtime/lib/interceptors.dart', |
- ''' |
+ '$sdkRoot/lib/_internal/js_runtime/lib/interceptors.dart', ''' |
library dart._interceptors; |
'''); |
-const _MockSdkLibrary _LIB_MATH = const _MockSdkLibrary( |
- 'dart:math', |
- '$sdkRoot/lib/math/math.dart', |
- ''' |
+const _MockSdkLibrary _LIB_MATH = |
+ const _MockSdkLibrary('dart:math', '$sdkRoot/lib/math/math.dart', ''' |
library dart.math; |
const double E = 2.718281828459045; |