03980b59ac
Bug: https://github.com/dart-lang/sdk/issues/62173 Change-Id: I09b26b99fa928822f76246d8c6380a7c9a2b0a1e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475080 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@google.com> Auto-Submit: Felipe Morschel <git@fmorschel.dev>
17 lines
751 B
Dart
17 lines
751 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:analysis_server_plugin/src/correction/fix_generators.dart';
|
|
import 'package:analyzer/error/error.dart';
|
|
import 'package:analyzer/src/lint/registry.dart';
|
|
|
|
abstract class PluginRegistry extends RegistryBase {
|
|
/// Registers this assist [generator] with the analyzer's rule registry.
|
|
void registerAssist(ProducerGenerator generator);
|
|
|
|
/// Registers this fix [generator] for the given lint [code] with the
|
|
/// analyzer's rule registry.
|
|
void registerFixForRule(DiagnosticCode code, ProducerGenerator generator);
|
|
}
|