Examples of HaxeClassBody


Examples of com.intellij.plugins.haxe.lang.psi.HaxeClassBody

    //final PsiElement parent = anchor.getParent();
    //return parent.addBefore(declaration, anchor);
    HaxeClass haxeClass = PsiTreeUtil.getParentOfType(expression, HaxeClass.class, false);
    if (haxeClass != null) {
      //haxeClass.getVarDeclarations().get(0)
      HaxeClassBody classBody = PsiTreeUtil.getChildOfType(haxeClass, HaxeClassBody.class);

      if (classBody != null) {
        PsiElement child = classBody.getFirstChild();

        if (child != null) {
          return classBody.addBefore(declaration, child);
        }
        else {
          classBody.add(declaration);
        }
      }
    }

    return null;
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.