Examples of MacroNodeImpl


Examples of cz.juzna.latte.psi.impl.MacroNodeImpl

          // Go up and find open keywords (and offer them for closing)
          PsiElement cursor = curr;
          while(cursor != null && (cursor.getPrevSibling() != null || cursor.getParent() != null)) {
            // macro found {xx} found
            if(cursor instanceof MacroNodeImpl) {
              MacroNodeImpl node = (MacroNodeImpl) cursor;
              String name = node.getMacroName();

              if(name.charAt(0) == '/') { // closing macro
                closedMacros.add(name.substring(1));
              } else if(PAIR_MACROS.contains(name)) {
                if(closedMacros.contains(name)) closedMacros.remove(name); // is closed later
View Full Code Here

Examples of cz.juzna.latte.psi.impl.MacroNodeImpl

    @NotNull
    @Override
    public PsiElement createElement(ASTNode node) {
      IElementType type = node.getElementType();

      if(type == LatteTokenTypes.MACRO_NODE) return new MacroNodeImpl(node);
      else if(type == LatteTokenTypes.MACRO_ATTR) return new MacroAttrImpl(node);
      else return new LattePsiElement(node);
    }
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.