use of ast.ExpCore.ClassB.MethodWithType in project L42 by ElvisResearchGroup.
the class MethodPathCloneVisitor method getMt.
private Ast.MethodType getMt(Program p, MethodSelector s, ClassB cb) {
assert p.top() == cb;
Optional<Member> mOpt = Functions.getIfInDom(cb.getMs(), s);
assert mOpt.isPresent();
if (mOpt.get() instanceof MethodWithType) {
return ((MethodWithType) mOpt.get()).getMt();
}
assert mOpt.get() instanceof MethodImplemented;
MethodWithType mwt = (MethodWithType) cb._getMember(s);
return mwt.getMt();
}
Aggregations