mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix OC-5992 Formatter: PsiComment.BlockFormatting ->PsiDocCommentBase +review CR-OC-1034
This commit is contained in:
@@ -28,12 +28,4 @@ public interface PsiComment extends PsiElement {
|
||||
* @return the token type of the comment.
|
||||
*/
|
||||
IElementType getTokenType();
|
||||
|
||||
/**
|
||||
* The instance with implemented interface need to be formatted as set of formatting blocks.
|
||||
*
|
||||
* Applying for in-comment documentation that is similar, but different from Javadoc,
|
||||
* and does not contain internal PSI nodes (injections).
|
||||
*/
|
||||
interface BlockFormatting {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ abstract class CodeStyleManagerRunnable<T> {
|
||||
protected abstract T doPerform(int offset, TextRange range);
|
||||
|
||||
private static boolean isInsidePlainComment(int offset, @Nullable PsiElement element) {
|
||||
if (!(element instanceof PsiComment) || element instanceof PsiComment.BlockFormatting || !element.getTextRange().contains(offset)) {
|
||||
if (!(element instanceof PsiComment) || element instanceof PsiDocCommentBase || !element.getTextRange().contains(offset)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user