use of com.intellij.psi.impl.java.stubs.impl.PsiJavaFileStubImpl in project intellij-community by JetBrains.
the class GroovyTraitMethodsFileIndex method index.
private static PsiJavaFileStub index(VirtualFile file, byte[] content) {
try {
PsiJavaFileStub root = new PsiJavaFileStubImpl("", true);
new ClassReader(content).accept(new GrTraitMethodVisitor(file, root), EMPTY_ATTRIBUTES, ClassReader.SKIP_CODE);
return root;
} catch (Exception e) {
LOG.info(file.getPath(), e);
return null;
}
}
Aggregations