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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/assist.dart

Issue 2956353002: Add a mixin for assists similar to that for fixes (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; 5 import 'package:analysis_server/plugin/edit/assist/assist_core.dart';
6 import 'package:analyzer/src/dart/analysis/driver.dart'; 6 import 'package:analyzer/src/dart/analysis/driver.dart';
7 import 'package:analyzer/src/generated/source.dart'; 7 import 'package:analyzer/src/generated/source.dart';
8 import 'package:analyzer_plugin/utilities/assist/assist.dart';
8 9
9 /** 10 /**
10 * The implementation of [AssistContext]. 11 * The implementation of [AssistContext].
11 */ 12 */
12 class AssistContextImpl implements AssistContext { 13 class AssistContextImpl implements AssistContext {
13 @override 14 @override
14 final AnalysisDriver analysisDriver; 15 final AnalysisDriver analysisDriver;
15 16
16 @override 17 @override
17 final Source source; 18 final Source source;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 115 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
115 static const SURROUND_WITH_IF = 116 static const SURROUND_WITH_IF =
116 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 117 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
117 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 118 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
118 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 119 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
119 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 120 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
120 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 121 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
121 static const SURROUND_WITH_WHILE = 122 static const SURROUND_WITH_WHILE =
122 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 123 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
123 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698