use of php.runtime.env.CompileScope in project jphp by jphp-compiler.
the class EvalCommand method getValue.
public static Memory getValue(Debugger context, String value) {
DebugTick tick = context.getRegisteredTick();
Environment environment = new Environment(new CompileScope(tick.getEnvironment().getScope()));
try {
return EvalFunctions.eval(environment, tick.getTrace(), tick.getLocals(), "return " + value + ";");
} catch (Throwable throwable) {
return null;
}
}
use of php.runtime.env.CompileScope in project jphp by jphp-compiler.
the class JsonJvmTestCase method newScope.
@Override
protected CompileScope newScope() {
CompileScope scope = super.newScope();
scope.registerExtension(new JsonExtension());
return scope;
}
use of php.runtime.env.CompileScope in project jphp by jphp-compiler.
the class JsoupJvmTestCase method newScope.
@Override
protected CompileScope newScope() {
CompileScope scope = super.newScope();
scope.registerExtension(new JsoupExtension());
return scope;
}
use of php.runtime.env.CompileScope in project jphp by jphp-compiler.
the class JsonFunctionsTest method newScope.
@Override
protected CompileScope newScope() {
CompileScope scope = super.newScope();
scope.registerExtension(new JsonExtension());
return scope;
}
use of php.runtime.env.CompileScope in project jphp by jphp-compiler.
the class WebserverJvmTestCase method newScope.
@Override
protected CompileScope newScope() {
CompileScope scope = super.newScope();
scope.registerExtension(new WebServerExtension());
scope.setLangMode(LangMode.MODERN);
return scope;
}
Aggregations