mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Add SubscriptAccess to run
This commit is contained in:
parent
3ac96be52c
commit
1254c12798
@ -61,6 +61,7 @@ run construct comparable cost algorithm = case runFree algorithm of
|
||||
recur (Function a' as' aExprs') (Function b' bs' bExprs') = annotate $ Function (liftA2 diffTerms' a' b') (liftA2 diffTerms' as' bs') (diffTerms' aExprs' bExprs')
|
||||
recur (Assignment a' as') (Assignment b' bs') = annotate $ Assignment (diffTerms' a' b') (diffTerms' as' bs')
|
||||
recur (MemberAccess a' as') (MemberAccess b' bs') = annotate $ MemberAccess (diffTerms' a' b') (diffTerms' as' bs')
|
||||
recur (SubscriptAccess a' as') (SubscriptAccess b' bs') = annotate $ SubscriptAccess (diffTerms' a' b') (diffTerms' as' bs')
|
||||
recur (MethodCall a' as' aParams') (MethodCall b' bs' bParams') = annotate $ MethodCall (diffTerms' a' b') (diffTerms' as' bs') (diffTerms' aParams' bParams')
|
||||
recur (Args as') (Args bs') = annotate . Args $ zipWith diffTerms' as' bs'
|
||||
recur (VarDecl a') (VarDecl b') = annotate . VarDecl $ diffTerms' a' b'
|
||||
|
Loading…
Reference in New Issue
Block a user