mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Bind the global scope recursively.
This commit is contained in:
parent
2a5c1818d1
commit
c175bc3553
@ -134,7 +134,7 @@ prog6 =
|
||||
]
|
||||
|
||||
ruby :: File (Term Core User)
|
||||
ruby = fromBody . ann $ record
|
||||
ruby = fromBody . ann . rec (named' __semantic_global) $ record
|
||||
[ ("Class", Core.record
|
||||
[ (__semantic_super, pure "Object")
|
||||
, ("new", lam (named' "self")
|
||||
@ -189,6 +189,7 @@ ruby = fromBody . ann $ record
|
||||
]
|
||||
where self $$$ method = annWith callStack $ lam (named' "_x") (pure "_x" Core.... pure method $$ pure "_x") $$ self
|
||||
|
||||
__semantic_global = "__semantic_global"
|
||||
__semantic_super = "__semantic_super"
|
||||
__semantic_truthy = "__semantic_truthy"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user