Move IfNotParsed interface to separate class

This commit is contained in:
Nikolay Krasko
2012-06-15 16:20:03 +04:00
parent 0171e528da
commit 3c1fb3951b
6 changed files with 33 additions and 17 deletions
@@ -32,8 +32,8 @@ import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.JetTestCaseBuilder;
import org.jetbrains.jet.lang.parsing.JetParserDefinition;
import org.jetbrains.jet.lang.psi.IfNotParsed;
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;
@@ -103,7 +103,7 @@ public class JetParsingTest extends ParsingTestCase {
Object result = method.invoke(elem);
if (result == null) {
for (Annotation annotation : method.getDeclaredAnnotations()) {
if (annotation instanceof JetElementImpl.IfNotParsed) {
if (annotation instanceof IfNotParsed) {
assertNotNull(
"Incomplete operation in parsed OK test, method " + methodName +
" in " + declaringClass.getSimpleName() + " returns null. Element text: \n" + elem.getText(),