Package st.gravel.support.compiler.ast

Source Code of st.gravel.support.compiler.ast.SourcePointerRemover

package st.gravel.support.compiler.ast;

/*
  This file is automatically generated from typed smalltalk source. Do not edit by hand.
  (C) AG5.com
*/

import java.math.BigInteger;
import st.gravel.support.jvm.NonLocalReturn;
import st.gravel.support.compiler.ast.NodeCopier;
import st.gravel.support.compiler.ast.NodeCopier.NodeCopier_Factory;
import st.gravel.support.compiler.ast.Node;

public class SourcePointerRemover extends NodeCopier implements Cloneable {

  public static SourcePointerRemover_Factory factory = new SourcePointerRemover_Factory();

  public static class SourcePointerRemover_Factory extends NodeCopier_Factory {

    public SourcePointerRemover basicNew() {
      SourcePointerRemover newInstance = new SourcePointerRemover();
      newInstance.initialize();
      return newInstance;
    }
  }

  public SourcePointerRemover copy() {
    try {
      SourcePointerRemover _temp1 = (SourcePointerRemover) this.clone();
      _temp1.postCopy();
      return _temp1;
    } catch (CloneNotSupportedException e) {
      throw new RuntimeException(e);
    }
  }

  public SourcePointerRemover_Factory factory() {
    return factory;
  }

  @Override
  public Node visit_(final Node _anObject) {
    final Node _newNode;
    if (_anObject == null) {
      return null;
    }
    _newNode = ((Node) _anObject.accept_(this));
    if (_newNode == null) {
      return null;
    }
    return _newNode.withSourcePosition_(null);
  }
}
TOP

Related Classes of st.gravel.support.compiler.ast.SourcePointerRemover

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.