Examples of Usages


Examples of org.antlr.works.find.Usages

        ATEToken token = delegate.getCurrentToken();
        if(token == null)
            return;

        Usages usage = new Usages(delegate, token);
        delegate.addUsagesTab(usage);

        for (ATEToken ateToken : delegate.getTokens()) {
            if (ateToken.getAttribute().equals(token.getAttribute())) {
                ElementRule matchedRule = delegate.getEditorRules().getEnclosingRuleAtPosition(ateToken.getStartIndex());
                if (matchedRule != null)
                    usage.addMatch(matchedRule, ateToken);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.