LambdaPosition

gapt.expr.util.LambdaPosition
See theLambdaPosition companion class

Attributes

Companion
class
Source
LambdaPosition.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

trait Choice

Attributes

Source
LambdaPosition.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Left.type
object Right.type
case object Left extends Choice

Attributes

Source
LambdaPosition.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Choice
class Object
trait Matchable
class Any
Show all
Self type
Left.type
case object Right extends Choice

Attributes

Source
LambdaPosition.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Choice
class Object
trait Matchable
class Any
Show all
Self type
Right.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

Attributes

Source
LambdaPosition.scala

Compares to Exprs and returns the list of outermost positions where they differ.

Compares to Exprs and returns the list of outermost positions where they differ.

Value parameters

exp1

The first expression.

exp2

The second expression.

Attributes

Returns

The list of outermost positions at which exp1 and exp2 differ.

Source
LambdaPosition.scala
def filterPositions(predicate: Expr => Boolean)(expression: Expr): List[LambdaPosition]

Returns a list of positions of subexpressions that satisfy some predicate.

Returns a list of positions of subexpressions that satisfy some predicate.

Value parameters

expression

The expression under consideration.

predicate

The predicate to be evaluated.

Attributes

Returns

Positions of subexpressions satisfying the predicate.

Source
LambdaPosition.scala
def getPositions(expression: Expr): List[LambdaPosition]

Retrieves all subterm positions of a term.

Retrieves all subterm positions of a term.

Value parameters

expression

The expression whose subterm positions are to be computed.

Attributes

Returns

All subterm positions of the given expression.

Source
LambdaPosition.scala
def replace(exp: Expr, pos: LambdaPosition, repTerm: Expr): Expr

Replaces a a subexpression in a Expr.

Replaces a a subexpression in a Expr.

Value parameters

exp

The expression in which to perform the replacement.

pos

The position at which to replace.

repTerm

The expression that exp(pos) should be replaced with.

Attributes

Source
LambdaPosition.scala

Attributes

Source
LambdaPosition.scala