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

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


    } else {
      declarator = f.newDeclarator(new NameInfo(variableDeclaration.getName()).getName());
      initializer = variableDeclaration.getInitializer() == null ? null : new ExpressionInfo(variableDeclaration.getInitializer(), null, compilationUnitInfo).getExpression();
      final ITypeBinding typeBinding = type.resolveBinding();
      if ((initializer != null) && !typeInfo.isStl()) {
        final IASTEqualsInitializer equalsInitializer = f.newEqualsInitializer(initializer);
        declarator.setInitializer(equalsInitializer);
      }
      if ((typeInfo.isSimple() || type.isParameterizedType()) && !typeBinding.isEnum() && !typeInfo.isStl()) {
        declarator.addPointerOperator(f.newPointer());
      }
View Full Code Here

TOP

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

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.