travis-ci
4670 of 5656 branches covered (82.57%)
13 of 13 new or added lines in 2 files covered. (100.0%)
10412 of 11525 relevant lines covered (90.34%)
5850.54 hits per line
1 |
"use strict";
|
|
2 |
var Node = require("./Node"); |
19 only 2387.2 ✔ |
3 |
|
|
4 |
class Program extends Node { |
|
5 |
constructor(def) { |
|
6 |
super("Program"); |
2,594 only 2387.2 ✔ |
7 |
this.body = def.body;
|
2,594 only 2387.2 ✔ |
8 |
} |
|
9 |
|
|
10 |
generateCode(codegen) { |
|
11 |
this.body = codegen.generateCode(this.body); |
2,594 only 2387.2 ✔ |
12 |
return this; |
2,593 only 2387.2 ✔ |
13 |
} |
|
14 |
|
|
15 |
writeCode(writer) { |
|
16 |
writer.writeStatements(this.body);
|
2,573 only 2387.2 ✔ |
17 |
} |
|
18 |
|
|
19 |
walk(walker) { |
|
20 |
this.body = walker.walk(this.body); |
× |
21 |
} |
|
22 |
} |
|
23 |
|
|
24 |
module.exports = Program; |
19 only 2387.2 ✔ |