All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.parser.EvalStaticScope Maven / Gradle / Ivy

There is a newer version: 9.4.7.0
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jruby.parser;

/**
 * This scope is used solely for evals. All eval calls under a given scope live
 * in the same "eval" scope, which is always based on this type of static
 * scope. Also, for purposes of flip-flops, this acts like a local scope.
 */
public class EvalStaticScope extends BlockStaticScope {
    public EvalStaticScope(StaticScope parentScope) {
        super(parentScope, new String[0]);
    }

    public EvalStaticScope(StaticScope parentScope, String[] names) {
        super(parentScope, names);
    }
    
    @Override
    public StaticScope getLocalScope() {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy