public bool HasOuterEnvironment(ScopedEnvironment env) { if (this.outerenv != null) { if (this.outerenv == env) { return(true); } else { return(this.outerenv.HasOuterEnvironment(env)); } } return(false); }
public ScopedEnvironment(ScopedEnvironment env = null) { this.outerenv = env; }