Package org.cx4a.rsense.util

Examples of org.cx4a.rsense.util.SourceLocation


                && (event.type == EventType.DEFINE
                    || event.type == EventType.CLASS
                    || event.type == EventType.MODULE)
                && event.name != null
                && event.node != null) {
                SourceLocation loc = SourceLocation.of(event.node);
                if (loc != null
                    && line >= loc.getLine()
                    && line - closest > line - loc.getLine()) {
                    closest = loc.getLine();
                    name = event.name;
                }
            }
        }
View Full Code Here


                && vertex.getReceiverVertex() != null) {
                String realName = vertex.getName().substring(prefix.length());
                for (IRubyObject receiver : vertex.getReceiverVertex().getTypeSet()) {
                    RubyClass receiverType = receiver.getMetaClass();
                    if (receiverType != null) {
                        SourceLocation location = null;

                        // Try to find method
                        // TODO callSuper
                        Method method = (Method) receiverType.searchMethod(realName);
                        if (method != null) {
View Full Code Here

TOP

Related Classes of org.cx4a.rsense.util.SourceLocation

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.