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

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

Issue 1392253002: Restructure the public API for server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 library services.correction.assist; 5 library services.correction.assist;
6 6
7 import 'package:analysis_server/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';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 12
13 /** 13 /**
14 * Compute and return the assists available at the given selection (described by 14 * Compute and return the assists available at the given selection (described by
15 * the [offset] and [length]) in the given [source]. The source was analyzed in 15 * the [offset] and [length]) in the given [source]. The source was analyzed in
16 * the given [context]. The [plugin] is used to get the list of assist 16 * the given [context]. The [plugin] is used to get the list of assist
17 * contributors. 17 * contributors.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 103 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
104 static const SURROUND_WITH_IF = 104 static const SURROUND_WITH_IF =
105 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 105 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
106 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 106 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
107 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 107 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
108 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 108 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
109 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 109 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
110 static const SURROUND_WITH_WHILE = 110 static const SURROUND_WITH_WHILE =
111 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 111 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
112 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698