Examples of HaxePackageStatement


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

  @Override
  public void updateMovedFile(PsiFile file) throws IncorrectOperationException {
    final HaxeFile haxeFile = (HaxeFile)file;
    final PsiElement firstChild = haxeFile.getFirstChild();
    final HaxePackageStatement packageStatement = PsiTreeUtil.getChildOfType(haxeFile, HaxePackageStatement.class);
    final HaxePackageStatement newPackageStatement =
      HaxeElementGenerator.createPackageStatementFromPath(haxeFile.getProject(), file.getUserData(destinationPackageKey));
    assert newPackageStatement != null;
    if (packageStatement == null && firstChild == null) {
      haxeFile.add(newPackageStatement);
    }
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.