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

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

Issue 1466623002: Convert into block documentation comment assist. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/assist_internal.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library services.correction.assist; 5 library services.correction.assist;
6 6
7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; 7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart';
8 import 'package:analysis_server/src/plugin/server_plugin.dart'; 8 import 'package:analysis_server/src/plugin/server_plugin.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_engine.dart'; 10 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 29 matching lines...) Expand all
40 /** 40 /**
41 * An enumeration of possible assist kinds. 41 * An enumeration of possible assist kinds.
42 */ 42 */
43 class DartAssistKind { 43 class DartAssistKind {
44 static const ADD_PART_DIRECTIVE = 44 static const ADD_PART_DIRECTIVE =
45 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive"); 45 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive");
46 static const ADD_TYPE_ANNOTATION = 46 static const ADD_TYPE_ANNOTATION =
47 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation"); 47 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation");
48 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( 48 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind(
49 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); 49 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable");
50 static const CONVERT_DOCUMENTATION_INTO_BLOCK = const AssistKind(
51 'CONVERT_DOCUMENTATION_INTO_BLOCK',
52 30,
53 "Convert into block documentation comment");
50 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( 54 static const CONVERT_INTO_BLOCK_BODY = const AssistKind(
51 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); 55 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body");
52 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( 56 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind(
53 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); 57 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body");
54 static const CONVERT_INTO_FOR_INDEX = const AssistKind( 58 static const CONVERT_INTO_FOR_INDEX = const AssistKind(
55 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); 59 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop");
56 static const CONVERT_INTO_IS_NOT = 60 static const CONVERT_INTO_IS_NOT =
57 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); 61 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!");
58 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( 62 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind(
59 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); 63 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'");
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 107 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
104 static const SURROUND_WITH_IF = 108 static const SURROUND_WITH_IF =
105 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 109 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
106 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 110 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
107 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 111 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
108 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 112 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
109 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 113 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
110 static const SURROUND_WITH_WHILE = 114 static const SURROUND_WITH_WHILE =
111 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 115 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
112 } 116 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/assist_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698