1
/*******************************************************************************
2
* Copyright (c) 2007, 2008 Wind River Systems, Inc. and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Markus Schorn - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.ui.callhierarchy;
13
import org.eclipse.cdt.core.model.ICElement;
14
import org.eclipse.cdt.core.model.ITranslationUnit;
17
* Represents a child of a node with multiple definitions.
19
public class CHMultiDefChildNode extends CHNode {
21
public CHMultiDefChildNode(CHMultiDefNode parent, ITranslationUnit fileOfReferences, long timestamp, ICElement decl, int linkageID) {
22
super(parent, fileOfReferences, timestamp, decl, linkageID);
26
public int getReferenceCount() {
27
return getParent().getReferenceCount();
31
public CHReferenceInfo getReference(int idx) {
32
return getParent().getReference(idx);
36
public int getFirstReferenceOffset() {
37
return getParent().getFirstReferenceOffset();
41
public void addReference(CHReferenceInfo info) {