Package org.eclipse.imp.utils

Examples of org.eclipse.imp.utils.Pair


        for (String pack : usages.keySet())
        {
            for (NodeLink info : usages.get(pack))
            {
                HaxeTree node = info.getNode();
                Pair pair = null;
                if (node instanceof Usage || node instanceof Declaration)
                {
                    pair = new Pair(
                            node.getToken().getStartIndex(),
                            node.getToken().getStopIndex() - node.getToken().getStartIndex() + 1);
                }
                targets.put(pack, pair);
            }
View Full Code Here


        for (String pack : usages.keySet())
        {
            for (NodeLink info : usages.get(pack))
            {
                HaxeTree node = info.getNode();
                Pair pair = null;
                if (node instanceof MethodCall)
                {
                    node = node.getChild(0);
                }
                if (node instanceof Function)
                {
                    node = node.getChild(0);
                    pair = new Pair(
                            node.getTokenStartIndex(),
                            node.getTokenStopIndex() - node.getTokenStartIndex() + 1);
                }
                else if (node instanceof Usage)
                {
                    pair = new Pair(
                            node.getTokenStartIndex(),
                            node.getTokenStopIndex() - node.getTokenStartIndex() + 1);
                }
                targets.put(pack, pair);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.imp.utils.Pair

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.