c219974ecf
Work towards https://github.com/dart-lang/sdk/issues/60635 Change-Id: I2c7d64a81bc214e64fbc3ac95cf1fe2363a6ebd0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/433242 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
16 lines
590 B
Dart
16 lines
590 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.
|
|
// TODO(srawlins): Rename to 'diagnostic'.
|
|
Diagnostic get error;
|
|
}
|