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

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


    // Parameters
    if (methodDeclaration.isConstructor() && (enclosingType != null)) {
      // If the type is nested, simulate Java inner class access visibility by creating a
      // reference to the outer type on the constructor
      final ICPPASTDeclSpecifier parentReferenceDeclSpecifier = f.newTypedefNameSpecifier(new NameInfo(enclosingType.getName()).getName());
      final ICPPASTDeclarator parentReferenceDeclarator = f.newDeclarator(f.newName("__parent".toCharArray()));
      parentReferenceDeclarator.addPointerOperator(f.newPointer());
      final IASTParameterDeclaration parentReference = f.newParameterDeclaration(parentReferenceDeclSpecifier, parentReferenceDeclarator);
      functionDeclarator.addParameterDeclaration(parentReference);
    }
View Full Code Here


    }

    // If the type is nested, simulate Java inner class access visibility by creating a
    // reference to the outer type on the constructor and store it in the object
    if (enclosingType != null) {
      final ICPPASTDeclSpecifier parentReferenceDeclSpecifier = f.newTypedefNameSpecifier(new NameInfo(enclosingType.getName()).getName());
      final IASTSimpleDeclaration parentReference = f.newSimpleDeclaration(parentReferenceDeclSpecifier);
      final ICPPASTDeclarator parentReferenceDeclarator = f.newDeclarator(f.newName("__parent".toCharArray()));
      parentReference.addDeclarator(parentReferenceDeclarator);
      parentReferenceDeclarator.addPointerOperator(f.newPointer());
      final ModifiersInfo modifiersInfo = new ModifiersInfo(false, false, true, false, false, false, false);
View Full Code Here

TOP

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

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.