Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: dc3ddab76c4a4ae605cc439e38377157eddc1945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
 * Copyright (c) 2008 IBM Wind River Systems, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Markus Schorn - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.internal.core.dom.parser;

import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
import org.eclipse.cdt.core.dom.ast.IASTParameterDeclaration;

/**
 * Needed to handle the ambiguity for parameter declarations in plain C
 * @since 5.0
 */
public interface IASTAmbiguousParameterDeclaration extends IASTParameterDeclaration {

    public static final ASTNodeProperty SUBDECLARATION = new ASTNodeProperty("IASTAmbiguousParameterDeclaration.SUBDECLARATION"); //$NON-NLS-1$

    /**
     * Add an alternative to this ambiguous parameter declaration.
     */
    public void addParameterDeclaration(IASTParameterDeclaration e);

    /**
     * Return an array of all alternatives for this ambiguous parameter declaration.
     */
    public IASTParameterDeclaration[] getParameterDeclarations();
}

Back to the top