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

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

Issue 1265453005: Code clean-up, mostly constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
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 81c8a88acf56e739df9505c8c9a0c77ffe18541b..2b4fc6e64ad3dc453ff06fbbba7f1e5e51347f46 100644
--- a/pkg/analyzer/lib/src/generated/sdk.dart
+++ b/pkg/analyzer/lib/src/generated/sdk.dart
@@ -303,7 +303,7 @@ class SdkLibraryImpl implements SdkLibrary {
* The short name of the library. This is the name used after 'dart:' in a
* URI.
*/
- String _shortName = null;
+ final String shortName;
/**
* The path to the file defining the library. The path is relative to the
@@ -337,9 +337,7 @@ class SdkLibraryImpl implements SdkLibrary {
* Initialize a newly created library to represent the library with the given
* [name].
*/
- SdkLibraryImpl(String name) {
- this._shortName = name;
- }
+ SdkLibraryImpl(this.shortName);
/**
* Set whether the library is documented.
@@ -373,9 +371,6 @@ class SdkLibraryImpl implements SdkLibrary {
@override
bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0;
- @override
- String get shortName => _shortName;
-
/**
* Record that this library can be compiled to JavaScript by dart2js.
*/
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698