File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/truffleruby/parser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -388,13 +388,13 @@ public TranslatorEnvironment getSurroundingMethodEnvironment() {
388
388
return methodParent ;
389
389
}
390
390
391
- /** Return either outer method/module/top level environment or in case of eval("...") the topmost environment of the
392
- * parsed (by eval) code */
391
+ /** Return either outer method/module/top level environment or in case of eval("...") the outermost environment of
392
+ * the parsed (by eval) code */
393
393
public TranslatorEnvironment getSurroundingMethodOrEvalEnvironment () {
394
394
TranslatorEnvironment environment = this ;
395
395
396
396
// eval's parsing environment still has frameDescriptor not initialized,
397
- // but all the outer scopes are related to already parsed code and have initialized frameDescriptor.
397
+ // but all the outer scopes are related to already parsed code and have frameDescriptor != null .
398
398
while (environment .isBlock () && environment .getParent ().frameDescriptor == null ) {
399
399
environment = environment .getParent ();
400
400
}
You can’t perform that action at this time.
0 commit comments