| OLD | NEW |
| 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; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
| 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 8 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| 11 import 'package:analyzer/exception/exception.dart'; | 9 import 'package:analyzer/exception/exception.dart'; |
| 12 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
| 13 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 14 | 12 |
| 15 /** | 13 /** |
| 16 * 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 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 151 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
| 154 static const SURROUND_WITH_IF = | 152 static const SURROUND_WITH_IF = |
| 155 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 153 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
| 156 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 154 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
| 157 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 155 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
| 158 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 156 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
| 159 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 157 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
| 160 static const SURROUND_WITH_WHILE = | 158 static const SURROUND_WITH_WHILE = |
| 161 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 159 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
| 162 } | 160 } |
| OLD | NEW |