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

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

Issue 1834423002: Sort the files in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 'dart:async';
8
7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart';
8 import 'package:analysis_server/src/plugin/server_plugin.dart'; 10 import 'package:analysis_server/src/plugin/server_plugin.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_engine.dart'; 12 import 'package:analyzer/src/generated/java_engine.dart';
11 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
12 import 'dart:async';
13 14
14 /** 15 /**
15 * Compute and return the assists available at the given selection (described by 16 * Compute and return the assists available at the given selection (described by
16 * the [offset] and [length]) in the given [source]. The source was analyzed in 17 * the [offset] and [length]) in the given [source]. The source was analyzed in
17 * the given [analysisContext]. The [plugin] is used to get the list of assist 18 * the given [analysisContext]. The [plugin] is used to get the list of assist
18 * contributors. 19 * contributors.
19 */ 20 */
20 Future<List<Assist>> computeAssists( 21 Future<List<Assist>> computeAssists(
21 ServerPlugin plugin, 22 ServerPlugin plugin,
22 AnalysisContext analysisContext, 23 AnalysisContext analysisContext,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 139 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
139 static const SURROUND_WITH_IF = 140 static const SURROUND_WITH_IF =
140 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 141 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
141 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 142 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
142 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 143 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
143 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 144 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
144 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 145 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
145 static const SURROUND_WITH_WHILE = 146 static const SURROUND_WITH_WHILE =
146 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 147 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
147 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698