[javadoc] Add interfaces for fragment reference PSI elements

IJ-MR-174748

GitOrigin-RevId: 0db4a62e4216d01f52e49dfbe68f94654709c097
This commit is contained in:
Louis Vignier
2025-09-17 19:25:19 +00:00
committed by intellij-monorepo-bot
parent c6cc5e8224
commit 3cf7c13a11
15 changed files with 54 additions and 33 deletions
@@ -0,0 +1,18 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.psi.javadoc;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.Nullable;
/**
* Represents the name of a fragment reference, for instance {@code my-id} in {@code Foo##my-id}.
*/
public interface PsiDocFragmentName extends PsiElement {
/**
* Returns the class that contains the fragment reference.
*/
@Nullable PsiClass getScope();
}
@@ -0,0 +1,17 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.psi.javadoc;
import com.intellij.psi.PsiClass;
import org.jetbrains.annotations.Nullable;
/**
* Represents a fragment reference, for instance {@code Foo##my-id}.
*/
public interface PsiDocFragmentRef extends PsiDocTagValue {
/**
* Returns the class that contains the fragment reference.
*/
@Nullable PsiClass getScope();
}