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

Examples of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTInitializerList


    // Method body
    final StatementInfo statementInfo = new StatementInfo(methodDeclaration.getBody(), typeDeclaration, compilationUnitInfo);
    definition = f.newFunctionDefinition(declSpecifier, functionDeclarator, statementInfo.getStatement());
    if (methodDeclaration.isConstructor() && (enclosingType != null)) {
      final ICPPASTInitializerList initializerList = f.newInitializerList();
      initializerList.addClause(f.newIdExpression(f.newName("__parent".toCharArray())));
      definition.addMemberInitializer(f.newConstructorChainInitializer(f.newName("__parent".toCharArray()), initializerList));
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTInitializerList

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.