| /******************************************************************************* |
| * Copyright (c) 2005, 2016 IBM Corporation and others. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| *******************************************************************************/ |
| package org.eclipse.dltk.python.parser.ast.statements; |
| |
| import org.eclipse.dltk.ast.ASTVisitor; |
| import org.eclipse.dltk.ast.DLTKToken; |
| import org.eclipse.dltk.ast.statements.Statement; |
| import org.eclipse.dltk.utils.CorePrinter; |
| |
| /** |
| * Empty Statement. |
| * |
| */ |
| public class EmptyStatement extends Statement { |
| |
| public EmptyStatement(int start, int end) { |
| super(start, end); |
| } |
| |
| public EmptyStatement(DLTKToken token) { |
| super(token); |
| } |
| |
| @Override |
| public int getKind() { |
| return S_EMPTY; |
| } |
| |
| @Override |
| public void traverse(ASTVisitor pVisitor) throws Exception { |
| if (pVisitor.visit(this)) { |
| pVisitor.endvisit(this); |
| } |
| } |
| |
| @Override |
| public void printNode(CorePrinter output) { |
| } |
| } |