1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Cosmetics

Change-Id: Idabd9e2d0c587618c2a68363fabdd0692ee8f847
This commit is contained in:
Sergey Prigogin 2016-07-31 22:13:13 -07:00
parent 072e568395
commit 80b05f860a
2 changed files with 15 additions and 21 deletions

View file

@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* John Camelon (IBM) - Initial API and implementation
* John Camelon (IBM) - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;
@ -21,41 +21,37 @@ import org.eclipse.cdt.core.dom.ast.IASTDeclarationListOwner;
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPASTLinkageSpecification extends IASTDeclaration, IASTDeclarationListOwner {
/**
* {@code OWNED_DECLARATION} is the owned declaration role for linkages.
*/
public static final ASTNodeProperty OWNED_DECLARATION = new ASTNodeProperty(
"ICPPASTLinkageSpecification.OWNED_DECLARATION - Owned Declaration role for linkages"); //$NON-NLS-1$
/**
* Get the "literal" that represents the linkage.
* Returns the "literal" that represents the linkage.
*
* @return String
*/
public String getLiteral();
/**
* Set the "literal" that represents the linkage.
* Sets the "literal" that represents the linkage.
*
* @param value
* String
* @param value the "literal" that represents the linkage
*/
public void setLiteral(String value);
/**
* <code>OWNED_DECLARATION</code> is the owned declaration role for
* linkages.
*/
public static final ASTNodeProperty OWNED_DECLARATION = new ASTNodeProperty(
"ICPPASTLinkageSpecification.OWNED_DECLARATION - Owned Declaration role for linkages"); //$NON-NLS-1$
/**
* Get all of the declarations.
* Returns all of the declarations.
*
* @return <code>IASTDeclaration[] </code>
* @return {@code IASTDeclaration[]}
*/
public IASTDeclaration[] getDeclarations();
/**
* Add another declaration to the linkage.
* Adds another declaration to the linkage.
*
* @param declaration
* <code>IASTDeclaration</code>
* @param declaration the declaration to add
*/
@Override
public void addDeclaration(IASTDeclaration declaration);

View file

@ -31,9 +31,7 @@ public class ContainerNode extends ASTNode {
private final ArrayList<IASTNode> nodes = new ArrayList<IASTNode>();
public ContainerNode(IASTNode... nodes) {
for (IASTNode each : nodes) {
addNode(each);
}
Collections.addAll(this.nodes, nodes);
}
@Override