Package org.antlr.works.stringtemplate.element

Examples of org.antlr.works.stringtemplate.element.ElementTemplateRule


                        token.type == ATEStringTemplateSyntaxLexer.TOKEN_DECL) {
                    mutator.replace(token.getStartIndex(), token.getEndIndex(), name);
                }
            }
        } else if (isArg) {
            ElementTemplateRule rule = getRuleAtPosition(window.getCaretPosition());
            for(int index = tokens.size()-1; index>0; index--) {
                ATEToken token = tokens.get(index);
                if(!token.getAttribute().equals(attr)) continue;

                if (rule.containsIndex(token.start)) {
                    if (token.type == ATEStringTemplateSyntaxLexer.TOKEN_ARG_DECL ||
                            token.type == ATEStringTemplateSyntaxLexer.TOKEN_ARG_REFERENCE) {
                        mutator.replace(token.getStartIndex(), token.getEndIndex(), name);
                    }
                }
View Full Code Here

TOP

Related Classes of org.antlr.works.stringtemplate.element.ElementTemplateRule

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.