mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
This commit is contained in:
@@ -134,7 +134,7 @@ public class PsiJavaParserFacadeImpl extends PsiParserFacadeImpl implements PsiJ
|
||||
TreeElement decl = getJavaParsingContext(holderElement, level).getDeclarationParsing().parseDeclarationText(myManager, level, text,
|
||||
DeclarationParsing.Context.CLASS_CONTEXT);
|
||||
if (decl == null || decl.getElementType() != JavaElementType.METHOD) {
|
||||
throw new IncorrectOperationException("Incorrect method \"" + text + "\".");
|
||||
throw new IncorrectOperationException("Incorrect method '" + text + "'. Context:"+context+"; Level:"+level+"; parsed: "+(decl == null ? null : DebugUtil.treeToString(decl, false)));
|
||||
}
|
||||
holderElement.rawAddChildren(decl);
|
||||
return (PsiMethod)SourceTreeToPsiMap.treeElementToPsi(decl);
|
||||
|
||||
Reference in New Issue
Block a user