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

Unified Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 499073002: Make certain generated constructor parameters optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/analysis_server/lib/src/search/type_hierarchy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/generated_protocol.dart
diff --git a/pkg/analysis_server/lib/src/generated_protocol.dart b/pkg/analysis_server/lib/src/generated_protocol.dart
index 96e6b2edd3d22ceede57ceb07782ae971df31758..6314527bca4037d80f03eb38218576e5c20f1577 100644
--- a/pkg/analysis_server/lib/src/generated_protocol.dart
+++ b/pkg/analysis_server/lib/src/generated_protocol.dart
@@ -8194,7 +8194,11 @@ class SourceFileEdit implements HasToJson {
*/
List<SourceEdit> edits;
- SourceFileEdit(this.file, this.edits);
+ SourceFileEdit(this.file, {this.edits}) {
+ if (edits == null) {
+ edits = <SourceEdit>[];
+ }
+ }
factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
if (json == null) {
@@ -8213,7 +8217,7 @@ class SourceFileEdit implements HasToJson {
} else {
throw jsonDecoder.missingKey(jsonPath, "edits");
}
- return new SourceFileEdit(file, edits);
+ return new SourceFileEdit(file, edits: edits);
} else {
throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit");
}
@@ -8318,7 +8322,17 @@ class TypeHierarchyItem implements HasToJson {
*/
List<int> subclasses;
- TypeHierarchyItem(this.classElement, this.interfaces, this.mixins, this.subclasses, {this.displayName, this.memberElement, this.superclass});
+ TypeHierarchyItem(this.classElement, {this.displayName, this.memberElement, this.superclass, this.interfaces, this.mixins, this.subclasses}) {
+ if (interfaces == null) {
+ interfaces = <int>[];
+ }
+ if (mixins == null) {
+ mixins = <int>[];
+ }
+ if (subclasses == null) {
+ subclasses = <int>[];
+ }
+ }
factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
if (json == null) {
@@ -8361,7 +8375,7 @@ class TypeHierarchyItem implements HasToJson {
} else {
throw jsonDecoder.missingKey(jsonPath, "subclasses");
}
- return new TypeHierarchyItem(classElement, interfaces, mixins, subclasses, displayName: displayName, memberElement: memberElement, superclass: superclass);
+ return new TypeHierarchyItem(classElement, displayName: displayName, memberElement: memberElement, superclass: superclass, interfaces: interfaces, mixins: mixins, subclasses: subclasses);
} else {
throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem");
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/search/type_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698