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

Unified Diff: pkg/analysis_server/lib/src/edit/fix.dart

Issue 497393002: Make more use of generated code in analysis server. (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
Index: pkg/analysis_server/lib/src/edit/fix.dart
diff --git a/pkg/analysis_server/lib/src/edit/fix.dart b/pkg/analysis_server/lib/src/edit/fix.dart
deleted file mode 100644
index 9b502040b6df9a0b66bea70eaf7d72976951cffe..0000000000000000000000000000000000000000
--- a/pkg/analysis_server/lib/src/edit/fix.dart
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library edit.fix;
-
-import 'package:analysis_server/src/constants.dart';
-import 'package:analysis_server/src/protocol2.dart';
-import 'package:analysis_server/src/services/correction/change.dart';
-import 'package:analysis_server/src/services/correction/fix.dart';
-import 'package:analysis_server/src/services/json.dart';
-
-
-class ErrorFixes implements HasToJson {
- final AnalysisError error;
- final List<Change> fixes = <Change>[];
-
- ErrorFixes(this.error);
-
- void addFix(Fix fix) {
- Change change = fix.change;
- fixes.add(change);
- }
-
- @override
- Map<String, Object> toJson() {
- return {
- ERROR: error.toJson(),
- FIXES: objectToJson(fixes)
- };
- }
-
- @override
- String toString() => 'ErrorFixes(error=$error, fixes=$fixes)';
-}
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698