blob: c46916512171f014c0f6911bbfabdf3386e00db5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.core.ecl.parser.ast;
public class ScriptArg extends Arg {
public ScriptArg(String text, Script script, int begin, int end) {
super(text, begin, end);
this.script = script;
}
public final Script script;
@Override
public void accept(NodeVisitor visitor) {
if (visitor.enter(this)) {
if (name != null) {
name.accept(visitor);
}
script.accept(visitor);
}
visitor.exit(this);
}
}