1
/*******************************************************************************
2
* Copyright (c) 2004, 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
* IBM - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.core.dom.parser.cpp;
13
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
14
import org.eclipse.cdt.core.dom.ast.IASTContinueStatement;
15
import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
20
public class CPPASTContinueStatement extends ASTNode implements IASTContinueStatement {
23
public boolean accept(ASTVisitor action) {
24
if (action.shouldVisitStatements) {
25
switch (action.visit(this)) {
26
case ASTVisitor.PROCESS_ABORT: return false;
27
case ASTVisitor.PROCESS_SKIP: return true;
31
if (action.shouldVisitStatements) {
32
switch (action.leave(this)) {
33
case ASTVisitor.PROCESS_ABORT: return false;
34
case ASTVisitor.PROCESS_SKIP: return true;
41
public CPPASTContinueStatement copy() {
42
return copy(CopyStyle.withoutLocations);
45
public CPPASTContinueStatement copy(CopyStyle style) {
46
CPPASTContinueStatement copy = new CPPASTContinueStatement();
47
copy.setOffsetAndLength(this);
48
if (style == CopyStyle.withLocations) {
49
copy.setCopyLocation(this);