Files
sdk/pkg/analysis_server_plugin/lib/registry.dart
T
Sam Rawlins b08eab360c DAS plugins: Fix parameter type of registerFixForRule
Fixes https://github.com/dart-lang/sdk/issues/61928

Change-Id: Ibdd63ebe9d70217e8699546d916826480bdfd3f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/460901
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2025-11-10 13:25:11 -08:00

23 lines
978 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/analysis_rule/rule_context.dart';
abstract class PluginRegistry {
/// 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);
/// Registers this [rule] with the analyzer's rule registry.
void registerLintRule(AbstractAnalysisRule rule);
/// Registers this [rule] with the analyzer's rule registry.
void registerWarningRule(AbstractAnalysisRule rule);
}