All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.util.parsing.ast.AbstractSyntax.scala Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2006-2013, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

package scala.util.parsing.ast

import scala.util.parsing.input.Positional

/** This component provides the core abstractions for representing an Abstract Syntax Tree
 *
 * @author Adriaan Moors
 */
@deprecated("This class will be removed", "2.10.0")
trait AbstractSyntax {
  /** The base class for elements of the abstract syntax tree.
   */
  trait Element extends Positional

  /** The base class for elements in the AST that represent names [[scala.util.parsing.ast.Binders]].
   */
  trait NameElement extends Element {
    def name: String
    override def equals(that: Any): Boolean = that match {
      case n: NameElement => n.name == name
      case _ => false
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy