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

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


  public int visit(IASTExpression expr) {
    if (expr instanceof IASTIdExpression ){
      id = expr.getRawSignature();
      return PROCESS_SKIP;
    } else if (expr instanceof IASTArraySubscriptExpression) {
      IASTArraySubscriptExpression arrayExpr = (IASTArraySubscriptExpression) expr;   
      IASTInitializerClause subscript = arrayExpr.getArgument();
      ExprVisitor exprVisitor = new ExprVisitor();
      subscript.accept(exprVisitor);
      indices.add(((Expression) exprVisitor.finalExpr));   
      visit(arrayExpr.getArrayExpression());
      return PROCESS_SKIP;
    } else {   
      return PROCESS_ABORT;
    }
  }
View Full Code Here

TOP

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

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.