1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Address Rob's concerns.

This commit is contained in:
Patrick Thomson 2018-07-13 12:06:11 -04:00
parent 341a3ba70a
commit acb4ac18c3
3 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,6 @@ convergingModules recur m = do
-- nondeterministic values into @()@.
withOracle prevCache (gatherM (const ()) (recur m)))
-- TODO: We're hitting an infinite loop here, c.f test/fixtures/ruby/analysis/graphing/include-file-with-undefined-call
TermEvaluator (address =<< runTermEvaluator (maybe empty scatter (cacheLookup c cache)))
-- | Iterate a monadic action starting from some initial seed until the results converge.

View File

@ -59,7 +59,8 @@ box :: ( Member (Allocator address value) effects
=> value
-> Evaluator address value effects address
box val = do
addr <- gensym >>= alloc
name <- gensym
addr <- alloc name
assign addr val
pure addr

View File

@ -57,11 +57,11 @@ class (Show1 constr, Foldable constr) => Evaluatable constr where
, Member (Reader PackageInfo) effects
, Member (Reader Span) effects
, Member (Resumable (EnvironmentError address)) effects
, Member (Resumable (Unspecialized value)) effects
, Member (Resumable EvalError) effects
, Member (Resumable ResolutionError) effects
, Member (Resumable (Unspecialized value)) effects
, Member Trace effects
, Member Fresh effects
, Member Trace effects
)
=> SubtermAlgebra constr term (Evaluator address value effects (ValueRef address))
eval expr = do