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

Unified Diff: pkg/analyzer/lib/src/generated/engine.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
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 649c2be4ad9c7d06a598f0b092d1b3bf648ad893..8800b43c54a1eff0116ef67ea162a6b41d8df0bf 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -6712,8 +6712,7 @@ abstract class CachePartition {
* [retentionPolicy] will be used to determine which pieces of data to remove
* from the cache.
*/
- CachePartition(this.context, int maxCacheSize, this._retentionPolicy) {
- this._maxCacheSize = maxCacheSize;
+ CachePartition(this.context, this._maxCacheSize, this._retentionPolicy) {
_recentlyUsed = new List<Source>();
}
@@ -7370,11 +7369,7 @@ class CycleBuilder_LibraryPair {
/**
* Initialize a newly created pair from the given [library] and [entryPairs].
*/
- CycleBuilder_LibraryPair(ResolvableLibrary library,
- List<CycleBuilder_SourceEntryPair> entryPairs) {
- this.library = library;
- this.entryPairs = entryPairs;
- }
+ CycleBuilder_LibraryPair(this.library, this.entryPairs);
}
/**
@@ -7396,10 +7391,7 @@ class CycleBuilder_SourceEntryPair {
/**
* Initialize a newly created pair from the given [source] and [entry].
*/
- CycleBuilder_SourceEntryPair(Source source, DartEntry entry) {
- this.source = source;
- this.entry = entry;
- }
+ CycleBuilder_SourceEntryPair(this.source, this.entry);
}
/**
@@ -8956,13 +8948,8 @@ class IncrementalAnalysisCache {
int _newLength = 0;
IncrementalAnalysisCache(this.librarySource, this.source, this.resolvedUnit,
- this.oldContents, String newContents, int offset, int oldLength,
- int newLength) {
- this._newContents = newContents;
- this._offset = offset;
- this._oldLength = oldLength;
- this._newLength = newLength;
- }
+ this.oldContents, this._newContents, this._offset, this._oldLength,
+ this._newLength);
/**
* Determine if the cache contains source changes that need to be analyzed
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698