Package org.eclipse.cdt.core.dom.ast

Examples of org.eclipse.cdt.core.dom.ast.IASTInitializer


    super.writeExpressions(expList, modifiedExpressions);
  }

  @Override
  protected IASTInitializer getNewInitializer(final ICPPASTNewExpression newExp) {
    final IASTInitializer initializer = newExp.getInitializer();
    if (initializer != null) {
      for (final ASTModification childModification : modificationHelper.modificationsForNode(initializer)) {
        switch (childModification.getKind()) {
        case REPLACE:
          if (childModification.getNewNode() instanceof IASTInitializer) {
View Full Code Here


    }
    return modificationsForNode;
  }

  public IASTInitializer getInitializer(final IASTDeclarator decl) {
    final IASTInitializer initializer = decl.getInitializer();

    if (initializer != null) {
      for (final ASTModification childModification : modificationsForNode(initializer)) {
        switch (childModification.getKind()) {
        case REPLACE:
View Full Code Here

    }

    final IASTTypeId typeId = newExp.getTypeId();
    visitNodeIfNotNull(typeId);

    final IASTInitializer initExp = getNewInitializer(newExp);
    if (initExp != null) {
      initExp.accept(visitor);
    }
  }
View Full Code Here

    final IASTPointerOperator[] pointOps = declarator.getPointerOperators();
    writePointerOperators(declarator, pointOps);
    final IASTName name = declarator.getName();
    name.accept(visitor);
    writeNestedDeclarator(declarator);
    final IASTInitializer init = getInitializer(declarator);
    if (init != null) {
      init.accept(visitor);
    }
  }
View Full Code Here

      writeCppFunctionDeclarator((ICPPASTFunctionDeclarator) funcDec);
    }
  }

  private void writeInitializer(final IASTStandardFunctionDeclarator funcDec) {
    final IASTInitializer init = getInitializer(funcDec);
    if (init != null) {
      init.accept(visitor);
    }
  }
View Full Code Here

    writeNestedDeclarator(arrDecl);

    final IASTArrayModifier[] arrMods = arrDecl.getArrayModifiers();
    writeArrayModifiers(arrDecl, arrMods);
    final IASTInitializer initializer = getInitializer(arrDecl);
    if (initializer != null) {
      initializer.accept(visitor);
    }
  }
View Full Code Here

    fieldDecl.getName().accept(visitor);
    scribe.printSpace();
    scribe.print(':');
    scribe.printSpace();
    fieldDecl.getBitFieldSize().accept(visitor);
    final IASTInitializer initializer = getInitializer(fieldDecl);
    if (initializer != null) {
      initializer.accept(visitor);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.dom.ast.IASTInitializer

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.