Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
0267d262
Commit
0267d262
authored
15 years ago
by
Philippe Suter
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/funcheck/AnalysisComponent.scala
+12
-12
12 additions, 12 deletions
src/funcheck/AnalysisComponent.scala
with
12 additions
and
12 deletions
src/funcheck/AnalysisComponent.scala
+
12
−
12
View file @
0267d262
...
@@ -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. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment