Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1fcf9d869377f6e037e15c7e832f28372f3328f7 (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
/*******************************************************************************
 * Copyright (c) 2008, 2012 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.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNameOwner;

/**
 * Provides additional methods for internal use by the name resolution.
 */
public interface IASTInternalNameOwner extends IASTNameOwner {
	/**
	 * Get the role for the name. If the name needs to be resolved to determine that and
	 * <code>allowResolution</code> is set to <code>false</code>, then {@link IASTNameOwner#r_unclear}
	 * is returned.
	 *
	 * @param n a name to determine the role of.
	 * @param allowResolution whether or not resolving the name is allowed.
	 * @return r_definition, r_declaration, r_reference or r_unclear.
	 */
	public int getRoleForName(IASTName n, boolean allowResolution);
}

Back to the top