1
/*******************************************************************************
2
* Copyright (c) 2005, 2011 IBM Corporation 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
* John Camelon (IBM Rational Software) - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.core.dom.parser.c;
13
import org.eclipse.cdt.core.dom.ast.IASTExpression;
14
import org.eclipse.cdt.core.dom.ast.IASTName;
15
import org.eclipse.cdt.internal.core.dom.parser.ASTEnumerator;
18
* C-specific enumerator
20
public class CASTEnumerator extends ASTEnumerator {
22
public CASTEnumerator() {
26
public CASTEnumerator(IASTName name, IASTExpression value) {
30
public CASTEnumerator copy() {
31
return copy(CopyStyle.withoutLocations);
34
public CASTEnumerator copy(CopyStyle style) {
35
CASTEnumerator copy = new CASTEnumerator();
36
copyAbstractEnumerator(copy, style);
37
if (style == CopyStyle.withLocations) {
38
copy.setCopyLocation(this);