Skip to content
Snippets Groups Projects
Commit 3c3ac6fb authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

More private fields

parent 18d49df7
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@ package ast
import utils.Graphs._
trait CallGraph {
val trees: Trees
private[ast] val trees: Trees
import trees._
import trees.exprOps._
val symbols: Symbols
......
......@@ -10,7 +10,7 @@ package ast
* @define encodingof Encoding of
* */
trait Constructors {
val trees: Trees
private[ast] val trees: Trees
import trees._
import trees.exprOps._
implicit val symbols: Symbols
......
......@@ -87,7 +87,7 @@ trait Definitions { self: Trees =>
with Constructors
with Paths {
val trees: self.type = self
private[ast] val trees: self.type = self
val symbols: this.type = this
// @nv: this is a hack to reinject `this` into the set of implicits
......@@ -271,7 +271,7 @@ trait Definitions { self: Trees =>
}
case class TypedAbstractClassDef(cd: AbstractClassDef, tps: Seq[Type])(implicit val symbols: Symbols) extends TypedClassDef {
def descendants: Seq[TypedClassDef] = cd.descendants.map(_.typed(tps))
def descendants: Seq[TypedCaseClassDef] = cd.descendants.map(_.typed(tps))
}
case class TypedCaseClassDef(cd: CaseClassDef, tps: Seq[Type])(implicit val symbols: Symbols) extends TypedClassDef {
......
......@@ -26,7 +26,6 @@ import scala.reflect._
*
*/
trait ExprOps extends GenTreeOps {
val trees: Trees
import trees._
type SubTree = Expr
......
......@@ -23,7 +23,7 @@ trait TreeExtractor {
* @tparam SubTree The type of the tree
*/
trait GenTreeOps {
val trees: Trees
private[ast] val trees: Trees
import trees._
type SubTree <: Tree
......
......@@ -3,7 +3,7 @@ package inox
package ast
trait TreeOps {
val trees: Trees
private[ast] val trees: Trees
import trees._
trait TreeTransformer {
......
......@@ -27,7 +27,7 @@ trait Trees extends Expressions with Extractors with Types with Definitions with
}
object exprOps extends {
val trees: Trees.this.type = Trees.this
private[ast] val trees: Trees.this.type = Trees.this
} with ExprOps
/** Represents a unique symbol in Inox.
......
......@@ -4,7 +4,7 @@ package inox
package ast
trait TypeOps {
val trees: Trees
private[ast] val trees: Trees
import trees._
implicit val symbols: Symbols
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment