-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corresponded SubExpr Visitor #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions @valis
if (accepted != null) return accepted; | ||
} | ||
// Case trees and clauses? They are unlikely to be isomorphic. | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What to do?
ClassCallExpression coreClassExpr = coreExpr.cast(ClassCallExpression.class); | ||
if (coreClassExpr == null) return null; | ||
// How about the other subexpressions? | ||
return expr.getBaseClassExpression().accept(this, coreClassExpr.getExpr()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should I do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\eval is one of the places where you cannot match expressions. We will discuss what to do in these cases later.
src/main/java/org/arend/typechecking/visitor/CorrespondedSubExprVisitor.java
Outdated
Show resolved
Hide resolved
71746cb
to
8eb780c
Compare
WIP