Index: pkg/analyzer/test/src/mock_sdk.dart |
diff --git a/pkg/analyzer/test/src/mock_sdk.dart b/pkg/analyzer/test/src/mock_sdk.dart |
index 1487f4ab0f915fb38a21fa95b6cedd2a08e09276..d4f6ac1193f037363911e10f7562804c7c7a4fc6 100644 |
--- a/pkg/analyzer/test/src/mock_sdk.dart |
+++ b/pkg/analyzer/test/src/mock_sdk.dart |
@@ -12,8 +12,10 @@ import 'package:analyzer/src/generated/sdk.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
class MockSdk implements DartSdk { |
- static const _MockSdkLibrary LIB_CORE = const _MockSdkLibrary('dart:core', |
- '/lib/core/core.dart', ''' |
+ static const _MockSdkLibrary LIB_CORE = const _MockSdkLibrary( |
+ 'dart:core', |
+ '/lib/core/core.dart', |
+ ''' |
library dart.core; |
import 'dart:async'; |
@@ -106,8 +108,10 @@ class _Override { |
const Object override = const _Override(); |
'''); |
- static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async', |
- '/lib/async/async.dart', ''' |
+ static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary( |
+ 'dart:async', |
+ '/lib/async/async.dart', |
+ ''' |
library dart.async; |
import 'dart:math'; |
@@ -123,14 +127,18 @@ abstract class StreamTransformer<S, T> {} |
'''); |
static const _MockSdkLibrary LIB_COLLECTION = const _MockSdkLibrary( |
- 'dart:collection', '/lib/collection/collection.dart', ''' |
+ 'dart:collection', |
+ '/lib/collection/collection.dart', |
+ ''' |
library dart.collection; |
abstract class HashMap<K, V> implements Map<K, V> {} |
'''); |
static const _MockSdkLibrary LIB_CONVERT = const _MockSdkLibrary( |
- 'dart:convert', '/lib/convert/convert.dart', ''' |
+ 'dart:convert', |
+ '/lib/convert/convert.dart', |
+ ''' |
library dart.convert; |
import 'dart:async'; |
@@ -139,8 +147,10 @@ abstract class Converter<S, T> implements StreamTransformer {} |
class JsonDecoder extends Converter<String, Object> {} |
'''); |
- static const _MockSdkLibrary LIB_MATH = const _MockSdkLibrary('dart:math', |
- '/lib/math/math.dart', ''' |
+ static const _MockSdkLibrary LIB_MATH = const _MockSdkLibrary( |
+ 'dart:math', |
+ '/lib/math/math.dart', |
+ ''' |
library dart.math; |
const double E = 2.718281828459045; |
const double PI = 3.1415926535897932; |
@@ -157,8 +167,10 @@ class Random { |
} |
'''); |
- static const _MockSdkLibrary LIB_HTML = const _MockSdkLibrary('dart:html', |
- '/lib/html/dartium/html_dartium.dart', ''' |
+ static const _MockSdkLibrary LIB_HTML = const _MockSdkLibrary( |
+ 'dart:html', |
+ '/lib/html/dartium/html_dartium.dart', |
+ ''' |
library dart.html; |
class HtmlElement {} |
'''); |