Stubs - Extract interface for JetElement and JetExpression (Stub psi element should extend StubBasedPsiElementBase but JetElement extended ASTWrapperPsiElement)
This commit is contained in:
@@ -33,6 +33,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.JetTestCaseBuilder;
|
||||
import org.jetbrains.jet.lang.parsing.JetParserDefinition;
|
||||
import org.jetbrains.jet.lang.psi.JetElement;
|
||||
import org.jetbrains.jet.lang.psi.JetElementImpl;
|
||||
import org.jetbrains.jet.lang.psi.JetVisitorVoid;
|
||||
|
||||
import java.io.File;
|
||||
@@ -102,7 +103,7 @@ public class JetParsingTest extends ParsingTestCase {
|
||||
Object result = method.invoke(elem);
|
||||
if (result == null) {
|
||||
for (Annotation annotation : method.getDeclaredAnnotations()) {
|
||||
if (annotation instanceof JetElement.IfNotParsed) {
|
||||
if (annotation instanceof JetElementImpl.IfNotParsed) {
|
||||
assertNotNull(
|
||||
"Incomplete operation in parsed OK test, method " + methodName +
|
||||
" in " + declaringClass.getSimpleName() + " returns null. Element text: \n" + elem.getText(),
|
||||
|
||||
Reference in New Issue
Block a user