
package vgrechka.phizdetsidea.phizdets.psi;

import com.intellij.psi.StubBasedPsiElement;
import vgrechka.phizdetsidea.phizdets.psi.stubs.PyDecoratorListStub;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * A list of function decorators.
 * @author dcheryasov
 */
public interface PyDecoratorList extends PyElement, StubBasedPsiElement<PyDecoratorListStub> {
  /**
   * @return decorators of function, in order of declaration (outermost first).
   */
  @NotNull
  PyDecorator[] getDecorators();

  @Nullable
  PyDecorator findDecorator(String name);
}
