PY-46623 Refactor PyKnownDecorator and related classes to be extendable

PyKnownDecorator is now a class instead of an enum, allowing extension to create new instances

GitOrigin-RevId: 846617f68e559f7f77af15a999f837391ac3090e
This commit is contained in:
evgeny.bovykin
2025-03-06 09:29:08 +01:00
committed by intellij-monorepo-bot
parent 3df8d77318
commit bf6e4735b6
17 changed files with 371 additions and 201 deletions

View File

@@ -1,13 +0,0 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.psi;
import com.intellij.openapi.extensions.ExtensionPointName;
import org.jetbrains.annotations.Nullable;
public interface PyKnownDecoratorProvider {
ExtensionPointName<PyKnownDecoratorProvider> EP_NAME = ExtensionPointName.create("Pythonid.knownDecoratorProvider");
@Nullable
String toKnownDecorator(String decoratorName);
}