Skip to content

Commit

Permalink
moved plugin Config to the reconstruction package
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuraj committed Aug 16, 2012
1 parent 32682c6 commit 3e11b83
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import scala.tools.nsc.util.Position
import java.io.OutputStreamWriter
import ch.epfl.insynth.InSynth
import ch.epfl.insynth.util.TreePrinter
import ch.epfl.insynth.Config
import ch.epfl.insynth.env.InitialEnvironmentBuilder
import ch.epfl.insynth.env.Declaration
import ch.epfl.insynth.reconstruction.Output
Expand All @@ -35,7 +34,7 @@ TODO:
*/

object InnerFinder extends ((ScalaCompilationUnit, Int) => Option[List[Output]]) with HasLogger {

var predefBuildLoader: PredefBuilderLoader = new PredefBuilderLoader()

def apply(scu: ScalaCompilationUnit, position: Int): Option[List[Output]] = {
Expand All @@ -47,6 +46,8 @@ object InnerFinder extends ((ScalaCompilationUnit, Int) => Option[List[Output]])

scu.withSourceFile {
(sourceFile, compiler) =>

logger.info("InSynth working on source file: " + sourceFile.path)

if (compiler != InSynthWrapper.compiler) {
InSynthWrapper.compiler = compiler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.epfl.insynth
package ch.epfl.insynth.reconstruction

import java.util.logging._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package ch.epfl.insynth.reconstruction.codegen

import ch.epfl.insynth.reconstruction.intermediate._
import ch.epfl.insynth.print._
import ch.epfl.insynth.Config
import ch.epfl.insynth.reconstruction.Config

/**
* class that extract the needed amount of snippets from the intermediate representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.util.logging.Logger
import java.util.logging.ConsoleHandler
import ch.epfl.insynth.env.FormatNode
import java.util.logging.Level
import ch.epfl.insynth.Config
import ch.epfl.insynth.reconstruction.Config

/**
* object which application transforms an InSynth representation input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.logging.Level
import java.util.logging.ConsoleHandler
import java.util.logging.FileHandler
import java.util.logging.SimpleFormatter
import ch.epfl.insynth.Config
import ch.epfl.insynth.reconstruction.Config
import ch.epfl.insynth.env.FormatNode

// TODO set required combinations in each Tree node after we hit the limit in the top
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ch.epfl.insynth.{ env => InSynthEnv }
import ch.epfl.insynth.{trees => InSynth}
import ch.epfl.scala.{trees => Scala}
import scala.annotation.tailrec
import ch.epfl.insynth.Config
import ch.epfl.insynth.reconstruction.Config

// logging
import ch.epfl.scala.trees.FormatScalaType
Expand Down

0 comments on commit 3e11b83

Please sign in to comment.