Skip to content

Commit

Permalink
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/language/class_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -802,8 +802,16 @@ private RubyNode openModule(SourceSection sourceSection, RubyNode defineOrGetNod
try {
final SharedMethodInfo sharedMethodInfo = new SharedMethodInfo(sourceSection, newLexicalScope, Arity.NO_ARGUMENTS, name, false, null, false, false, false);

final ReturnID returnId;

if (sclass) {
returnId = environment.getReturnID();
} else {
returnId = environment.getParseEnvironment().allocateReturnID();
}

final TranslatorEnvironment newEnvironment = new TranslatorEnvironment(context, environment, environment.getParseEnvironment(),
environment.getParseEnvironment().allocateReturnID(), true, true, sharedMethodInfo, name, false, null);
returnId, true, true, sharedMethodInfo, name, false, null);

final BodyTranslator moduleTranslator = new BodyTranslator(currentNode, context, this, newEnvironment, source, false);

0 comments on commit 2f25127

Please sign in to comment.