Ejemplo n.º 1
0
 @Override
 public Object execute(VirtualFrame frame) {
   return lexicalScope.getLiveModule();
 }
Ejemplo n.º 2
0
 @TruffleBoundary
 private InternalMethod prepareLexicalScope(DynamicObject module, InternalMethod definition) {
   lexicalScope.unsafeSetLiveModule(module);
   Layouts.MODULE.getFields(lexicalScope.getParent().getLiveModule()).addLexicalDependent(module);
   return definition.withDeclaringModule(module);
 }