Files
sdk/pkg/analysis_server_plugin/lib/edit/fix/fix_context.dart
T
Sam Rawlins 1029af6229 DAS plugins: Rename FixContext.error to .diagnostic
Work towards https://github.com/dart-lang/sdk/issues/60635

Change-Id: I2a789749393efa3688ad0cf6b0d0e93e97136492
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434540
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2025-06-16 10:28:53 -07:00

18 lines
617 B
Dart

// Copyright (c) 2024, 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 'package:analyzer/diagnostic/diagnostic.dart';
import 'package:analyzer_plugin/utilities/fixes/fixes.dart';
/// Provides context information for [FixContributor]s.
///
/// Clients may not extend, implement or mix-in this class.
abstract interface class FixContext {
/// The diagnostic to fix.
Diagnostic get diagnostic;
@Deprecated("Use 'diagnostic' instead")
Diagnostic get error;
}