You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allVars (L _ (LetStmt _ binds)) = allVars binds -- A local declaration e.g. let y = x + 1
214
208
allVars (L _ (TransStmt _ _ stmts _ using by _ _ fmap_)) = allVars stmts <> freeVars_ using <>maybemempty freeVars_ by <> freeVars_ (noLocA fmap_ ::LocatedA (HsExprGhcPs)) -- Apply a function to a list of statements in order.
215
209
allVars (L _ (RecStmt _ stmts _ _ _ _ _)) = allVars (unLoc stmts) -- A recursive binding for a group of arrows.
216
-
217
-
allVars (L _ ApplicativeStmt{}) =mempty-- Generated by the renamer.
218
210
allVars (L _ ParStmt{}) =mempty-- Parallel list thing. Come back to it.
instanceAllVars (LocatedA (MatchGhcPs (LocatedA (HsExprGhcPs)))) where
240
-
allVars (L _ (Match _ FunRhs {mc_fun=name} pats grhss)) = allVars (noLocA $VarPat noExtField name ::LocatedA (PatGhcPs)) <> allVars pats <> allVars grhss -- A pattern matching on an argument of a function binding.
241
-
allVars (L _ (Match _ (StmtCtxt ctxt) pats grhss)) = allVars ctxt <> allVars pats <> allVars grhss -- Pattern of a do-stmt, list comprehension, pattern guard etc.
allVars (L _ (Match _ FunRhs {mc_fun=name} pats grhss)) = allVars (noLocA $VarPat noExtField name ::LocatedA (PatGhcPs)) <>(allVars. unLoc) pats <> allVars grhss -- A pattern matching on an argument of a function binding.
233
+
allVars (L _ (Match _ (StmtCtxt ctxt) pats grhss)) = allVars ctxt <>(allVars. unLoc) pats <> allVars grhss -- Pattern of a do-stmt, list comprehension, pattern guard etc.
0 commit comments