Package org.teavm.debugging.javascript

Examples of org.teavm.debugging.javascript.JavaScriptLocation


            TeaVMJavaStackFrame stackFrame = (TeaVMJavaStackFrame)object;
            SourceLocation location = stackFrame.callFrame.getLocation();
            if (location != null) {
                return location.getFileName();
            }
            JavaScriptLocation jsLocation = stackFrame.callFrame.getOriginalLocation();
            return jsLocation != null ? jsLocation.getScript() : null;
        } else if (object instanceof TeaVMJSStackFrame) {
            TeaVMJSStackFrame stackFrame = (TeaVMJSStackFrame)object;
            JavaScriptLocation location = stackFrame.callFrame.getLocation();
            return location != null ? location.getScript() : null;
        } else {
            return null;
        }
    }
View Full Code Here


    @Override
    public Object[] findSourceElements(Object object) throws CoreException {
        List<Object> result = new ArrayList<>(Arrays.asList(super.findSourceElements(object)));
        if (object instanceof TeaVMJSStackFrame) {
            TeaVMJSStackFrame stackFrame = (TeaVMJSStackFrame)object;
            JavaScriptLocation location = stackFrame.getCallFrame().getLocation();
            if (location != null) {
                addUrlElement(result, location);
            }
        } else if (object instanceof TeaVMJavaStackFrame) {
            TeaVMJavaStackFrame stackFrame = (TeaVMJavaStackFrame)object;
View Full Code Here

TOP

Related Classes of org.teavm.debugging.javascript.JavaScriptLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.