File: multiple_annotations.svg

package info (click to toggle)
rust-annotate-snippets 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: makefile: 2
file content (51 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<svg width="768px" height="290px" xmlns="http://www.w3.org/2000/svg">
  <style>
    .fg { fill: #AAAAAA }
    .bg { background: #000000 }
    .container {
      padding: 0 10px;
      line-height: 18px;
    }
    tspan {
      font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
      white-space: pre;
      line-height: 18px;
    }
  </style>

  <rect width="100%" height="100%" y="0" rx="4.5" class="bg" />

  <text xml:space="preserve" class="container fg">
    <tspan x="10px" y="28px"><tspan>error</tspan>
</tspan>
    <tspan x="10px" y="46px"><tspan>    |</tspan>
</tspan>
    <tspan x="10px" y="64px"><tspan> 96 | fn add_title_line(result: &amp;mut Vec&lt;String&gt;, main_annotation: Option&lt;&amp;Annotation&gt;) {</tspan>
</tspan>
    <tspan x="10px" y="82px"><tspan> 97 |     if let Some(annotation) = main_annotation {</tspan>
</tspan>
    <tspan x="10px" y="100px"><tspan>    |                 ^^^^^^^^^^ Variable defined here</tspan>
</tspan>
    <tspan x="10px" y="118px"><tspan> 98 |         result.push(format_title_line(</tspan>
</tspan>
    <tspan x="10px" y="136px"><tspan> 99 |             &amp;annotation.annotation_type,</tspan>
</tspan>
    <tspan x="10px" y="154px"><tspan>    |              ^^^^^^^^^^ Referenced here</tspan>
</tspan>
    <tspan x="10px" y="172px"><tspan>100 |             None,</tspan>
</tspan>
    <tspan x="10px" y="190px"><tspan>101 |             &amp;annotation.label,</tspan>
</tspan>
    <tspan x="10px" y="208px"><tspan>    |              ^^^^^^^^^^ Referenced again here</tspan>
</tspan>
    <tspan x="10px" y="226px"><tspan>102 |         ));</tspan>
</tspan>
    <tspan x="10px" y="244px"><tspan>103 |     }</tspan>
</tspan>
    <tspan x="10px" y="262px"><tspan>104 | }</tspan>
</tspan>
    <tspan x="10px" y="280px"><tspan>    |</tspan>
</tspan>
  </text>

</svg>