Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -70,6 +70,7 @@ public DynamicObject getModuleToDefineMethods(VirtualFrame frame, RubyContext co
public static final DeclarationContext METHOD = new DeclarationContext(Visibility.PUBLIC, DefaultDefinee.DECLARING_MODULE);
public static final DeclarationContext MODULE = METHOD;
public static final DeclarationContext BLOCK = METHOD;
public static final DeclarationContext TOP_LEVEL = METHOD;
public static final DeclarationContext INSTANCE_EVAL = new DeclarationContext(Visibility.PUBLIC, DefaultDefinee.SINGLETON_CLASS);
public static final DeclarationContext CLASS_EVAL = new DeclarationContext(Visibility.PUBLIC, DefaultDefinee.SELF);

Original file line number Diff line number Diff line change
@@ -370,7 +370,7 @@ public RubyNode wrap(RubyNode node) {
}
};

execute(source, UTF8Encoding.INSTANCE, ParserContext.TOP_LEVEL, coreLibrary.getMainObject(), null, true, DeclarationContext.MODULE, currentNode, composed);
execute(source, UTF8Encoding.INSTANCE, ParserContext.TOP_LEVEL, coreLibrary.getMainObject(), null, true, DeclarationContext.TOP_LEVEL, currentNode, composed);
}

public SymbolTable getSymbolTable() {

0 comments on commit 574a08e

Please sign in to comment.