File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,24 @@ void parse(ParseEventHandler,
52
52
Args... )
53
53
(string input, int spaces_per_indent, string title, Args args) {
54
54
import std.traits ;
55
- ParseEventHandler parser = ParseEventHandler(args);
55
+ ParseEventHandler handler = ParseEventHandler(args);
56
56
// const initial_indent_level =
57
57
int current_indent_level;
58
58
// BitType current_bits;
59
59
// BitType[] stack;
60
60
int line_content_start_index;
61
61
// Workwround for void not being a parameter type
62
62
void emitBlockStart (string nodeContent) {
63
- static if (is (ReturnType! (parser .start) == void )) {
64
- parser .start(nodeContent);
63
+ static if (is (ReturnType! (handler .start) == void )) {
64
+ handler .start(nodeContent);
65
65
deleStart();
66
- } else deleStart(parser .start(nodeContent));
66
+ } else deleStart(handler .start(nodeContent));
67
67
}
68
68
void emitBlockEnd () {
69
- static if (is (ReturnType! (parser .end) == void )) {
70
- parser .end();
69
+ static if (is (ReturnType! (handler .end) == void )) {
70
+ handler .end();
71
71
deleEnd();
72
- } else deleEnd(parser .end());
72
+ } else deleEnd(handler .end());
73
73
}
74
74
emitBlockStart(title);
75
75
for (int i = 0 ; i < input.length; ++ i) {
You can’t perform that action at this time.
0 commit comments