|
5 | 5 | { checks } = require('../core/typechecker') |
6 | 6 | { exceptionFactory: exceptions } = require('util/exception') |
7 | 7 |
|
8 | | -AgentSetChecks = require('./agentset-checks') |
9 | | -ColorChecks = require('./color-checks') |
10 | | -ControlChecks = require('./control-checks') |
11 | | -LinkChecks = require('./link-checks') |
12 | | -ListChecks = require('./list-checks') |
13 | | -MathChecks = require('./math-checks') |
14 | | -PatchChecks = require('./patch-checks') |
15 | | -ProcedureChecks = require('./procedure-checks') |
16 | | -TaskChecks = require('./task-checks') |
17 | | -TurtleChecks = require('./turtle-checks') |
18 | | -WorldChecks = require('./world-checks') |
19 | | -Validator = require('./validator') |
| 8 | +AgentSetChecks = require('./agentset-checks') |
| 9 | +ColorChecks = require('./color-checks') |
| 10 | +ControlChecks = require('./control-checks') |
| 11 | +LinkChecks = require('./link-checks') |
| 12 | +ListChecks = require('./list-checks') |
| 13 | +MathChecks = require('./math-checks') |
| 14 | +PatchChecks = require('./patch-checks') |
| 15 | +ProcedureChecks = require('./procedure-checks') |
| 16 | +TaskChecks = require('./task-checks') |
| 17 | +TurtleChecks = require('./turtle-checks') |
| 18 | +InspectionChecks = require('./inspection-checks') |
| 19 | +WorldChecks = require('./world-checks') |
| 20 | +Validator = require('./validator') |
20 | 21 |
|
21 | 22 | class Checker |
22 | 23 |
|
23 | 24 | constructor: ( i18nBundle, dumper, miscPrims, listPrims, randomPrims, stringPrims |
24 | | - , procedurePrims, selfPrims, world) -> |
| 25 | + , procedurePrims, selfPrims, inspectionPrims, world) -> |
25 | 26 |
|
26 | 27 | getSelf = world.selfManager.self |
27 | 28 |
|
28 | | - @validator = new Validator(i18nBundle, dumper) |
29 | | - @agentset = new AgentSetChecks(@validator, dumper, miscPrims, getSelf) |
30 | | - @color = new ColorChecks(@validator) |
31 | | - @list = new ListChecks(@validator, dumper, listPrims, stringPrims) |
32 | | - @math = new MathChecks(@validator, randomPrims) |
33 | | - @procedure = new ProcedureChecks(@validator, procedurePrims) |
34 | | - @turtle = new TurtleChecks( @validator, getSelf, world.turtleManager |
| 29 | + @validator = new Validator(i18nBundle, dumper) |
| 30 | + @agentset = new AgentSetChecks(@validator, dumper, miscPrims, getSelf) |
| 31 | + @color = new ColorChecks(@validator) |
| 32 | + @list = new ListChecks(@validator, dumper, listPrims, stringPrims) |
| 33 | + @math = new MathChecks(@validator, randomPrims) |
| 34 | + @procedure = new ProcedureChecks(@validator, procedurePrims) |
| 35 | + @turtle = new TurtleChecks( @validator, getSelf, world.turtleManager |
35 | 36 | , world.breedManager) |
36 | | - @patch = new PatchChecks(@validator, getSelf) |
37 | | - @link = new LinkChecks(@validator, getSelf, selfPrims) |
38 | | - @task = new TaskChecks(@validator) |
39 | | - @control = new ControlChecks(@validator) |
40 | | - @world = new WorldChecks(@validator, world) |
| 37 | + @patch = new PatchChecks(@validator, getSelf) |
| 38 | + @link = new LinkChecks(@validator, getSelf, selfPrims) |
| 39 | + @task = new TaskChecks(@validator) |
| 40 | + @control = new ControlChecks(@validator) |
| 41 | + @inspection = new InspectionChecks(@validator, inspectionPrims) |
| 42 | + @world = new WorldChecks(@validator, world) |
41 | 43 |
|
42 | 44 | @turtleOrLink = { |
43 | 45 | getVariable: (sourceStart, sourceEnd, name) => |
|
0 commit comments