don't ignore scripts in groovy stub hierarchy indexing

This commit is contained in:
peter
2016-06-08 19:25:49 +02:00
parent 95f04a1368
commit ed59620c5d
2 changed files with 1 additions and 4 deletions
@@ -88,7 +88,7 @@ public class GrStubFileElementType extends IStubFileElementType<GrFileStub> {
@Override
public int getStubVersion() {
return super.getStubVersion() + 28 + (IndexTree.STUB_HIERARCHY_ENABLED ? 1 : 0);
return super.getStubVersion() + 29 + (IndexTree.STUB_HIERARCHY_ENABLED ? 1 : 0);
}
@Override
@@ -34,9 +34,6 @@ public class GrStubIndexer {
@NotNull
public static Unit translate(int fileId, GrFileStub grFileStub) {
if (grFileStub.isScript()) {
return new Unit(fileId, null, IndexTree.GROOVY, Import.EMPTY_ARRAY, ClassDecl.EMPTY_ARRAY);
}
String pid = null;
ArrayList<ClassDecl> classList = new ArrayList<ClassDecl>();
Set<String> usedNames = new HashSet<String>();