blob: 6f257becc22e3f55d7be365e6f52ef65a580a859 [file] [log] [blame]
/*******************************************************************************
* 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.ruby.ast;
import org.eclipse.dltk.ast.ASTNode;
import org.eclipse.dltk.ast.ASTVisitor;
public class RubyMatch3Expression extends ASTNode {
private final ASTNode receiver;
private final ASTNode value;
public RubyMatch3Expression(int start, int end, ASTNode receiver, ASTNode value) {
super(start, end);
this.receiver = receiver;
this.value = value;
}
public ASTNode getReceiver() {
return receiver;
}
public ASTNode getValue() {
return value;
}
public int getKind() {
return 0;
}
@Override
public void traverse(ASTVisitor visitor) throws Exception {
if( visitor.visit( this ) ) {
if( this.receiver != null ) {
this.receiver.traverse( visitor );
}
if( this.value != null ) {
this.value.traverse( visitor );
}
}
visitor.endvisit( this );
}
}