14 |
require Whatpm::WebIDL; |
require Whatpm::WebIDL; |
15 |
|
|
16 |
my $out = $self->output; |
my $out = $self->output; |
17 |
$out->start_section (id => 'parse-errors', title => 'Parse Errors'); |
$out->start_section (role => 'parse-errors'); |
18 |
$out->start_tag ('dl', id => 'parse-errors-list'); |
$out->start_error_list (role => 'parse-errors'); |
19 |
|
|
20 |
my $input = $self->input; |
my $input = $self->input; |
21 |
my $result = $self->result; |
my $result = $self->result; |
28 |
$result->add_error (@_, layer => 'syntax'); |
$result->add_error (@_, layer => 'syntax'); |
29 |
}); |
}); |
30 |
|
|
31 |
$out->html ('</dl></div>'); |
$out->end_error_list (role => 'parse-errors'); |
32 |
|
$out->end_section; |
33 |
} # generate_parse_error_section |
} # generate_parse_error_section |
34 |
|
|
35 |
sub generate_structure_dump_section ($) { |
sub generate_structure_dump_section ($) { |
36 |
my $self = shift; |
my $self = shift; |
37 |
|
|
38 |
my $out = $self->output; |
my $out = $self->output; |
39 |
|
|
40 |
$out->start_section (id => 'dump-webidl', title => 'WebIDL'); |
$out->start_section (role => 'reformatted'); |
41 |
|
|
42 |
$out->start_code_block; |
$out->start_code_block; |
43 |
$out->text ($self->{structure}->idl_text); |
$out->text ($self->{structure}->idl_text); |
44 |
$out->end_code_block; |
$out->end_code_block; |
45 |
|
|
46 |
$out->end_section |
$out->end_section |
47 |
} # generate_structure_dump_section |
} # generate_structure_dump_section |
48 |
|
|