Skip to content
Snippets Groups Projects
Commit 0267d262 authored by Philippe Suter's avatar Philippe Suter
Browse files

deactivated Mirco's generators generation to focus on code extraction

parent 71a868d4
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import scalacheck._ ...@@ -6,7 +6,7 @@ import scalacheck._
class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin) extends PluginComponent class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin) extends PluginComponent
with CodeExtraction with CodeExtraction
with ScalaCheckIntegrator // with ScalaCheckIntegrator
{ {
import global._ import global._
...@@ -17,7 +17,7 @@ class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin) ...@@ -17,7 +17,7 @@ class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin)
val phaseName = pluginInstance.name val phaseName = pluginInstance.name
/** this is initialized when the Funcheck phase starts*/ /** this is initialized when the Funcheck phase starts*/
override var fresh: scala.tools.nsc.util.FreshNameCreator = null var fresh: scala.tools.nsc.util.FreshNameCreator = null
protected def stopIfErrors: Unit = { protected def stopIfErrors: Unit = {
if(reporter.hasErrors) { if(reporter.hasErrors) {
...@@ -38,21 +38,21 @@ class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin) ...@@ -38,21 +38,21 @@ class AnalysisComponent(val global: Global, val pluginInstance: FunCheckPlugin)
(new ForeachTreeTraverser(firstFilter(unit))).traverse(unit.body) (new ForeachTreeTraverser(firstFilter(unit))).traverse(unit.body)
stopIfErrors stopIfErrors
// val prog: purescala.Definitions.Program = extractCode(unit) val prog: purescala.Definitions.Program = extractCode(unit)
// println("Extracted program for " + unit + ": ") println("Extracted program for " + unit + ": ")
// println(prog) println(prog)
// Mirco your component can do its job here, as I leave the trees // Mirco your component can do its job here, as I leave the trees
// unmodified. // unmodified.
val (genDef, arbDef) = createGeneratorDefDefs(unit) // val (genDef, arbDef) = createGeneratorDefDefs(unit)
injectGenDefDefs(genDef ::: arbDef, unit) // injectGenDefDefs(genDef ::: arbDef, unit)
forAllTransform(unit) // forAllTransform(unit)
// if(pluginInstance.stopAfterAnalysis) { if(pluginInstance.stopAfterAnalysis) {
// println("Analysis complete. Now terminating the compiler process.") println("Analysis complete. Now terminating the compiler process.")
// exit(0) exit(0)
// } }
} }
/** Weeds out some programs containing unsupported features. */ /** Weeds out some programs containing unsupported features. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment