mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics
This commit is contained in:
@@ -99,7 +99,7 @@ public class PyBaseElementImpl<T extends StubElement> extends StubBasedPsiElemen
|
||||
protected <T extends PyElement> T childToPsiNotNull(TokenSet filterSet, int index) {
|
||||
final PyElement child = childToPsi(filterSet, index);
|
||||
if (child == null) {
|
||||
throw new RuntimeException("child must not be null");
|
||||
throw new RuntimeException("child must not be null: expression text " + getText());
|
||||
}
|
||||
//noinspection unchecked
|
||||
return (T)child;
|
||||
@@ -109,7 +109,7 @@ public class PyBaseElementImpl<T extends StubElement> extends StubBasedPsiElemen
|
||||
protected <T extends PyElement> T childToPsiNotNull(IElementType elType) {
|
||||
final PyElement child = childToPsi(elType);
|
||||
if (child == null) {
|
||||
throw new RuntimeException("child must not be null");
|
||||
throw new RuntimeException("child must not be null; expression text " + getText());
|
||||
}
|
||||
//noinspection unchecked
|
||||
return (T)child;
|
||||
|
||||
Reference in New Issue
Block a user