use of org.erlide.engine.internal.model.erlang.ErlImport in project erlide_eclipse by erlang.
the class ErlParser method addImportAttribute.
private IErlImport addImportAttribute(final IErlModule module, final OtpErlangObject pos, final OtpErlangObject val) {
final OtpErlangTuple t = (OtpErlangTuple) val;
if (t.elementAt(0) instanceof OtpErlangAtom && t.elementAt(1) instanceof OtpErlangList) {
final OtpErlangAtom importModule = (OtpErlangAtom) t.elementAt(0);
final OtpErlangList functionList = (OtpErlangList) t.elementAt(1);
final ErlImport imp = new ErlImport(module, importModule.atomValue(), functionList);
setPos(imp, pos);
return imp;
}
return null;
}
Aggregations