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

Unified Diff: pkg/analyzer/lib/src/generated/sdk.dart

Issue 1691603002: Get rid of redundant MockSdk. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove strong mode's copy of mock SDK. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk.dart b/pkg/analyzer/lib/src/generated/sdk.dart
index f0e129287797b8dd0e7e1b9cadf8bff7c0877788..51c6ccccd47b8983ef56a73dd92779f88d7890b1 100644
--- a/pkg/analyzer/lib/src/generated/sdk.dart
+++ b/pkg/analyzer/lib/src/generated/sdk.dart
@@ -25,23 +25,23 @@ abstract class DartSdk {
/**
* The short name of the dart SDK 'async' library.
*/
- static final String DART_ASYNC = "dart:async";
+ static const String DART_ASYNC = "dart:async";
/**
* The short name of the dart SDK 'core' library.
*/
- static final String DART_CORE = "dart:core";
+ static const String DART_CORE = "dart:core";
/**
* The short name of the dart SDK 'html' library.
*/
- static final String DART_HTML = "dart:html";
+ static const String DART_HTML = "dart:html";
/**
* The version number that is returned when the real version number could not
* be determined.
*/
- static final String DEFAULT_VERSION = "0";
+ static const String DEFAULT_VERSION = "0";
/**
* Return the analysis context used for all of the sources in this [DartSdk].
@@ -280,7 +280,7 @@ class SdkLibrariesReader_LibraryBuilder extends RecursiveAstVisitor<Object> {
library.category =
convertCategories((expression as StringLiteral).stringValue);
} else if (name == _IMPLEMENTATION) {
- library.implementation = (expression as BooleanLiteral).value;
+ library._implementation = (expression as BooleanLiteral).value;
} else if (name == _DOCUMENTED) {
library.documented = (expression as BooleanLiteral).value;
} else if (name == _PLATFORMS) {
@@ -420,13 +420,6 @@ class SdkLibraryImpl implements SdkLibrary {
this._documented = documented;
}
- /**
- * Set whether the library is an implementation library.
- */
- void set implementation(bool implementation) {
- this._implementation = implementation;
- }
-
@override
bool get isDart2JsLibrary => (_platforms & DART2JS_PLATFORM) != 0;
@@ -437,7 +430,7 @@ class SdkLibraryImpl implements SdkLibrary {
bool get isImplementation => _implementation;
@override
- bool get isInternal => "Internal" == category;
+ bool get isInternal => category == "Internal";
@override
bool get isShared => category == "Shared";
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698