blob: f1c8b449de60a6799e5ab6fb6a28c5196c47d8d6 [file] [log] [blame]
// Copyright (c) 2019, 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.
// @dart = 2.9
import 'package:analysis_server/src/edit/fix/dartfix_info.dart';
import 'package:analysis_server/src/edit/fix/fix_code_task.dart';
import 'package:analysis_server/src/edit/fix/fix_error_task.dart';
import 'package:analysis_server/src/edit/fix/fix_lint_task.dart';
import 'package:analyzer/error/error.dart';
import 'package:analyzer/src/lint/linter.dart';
/// Fixes use this API to register tasks. See [DartFixInfo.setup].
abstract class DartFixRegistrar {
/// Register the specified task to analyze and fix problems.
void registerCodeTask(FixCodeTask task);
/// Register the specified task to fix the given error condition.
void registerErrorTask(ErrorCode errorCode, FixErrorTask task);
/// Register the specified task to fix the given lint.
void registerLintTask(LintRule ruleRegistry, FixLintTask task);
}