use of org.elixir_lang.psi.stub.impl.ElixirFileStubImpl in project intellij-elixir by KronicDeth.
the class BeamFileImpl method buildFileStub.
public static PsiFileStub<?> buildFileStub(byte[] bytes) {
ElixirFileStubImpl stub = new ElixirFileStubImpl();
Beam beam = null;
try {
beam = Beam.from(bytes);
} catch (IOException e) {
LOGGER.error(e);
} catch (OtpErlangDecodeException e) {
LOGGER.error(e);
}
ModuleStub moduleStub = buildModuleStub(stub, beam);
if (moduleStub == null) {
stub = null;
}
return stub;
}
Aggregations