Files
sdk/pkg/analysis_server/tool/lsp_spec/custom/dart_migrate.dart
T
Danny Tuppeny da6eab18cb [analysis_server] Extract custom protocol classes to their own files
No functional changes here, it just extracts definitions of custom protocol classes that are not trivial into their own files.

Change-Id: I0194a3074d280b6423dfae8b5e522ec536ce0dab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/504560
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-05-20 09:52:18 -07:00

38 lines
1.1 KiB
Dart

// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../meta_model.dart';
import '../utils.dart';
/// Classes that support `dart/workspace/migrate`.
final dartMigrateClasses = <LspEntity>[
interface('DartMigrateParams', [
field(
'uris',
type: 'DocumentUri',
array: true,
comment:
'The URIs of the directories (packages or workspaces) to migrate. '
'Individual file URIs are not supported.',
),
]),
interface('DartMigrateResult', [
field(
'summary',
type: 'String',
canBeNull: true,
comment:
'A summary of the migration results, detailing which fixes '
'succeeded, which fixes failed to be applied, and the new '
'SDK version constraint applied to the pubspec.yaml.',
),
field(
'edit',
type: 'WorkspaceEdit',
canBeNull: true,
comment: 'The edits to be applied to the workspace.',
),
]),
];