Revert "Improve the TextMate grammar scopes and precision (#7888)" (#7909)

This reverts commit 65a3c2b36a.

It was merged by accident with a dependent change. Will re-land
independently.
This commit is contained in:
Chandler Carruth authored and GitHub committed 2026-10-06 20:17:51 +00:00
1 parent 1b0a5709e6
commit 25b77cd3d4
18 files changed
+597 -2772

No files matched your search

+10 -10
View File
@@ -1,13 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="712" height="195" viewBox="0 0 712 195">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086">1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086">2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086">3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086">4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086">5 </tspan><tspan fill="#cba6f7">choice</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">SomeChoice</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086">6 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#eba0ac" font-weight="bold">Val1</tspan><tspan fill="#74c7ec">,</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086">7 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#eba0ac" font-weight="bold">Val2</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">array</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">5</tspan><tspan fill="#74c7ec">),</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">t</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">),</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086">8 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#eba0ac" font-weight="bold">Val3</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086">9 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681">1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681">2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681">3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681">4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681">5 </tspan><tspan fill="#569cd6">choice</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">SomeChoice</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">) {</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681">6 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Val1</tspan><tspan fill="#d4d4d4">,</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681">7 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Val2</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">array</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#b5cea8">5</tspan><tspan fill="#d4d4d4">), </tspan><tspan fill="#9cdcfe">t</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">),</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681">8 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Val3</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681">9 </tspan><tspan fill="#d4d4d4">}</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

-2
View File
@@ -8,8 +8,6 @@
//@dump-sem-ir-begin
//@dump-sem-ir-end
//@include-in-dumps
//@include-in-dumps
//@dump-sem-ir-begin with trailing text is an ordinary comment
//@dump-sem-ir-
//no whitespace after double slash
/* invalid comment pattern. */
+18 -20
View File
@@ -1,22 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="366" viewBox="0 0 721 366">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="328" viewBox="0 0 721 328">
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> This is a comment.</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Comment with whitespace.</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> class C; fn F[T: A](a: T) -&gt; i32 { return 86; }</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-weight="bold">@dump-sem-ir-begin</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-weight="bold">@dump-sem-ir-end</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-weight="bold">@include-in-dumps</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-weight="bold">@include-in-dumps</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic">@dump-sem-ir-begin with trailing text is an ordinary comment</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic">@dump-sem-ir-</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic">no whitespace after double slash</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#94e2d5">/*</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">invalid</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">comment</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">pattern</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">*/</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic">/ invalid comment pattern.</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Comment after a statement/expression/declaration.</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Trailing, with no space before the introducer.</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#6a9955">// This is a comment.</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#6a9955">// Comment with whitespace.</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#6a9955">// class C; fn F[T: A](a: T) -&gt; i32 { return 86; }</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#6a9955">//</tspan><tspan fill="#569cd6">@dump-sem-ir-begin</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#6a9955">//</tspan><tspan fill="#569cd6">@dump-sem-ir-end</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#6a9955">//</tspan><tspan fill="#569cd6">@include-in-dumps</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#6a9955">//@dump-sem-ir-</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan><tspan fill="#6a9955">//no whitespace after double slash</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#d4d4d4">/* </tspan><tspan fill="#9cdcfe">invalid</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">comment</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">pattern</tspan><tspan fill="#d4d4d4">. */</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#6a9955">/// invalid comment pattern.</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4">; </tspan><tspan fill="#6a9955">// Comment after a statement/expression/declaration.</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">1</tspan><tspan fill="#d4d4d4">;</tspan><tspan fill="#6a9955">// Trailing, with no space before the introducer.</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

+12 -12
View File
@@ -1,15 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="233" viewBox="0 0 721 233">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#cba6f7">package</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">SomePackage</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan><tspan fill="#f9e2af" font-weight="bold">Core</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">SomeCore</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">SomePackage</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#89b4fa">CallFunction</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">a</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">b</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">c</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">d</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#cdd6f4">unidentified</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#569cd6">package</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">SomePackage</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan><tspan fill="#4ec9b0">Core</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">SomeCore</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#569cd6">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">SomePackage</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#dcdcaa">CallFunction</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">c</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#9cdcfe">d</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#9cdcfe">unidentified</tspan><tspan fill="#d4d4d4">;</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@@ -28,7 +28,6 @@ generic a: T = b;
a: A in some_list;
var a: T;
let b: T;
let unused c: T = d;
binding: T;
generic binding: T;
var
@@ -51,17 +50,3 @@ r#class
r#if
r#i32
var r#var: i32 = r#class;
// --- member access through a pointer
p->field;
p->Method(a);
p->0;
(*p).field;
t.0.1;
q.value()->size();
// --- builtin function definitions
fn Add(a: i32, b: i32) -> i32 = "int.sadd";
fn Bits(n: IntLiteral) -> type = "int.make_type_signed";
+54 -69
View File
@@ -1,71 +1,56 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1297" viewBox="0 0 721 1297">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1012" viewBox="0 0 721 1012">
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F1</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Func</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Generic</tspan><tspan fill="#74c7ec">[</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">U</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">I</tspan><tspan fill="#74c7ec">](</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">U</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">U</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Lambda</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">a</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">5</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#cba6f7">fn</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">MultiLine</tspan><tspan fill="#74c7ec">[</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">A</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">,</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">B</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C1</tspan><tspan fill="#74c7ec">,</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">C</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C2</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">](</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af">B</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C</tspan><tspan fill="#74c7ec">),</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">B</tspan><tspan fill="#74c7ec">,</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">c</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Invalid</tspan><tspan fill="#a6adc8">#</tspan><tspan fill="#94e2d5">+?</tspan><tspan fill="#89b4fa">Name</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#74c7ec">.(</tspan><tspan fill="#cdd6f4">I</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">F</tspan><tspan fill="#74c7ec">)()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">b</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">array</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">5</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan><tspan fill="#cba6f7" font-style="italic">generic</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#cba6f7" font-style="italic">generic</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">b</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">in</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">some_list</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6c7086">30 </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6c7086">31 </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">unused </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">c</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">d</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6c7086">32 </tspan><tspan fill="#cdd6f4" font-style="italic">binding</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6c7086">33 </tspan><tspan fill="#cba6f7" font-style="italic">generic</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">binding</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6c7086">34 </tspan><tspan fill="#cba6f7">var</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6c7086">35 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">multiline</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6c7086">36 </tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6c7086">37 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cba6f7" font-style="italic">ref</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">const</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">ref</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">B</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6c7086">38 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6c7086">39 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">T</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">U</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">val</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6c7086">40 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">val</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6c7086">41 </tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6c7086">42 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- lambdas and positional parameters</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6c7086">43 </tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6c7086">44 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">explicit</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">auto</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6c7086">45 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">expression</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">auto</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6c7086">46 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">positional</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">auto</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">Print</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">$0</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">$1</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">$42</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6c7086">47 </tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6c7086">48 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- raw identifiers</tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6c7086">49 </tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6c7086">50 </tspan><tspan fill="#74c7ec" font-weight="bold" font-style="italic">r#</tspan><tspan fill="#cdd6f4">class</tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6c7086">51 </tspan><tspan fill="#74c7ec" font-weight="bold" font-style="italic">r#</tspan><tspan fill="#cdd6f4">if</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6c7086">52 </tspan><tspan fill="#74c7ec" font-weight="bold" font-style="italic">r#</tspan><tspan fill="#cdd6f4">i32</tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6c7086">53 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-weight="bold" font-style="italic">r#</tspan><tspan fill="#cdd6f4">var</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-weight="bold" font-style="italic">r#</tspan><tspan fill="#cdd6f4">class</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6c7086">54 </tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6c7086">55 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- member access through a pointer</tspan></text>
<text style="white-space:pre" x="12" y="1071"><tspan fill="#6c7086">56 </tspan></text>
<text style="white-space:pre" x="12" y="1090"><tspan fill="#6c7086">57 </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">-&gt;</tspan><tspan fill="#eba0ac" font-style="italic">field</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1109"><tspan fill="#6c7086">58 </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">-&gt;</tspan><tspan fill="#89b4fa" font-style="italic">Method</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">a</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1128"><tspan fill="#6c7086">59 </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">-&gt;</tspan><tspan fill="#fab387">0</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1147"><tspan fill="#6c7086">60 </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#94e2d5">*</tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#eba0ac" font-style="italic">field</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1166"><tspan fill="#6c7086">61 </tspan><tspan fill="#cdd6f4">t</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#fab387">0</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1185"><tspan fill="#6c7086">62 </tspan><tspan fill="#cdd6f4">q</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-style="italic">value</tspan><tspan fill="#74c7ec">()-&gt;</tspan><tspan fill="#89b4fa" font-style="italic">size</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1204"><tspan fill="#6c7086">63 </tspan></text>
<text style="white-space:pre" x="12" y="1223"><tspan fill="#6c7086">64 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- builtin function definitions</tspan></text>
<text style="white-space:pre" x="12" y="1242"><tspan fill="#6c7086">65 </tspan></text>
<text style="white-space:pre" x="12" y="1261"><tspan fill="#6c7086">66 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Add</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#89b4fa" font-weight="bold" font-style="italic">int.sadd</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1280"><tspan fill="#6c7086">67 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Bits</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">n</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">IntLiteral</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#89b4fa" font-weight="bold" font-style="italic">int.make_type_signed</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F1</tspan><tspan fill="#d4d4d4">();</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Func</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Generic</tspan><tspan fill="#d4d4d4">[</tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">U</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">](</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">U</tspan><tspan fill="#d4d4d4">) -&gt; </tspan><tspan fill="#4ec9b0">U</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Lambda</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">) -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> =&gt; </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4"> + </tspan><tspan fill="#b5cea8">5</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#569cd6">fn</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">MultiLine</tspan><tspan fill="#d4d4d4">[</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">,</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">C1</tspan><tspan fill="#d4d4d4">,</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">C2</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan><tspan fill="#d4d4d4"> ](</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#dcdcaa">A</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4">),</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4">,</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">c</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Invalid</tspan><tspan fill="#d4d4d4">#+?</tspan><tspan fill="#dcdcaa">Name</tspan><tspan fill="#d4d4d4">();</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4">.(</tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#4ec9b0">F</tspan><tspan fill="#d4d4d4">)();</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4"> = (</tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">array</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#b5cea8">5</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan><tspan fill="#569cd6">generic</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan><tspan fill="#569cd6">generic</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">in</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">some_list</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6e7681">30 </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6e7681">31 </tspan><tspan fill="#9cdcfe">binding</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6e7681">32 </tspan><tspan fill="#569cd6">generic</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">binding</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6e7681">33 </tspan><tspan fill="#569cd6">var</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6e7681">34 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">multiline</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6e7681">35 </tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6e7681">36 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#569cd6">ref</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#569cd6">const</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">ref</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6e7681">37 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6e7681">38 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#4ec9b0">U</tspan><tspan fill="#d4d4d4"> { </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">val</tspan><tspan fill="#d4d4d4">; }</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6e7681">39 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> =&gt; </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">val</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6e7681">40 </tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6e7681">41 </tspan><tspan fill="#6a9955">// --- lambdas and positional parameters</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6e7681">42 </tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6e7681">43 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">explicit</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">auto</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">) -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> { </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4"> + </tspan><tspan fill="#b5cea8">1</tspan><tspan fill="#d4d4d4">; };</tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6e7681">44 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">expression</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">auto</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">) =&gt; </tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4"> + </tspan><tspan fill="#b5cea8">1</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6e7681">45 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">positional</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">auto</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> { </tspan><tspan fill="#dcdcaa">Print</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#9cdcfe">$0</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">$1</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">$42</tspan><tspan fill="#d4d4d4">); };</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6e7681">46 </tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6e7681">47 </tspan><tspan fill="#6a9955">// --- raw identifiers</tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6e7681">48 </tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6e7681">49 </tspan><tspan fill="#d4d4d4">r#</tspan><tspan fill="#9cdcfe">class</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6e7681">50 </tspan><tspan fill="#d4d4d4">r#</tspan><tspan fill="#9cdcfe">if</tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6e7681">51 </tspan><tspan fill="#d4d4d4">r#</tspan><tspan fill="#9cdcfe">i32</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6e7681">52 </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> r#</tspan><tspan fill="#9cdcfe">var</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> = r#</tspan><tspan fill="#9cdcfe">class</tspan><tspan fill="#d4d4d4">;</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+30 -30
View File
@@ -1,33 +1,33 @@
<svg xmlns="http://www.w3.org/2000/svg" width="730" height="575" viewBox="0 0 730 575">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan><tspan fill="#7f849c">//</tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Inline C++ is scoped `meta.embedded.block.cpp`, so an editor that has a C++</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> grammar highlights them as C++; these renderings come from the Carbon grammar</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> alone, so that content shows plain.</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#cba6f7">package</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">Sample</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">library</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#f5e0dc" font-weight="bold">interop</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">library</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#f5e0dc" font-weight="bold">&lt;cstdio&gt;</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">library</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#f5e0dc" font-weight="bold">&lt;string_view&gt;</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">inline</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#f5e0dc" font-style="italic">c++</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#a6adc8" font-style="italic">int FromImport() { return 1; }</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">inline</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6adc8" font-style="italic">int OneLiner() { return 2; }</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#cba6f7">inline</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan><tspan fill="#a6adc8" font-style="italic">int FromBlock() { return 3; }</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Uses</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">value</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">int</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">int</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">widened</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">size_t</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">value</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">size_t</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">back</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">value</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">unsafe</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-style="italic">printf</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">%d</tspan><tspan fill="#f5c2e7">\n</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">value</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan><tspan fill="#6a9955">//</tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#6a9955">// Inline C++ is scoped `meta.embedded.block.cpp`, so an editor that has a C++</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan><tspan fill="#6a9955">// grammar highlights them as C++; these renderings come from the Carbon grammar</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#6a9955">// alone, so that content shows plain.</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#569cd6">package</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Sample</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">library</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">"interop"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#569cd6">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">library</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">"&lt;cstdio&gt;"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan><tspan fill="#569cd6">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">library</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">"&lt;string_view&gt;"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#569cd6">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">inline</tspan><tspan fill="#d4d4d4"> '''</tspan><tspan fill="#569cd6">c++</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#d4d4d4">int FromImport() { return 1; }</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan><tspan fill="#d4d4d4">''';</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#569cd6">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">inline</tspan><tspan fill="#d4d4d4"> "int OneLiner() { return 2; }";</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#569cd6">inline</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4"> '''</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan><tspan fill="#d4d4d4">int FromBlock() { return 3; }</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#d4d4d4">''';</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Uses</tspan><tspan fill="#d4d4d4">() {</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">value</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#9cdcfe">int</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">1</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#9cdcfe">int</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">widened</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#9cdcfe">size_t</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#9cdcfe">value</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#9cdcfe">size_t</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">back</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#9cdcfe">value</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">unsafe</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#dcdcaa">printf</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#ce9178">"%d</tspan><tspan fill="#d7ba7d">\n</tspan><tspan fill="#ce9178">"</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#9cdcfe">value</tspan><tspan fill="#d4d4d4">);</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#d4d4d4">}</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

+56 -56
View File
@@ -1,59 +1,59 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1069" viewBox="0 0 721 1069">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- operators</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#94e2d5">&gt;&gt;=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;=&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;&lt;=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;?</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&amp;=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">^=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">:=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">:?</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">==</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">!=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&gt;=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&gt;&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;&lt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;-</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">--</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">%=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">|=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">++</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">/=</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#94e2d5">*=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">~=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&amp;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">@</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">^</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">!</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&lt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">%</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">|</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">?</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">/</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">*</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">~</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">\</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#f38ba8">and</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">in</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">like</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">not</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">or</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">typeof</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- special-keywords</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#f38ba8">break</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">case</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">continue</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">else</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">if</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">for</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">match</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">returned</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">then</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">while</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#f38ba8">default</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=&gt;</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- introducer-keywords</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#cba6f7">adapt</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">alias</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">choice</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">constraint</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">import</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">inline</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">interface</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">library</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan><tspan fill="#cba6f7">match_first</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">namespace</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">observe</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">require</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#cba6f7">base</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan><tspan fill="#cba6f7">export</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#cba6f7">impl</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan><tspan fill="#cba6f7">package</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- modifier-keywords</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#cba6f7" font-style="italic">abstract</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">const</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">eval</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">extend</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">extern</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">final</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">generic</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">musteval</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">override</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">partial</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan><tspan fill="#cba6f7" font-style="italic">private</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">protected</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">ref</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">runtime</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">static</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">template</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">unsafe</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">unused</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">val</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">virtual</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan><tspan fill="#cba6f7" font-style="italic">base</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">class</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6c7086">30 </tspan><tspan fill="#cba6f7" font-style="italic">default</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6c7086">31 </tspan><tspan fill="#cba6f7" font-style="italic">export</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">import</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6c7086">32 </tspan><tspan fill="#cba6f7" font-style="italic">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6c7086">33 </tspan><tspan fill="#cba6f7" font-style="italic">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">library</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6c7086">34 </tspan><tspan fill="#cba6f7" font-style="italic">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">package</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6c7086">35 </tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6c7086">36 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- misc-keywords</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6c7086">37 </tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6c7086">38 </tspan><tspan fill="#94e2d5" font-style="italic">destroy</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">each</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">expand</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">forall</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">form</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">friend</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6c7086">39 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">destroy</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6c7086">40 </tspan><tspan fill="#74c7ec">...</tspan><tspan fill="#94e2d5" font-style="italic">expand</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6c7086">41 </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#94e2d5" font-style="italic">base</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6c7086">42 </tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6c7086">43 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- self-keywords</tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6c7086">44 </tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6c7086">45 </tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6c7086">46 </tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6c7086">47 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- package-roots</tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6c7086">48 </tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6c7086">49 </tspan><tspan fill="#f9e2af" font-weight="bold">Core</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6c7086">50 </tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6c7086">51 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- underscore</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6c7086">52 </tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6c7086">53 </tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6c7086">54 </tspan><tspan fill="#cdd6f4" font-weight="bold">_</tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6c7086">55 </tspan><tspan fill="#cdd6f4">_some_var</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#6a9955">// --- operators</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#d4d4d4">&gt;&gt;= &lt;=&gt; &lt;&lt;= -&gt;? &amp;= ^= := :? == =&gt; != &gt;= &gt;&gt; &lt;= &lt;&gt; &lt;&lt; &lt;- -= -&gt; -- %= |= += ++ /=</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#d4d4d4">*= ~= &amp; @ ^ : = ! &gt; &lt; - % . | + ? / * ~ \</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#c586c0">and</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">impls</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">in</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">like</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">not</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">or</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">typeof</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">where</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#6a9955">// --- special-keywords</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#c586c0">break</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">case</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">continue</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">else</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">if</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">for</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">match</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">returned</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">then</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">while</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#c586c0">default</tspan><tspan fill="#d4d4d4"> =&gt;</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan><tspan fill="#6a9955">// --- introducer-keywords</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#569cd6">adapt</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">alias</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">choice</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">constraint</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">import</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">inline</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">interface</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">library</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan><tspan fill="#569cd6">match_first</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">namespace</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">observe</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">require</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#569cd6">base</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan><tspan fill="#569cd6">export</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#569cd6">impl</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan><tspan fill="#569cd6">package</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan><tspan fill="#6a9955">// --- modifier-keywords</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan><tspan fill="#569cd6">abstract</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">const</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">eval</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">extend</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">extern</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">final</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">generic</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">musteval</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">override</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">partial</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan><tspan fill="#569cd6">private</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">protected</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">ref</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">runtime</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">static</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">template</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">unsafe</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">unused</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">val</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">virtual</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#569cd6">base</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">class</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6e7681">30 </tspan><tspan fill="#569cd6">default</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6e7681">31 </tspan><tspan fill="#569cd6">export</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">import</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6e7681">32 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">fn</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6e7681">33 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">library</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6e7681">34 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">package</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6e7681">35 </tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6e7681">36 </tspan><tspan fill="#6a9955">// --- misc-keywords</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6e7681">37 </tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6e7681">38 </tspan><tspan fill="#569cd6">destroy</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">each</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">expand</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">forall</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">form</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">friend</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6e7681">39 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">destroy</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6e7681">40 </tspan><tspan fill="#d4d4d4">...</tspan><tspan fill="#569cd6">expand</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6e7681">41 </tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#569cd6">base</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6e7681">42 </tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6e7681">43 </tspan><tspan fill="#6a9955">// --- self-keywords</tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6e7681">44 </tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6e7681">45 </tspan><tspan fill="#569cd6">self</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">Self</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6e7681">46 </tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6e7681">47 </tspan><tspan fill="#6a9955">// --- package-roots</tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6e7681">48 </tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6e7681">49 </tspan><tspan fill="#4ec9b0">Core</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Cpp</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6e7681">50 </tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6e7681">51 </tspan><tspan fill="#6a9955">// --- underscore</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6e7681">52 </tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6e7681">53 </tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6e7681">54 </tspan><tspan fill="#569cd6">_</tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6e7681">55 </tspan><tspan fill="#9cdcfe">_some_var</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 11 KiB

-7
View File
@@ -14,12 +14,6 @@
'''py
Block literal with a file type indicator.
'''
'''sql // A trailing comment on the introducer line.
SELECT 1;
'''
''' // A comment with no file type indicator.
Text.
'''
#"a raw \n literal, where \#n is the escape"#
##"nested "# stays inside, and \##n is the escape"##
@@ -33,7 +27,6 @@
'a' '\n' '\0' '\u{1F600}'
'\x70'
"\x4F is an escape, \x4f is not"
''
'abcde'
+70 -77
View File
@@ -1,79 +1,72 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1449" viewBox="0 0 721 1449">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1316" viewBox="0 0 721 1316">
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- string</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6e3a1" font-style="italic">C</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">Hello</tspan><tspan fill="#f5c2e7">\n</tspan><tspan fill="#a6e3a1">World</tspan><tspan fill="#f5c2e7">\n</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#f5c2e7">\"\'\t\r\n</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#f5e0dc" font-style="italic">Single</tspan><tspan fill="#a6e3a1" font-weight="bold"> line string</tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#a6e3a1" font-weight="bold"> Multi line</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan><tspan fill="#a6e3a1" font-weight="bold"> string</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#f5e0dc" font-style="italic">py</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#a6e3a1" font-weight="bold"> Block literal with a file type indicator.</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#f5e0dc" font-style="italic">sql</tspan><tspan fill="#a6e3a1" font-weight="bold"> </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> A trailing comment on the introducer line.</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#a6e3a1" font-weight="bold"> SELECT 1;</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan><tspan fill="#a6e3a1" font-weight="bold"> </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> A comment with no file type indicator.</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan><tspan fill="#a6e3a1" font-weight="bold"> Text.</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#74c7ec" font-style="italic">'''</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan><tspan fill="#74c7ec" font-style="italic">#"</tspan><tspan fill="#a6e3a1">a raw \n literal, where </tspan><tspan fill="#f5c2e7">\#n</tspan><tspan fill="#a6e3a1"> is the escape</tspan><tspan fill="#74c7ec" font-style="italic">"#</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan><tspan fill="#74c7ec" font-style="italic">##"</tspan><tspan fill="#a6e3a1">nested "# stays inside, and </tspan><tspan fill="#f5c2e7">\##n</tspan><tspan fill="#a6e3a1"> is the escape</tspan><tspan fill="#74c7ec" font-style="italic">"##</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan><tspan fill="#74c7ec" font-style="italic">#'''</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#a6e3a1" font-weight="bold"> A raw block literal.</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan><tspan fill="#74c7ec" font-style="italic">'''#</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6c7086">30 </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">unterminated</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6c7086">31 </tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6c7086">32 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- characters</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6c7086">33 </tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6c7086">34 </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6e3a1" font-style="italic">a</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#f5c2e7">\n</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#f5c2e7">\0</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#f5c2e7">\u{1F600}</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6c7086">35 </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#f5c2e7">\x70</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6c7086">36 </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#f5c2e7">\x4F</tspan><tspan fill="#a6e3a1"> is an escape, \x4f is not</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6c7086">37 </tspan><tspan fill="#74c7ec" font-style="italic">''</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6c7086">38 </tspan><tspan fill="#74c7ec" font-style="italic">'</tspan><tspan fill="#a6e3a1" font-style="italic">abcde</tspan><tspan fill="#74c7ec" font-style="italic">'</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6c7086">39 </tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6c7086">40 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- true-false</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6c7086">41 </tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6c7086">42 </tspan><tspan fill="#cba6f7" font-weight="bold">true</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-weight="bold">false</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6c7086">43 </tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6c7086">44 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- type-literals</tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6c7086">45 </tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6c7086">46 </tspan><tspan fill="#f9e2af" font-style="italic">array</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">auto</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">bool</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">char</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">str</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6c7086">47 </tspan><tspan fill="#f9e2af" font-style="italic">i8</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i16</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i64</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i128</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i10</tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6c7086">48 </tspan><tspan fill="#f9e2af" font-style="italic">u8</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">u16</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">u32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">u64</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">u128</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">u11</tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6c7086">49 </tspan><tspan fill="#f9e2af" font-style="italic">f8</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">f16</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">f32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">f64</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">f128</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">f12</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6c7086">50 </tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6c7086">51 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- numbers</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6c7086">52 </tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6c7086">53 </tspan><tspan fill="#fab387">12345</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">6789</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">00012345</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6c7086">54 </tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6c7086">55 </tspan><tspan fill="#fab387">1234.56789</tspan></text>
<text style="white-space:pre" x="12" y="1071"><tspan fill="#6c7086">56 </tspan><tspan fill="#fab387">0.875</tspan></text>
<text style="white-space:pre" x="12" y="1090"><tspan fill="#6c7086">57 </tspan><tspan fill="#fab387">0.3e5</tspan></text>
<text style="white-space:pre" x="12" y="1109"><tspan fill="#6c7086">58 </tspan><tspan fill="#fab387">1e5</tspan></text>
<text style="white-space:pre" x="12" y="1128"><tspan fill="#6c7086">59 </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#fab387">123</tspan></text>
<text style="white-space:pre" x="12" y="1147"><tspan fill="#6c7086">60 </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#fab387">1e3</tspan></text>
<text style="white-space:pre" x="12" y="1166"><tspan fill="#6c7086">61 </tspan></text>
<text style="white-space:pre" x="12" y="1185"><tspan fill="#6c7086">62 </tspan><tspan fill="#94e2d5" font-style="italic">0o</tspan><tspan fill="#fab387" font-weight="bold" font-style="italic">755</tspan></text>
<text style="white-space:pre" x="12" y="1204"><tspan fill="#6c7086">63 </tspan><tspan fill="#94e2d5" font-style="italic">0o</tspan><tspan fill="#fab387" font-weight="bold" font-style="italic">_17</tspan></text>
<text style="white-space:pre" x="12" y="1223"><tspan fill="#6c7086">64 </tspan><tspan fill="#94e2d5" font-style="italic">0o</tspan><tspan fill="#fab387" font-weight="bold" font-style="italic">8</tspan></text>
<text style="white-space:pre" x="12" y="1242"><tspan fill="#6c7086">65 </tspan></text>
<text style="white-space:pre" x="12" y="1261"><tspan fill="#6c7086">66 </tspan><tspan fill="#94e2d5" font-style="italic">0b</tspan><tspan fill="#fab387" font-weight="bold">1011_0010</tspan></text>
<text style="white-space:pre" x="12" y="1280"><tspan fill="#6c7086">67 </tspan><tspan fill="#94e2d5" font-style="italic">0b</tspan><tspan fill="#fab387" font-weight="bold">_010</tspan></text>
<text style="white-space:pre" x="12" y="1299"><tspan fill="#6c7086">68 </tspan><tspan fill="#94e2d5" font-style="italic">0b</tspan><tspan fill="#fab387" font-weight="bold">2345</tspan></text>
<text style="white-space:pre" x="12" y="1318"><tspan fill="#6c7086">69 </tspan><tspan fill="#fab387">0B011</tspan></text>
<text style="white-space:pre" x="12" y="1337"><tspan fill="#6c7086">70 </tspan></text>
<text style="white-space:pre" x="12" y="1356"><tspan fill="#6c7086">71 </tspan><tspan fill="#94e2d5" font-style="italic">0x</tspan><tspan fill="#fab387" font-style="italic">2AE5</tspan></text>
<text style="white-space:pre" x="12" y="1375"><tspan fill="#6c7086">72 </tspan><tspan fill="#94e2d5" font-style="italic">0x</tspan><tspan fill="#fab387" font-style="italic">_F109</tspan></text>
<text style="white-space:pre" x="12" y="1394"><tspan fill="#6c7086">73 </tspan><tspan fill="#94e2d5" font-style="italic">0x</tspan><tspan fill="#fab387" font-style="italic">D8_E2.5F_7Bp8</tspan></text>
<text style="white-space:pre" x="12" y="1413"><tspan fill="#6c7086">74 </tspan><tspan fill="#94e2d5" font-style="italic">0x</tspan><tspan fill="#fab387" font-style="italic">abcdef.abcdef</tspan></text>
<text style="white-space:pre" x="12" y="1432"><tspan fill="#6c7086">75 </tspan><tspan fill="#fab387">0XA85CE</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#6a9955">// --- string</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#ce9178">'C'</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#ce9178">"Hello</tspan><tspan fill="#d7ba7d">\n</tspan><tspan fill="#ce9178">World</tspan><tspan fill="#d7ba7d">\n</tspan><tspan fill="#ce9178">"</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#ce9178">"</tspan><tspan fill="#d7ba7d">\"\'\t\r\n</tspan><tspan fill="#ce9178">"</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#ce9178">'''</tspan><tspan fill="#569cd6">Single</tspan><tspan fill="#ce9178"> line string'''</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#ce9178">''' Multi line</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan><tspan fill="#ce9178"> string</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#ce9178">'''</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#ce9178">'''</tspan><tspan fill="#569cd6">py</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#ce9178"> Block literal with a file type indicator.</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan><tspan fill="#ce9178">'''</tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#ce9178">#"a raw \n literal, where </tspan><tspan fill="#d7ba7d">\#n</tspan><tspan fill="#ce9178"> is the escape"#</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan><tspan fill="#ce9178">##"nested "# stays inside, and </tspan><tspan fill="#d7ba7d">\##n</tspan><tspan fill="#ce9178"> is the escape"##</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#ce9178">#'''</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan><tspan fill="#ce9178"> A raw block literal.</tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#ce9178">'''#</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan><tspan fill="#ce9178">"unterminated</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan><tspan fill="#6a9955">// --- characters</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan><tspan fill="#ce9178">'a'</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d7ba7d">\n</tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d7ba7d">\0</tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d7ba7d">\u{1F600}</tspan><tspan fill="#ce9178">'</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#ce9178">'</tspan><tspan fill="#d7ba7d">\x70</tspan><tspan fill="#ce9178">'</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6e7681">30 </tspan><tspan fill="#ce9178">''</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6e7681">31 </tspan><tspan fill="#ce9178">'abcde'</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6e7681">32 </tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6e7681">33 </tspan><tspan fill="#6a9955">// --- true-false</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6e7681">34 </tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6e7681">35 </tspan><tspan fill="#569cd6">true</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">false</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6e7681">36 </tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6e7681">37 </tspan><tspan fill="#6a9955">// --- type-literals</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6e7681">38 </tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6e7681">39 </tspan><tspan fill="#4ec9b0">array</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">auto</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">bool</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">char</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">str</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">type</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6e7681">40 </tspan><tspan fill="#4ec9b0">i8</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i16</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i64</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i128</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i10</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6e7681">41 </tspan><tspan fill="#4ec9b0">u8</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">u16</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">u32</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">u64</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">u128</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">u11</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6e7681">42 </tspan><tspan fill="#4ec9b0">f8</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">f16</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">f32</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">f64</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">f128</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">f12</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6e7681">43 </tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6e7681">44 </tspan><tspan fill="#6a9955">// --- numbers</tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6e7681">45 </tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6e7681">46 </tspan><tspan fill="#b5cea8">12345</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#b5cea8">6789</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#b5cea8">00012345</tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6e7681">47 </tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6e7681">48 </tspan><tspan fill="#b5cea8">1234.56789</tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6e7681">49 </tspan><tspan fill="#b5cea8">0.875</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6e7681">50 </tspan><tspan fill="#b5cea8">0.3e5</tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6e7681">51 </tspan><tspan fill="#b5cea8">1e5</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6e7681">52 </tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#b5cea8">123</tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6e7681">53 </tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#b5cea8">1e3</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6e7681">54 </tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6e7681">55 </tspan><tspan fill="#b5cea8">0o755</tspan></text>
<text style="white-space:pre" x="12" y="1071"><tspan fill="#6e7681">56 </tspan><tspan fill="#b5cea8">0o_17</tspan></text>
<text style="white-space:pre" x="12" y="1090"><tspan fill="#6e7681">57 </tspan><tspan fill="#b5cea8">0o</tspan><tspan fill="#d4d4d4">8</tspan></text>
<text style="white-space:pre" x="12" y="1109"><tspan fill="#6e7681">58 </tspan></text>
<text style="white-space:pre" x="12" y="1128"><tspan fill="#6e7681">59 </tspan><tspan fill="#b5cea8">0b1011_0010</tspan></text>
<text style="white-space:pre" x="12" y="1147"><tspan fill="#6e7681">60 </tspan><tspan fill="#b5cea8">0b_010</tspan></text>
<text style="white-space:pre" x="12" y="1166"><tspan fill="#6e7681">61 </tspan><tspan fill="#b5cea8">0b</tspan><tspan fill="#d4d4d4">2345</tspan></text>
<text style="white-space:pre" x="12" y="1185"><tspan fill="#6e7681">62 </tspan><tspan fill="#b5cea8">0</tspan><tspan fill="#d4d4d4">B011</tspan></text>
<text style="white-space:pre" x="12" y="1204"><tspan fill="#6e7681">63 </tspan></text>
<text style="white-space:pre" x="12" y="1223"><tspan fill="#6e7681">64 </tspan><tspan fill="#b5cea8">0x2AE5</tspan></text>
<text style="white-space:pre" x="12" y="1242"><tspan fill="#6e7681">65 </tspan><tspan fill="#b5cea8">0x_F109</tspan></text>
<text style="white-space:pre" x="12" y="1261"><tspan fill="#6e7681">66 </tspan><tspan fill="#b5cea8">0xD8_E2.5F_7Bp8</tspan></text>
<text style="white-space:pre" x="12" y="1280"><tspan fill="#6e7681">67 </tspan><tspan fill="#b5cea8">0xabcdef.abcdef</tspan></text>
<text style="white-space:pre" x="12" y="1299"><tspan fill="#6e7681">68 </tspan><tspan fill="#b5cea8">0</tspan><tspan fill="#d4d4d4">XA85CE</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 11 KiB

+47 -47
View File
@@ -1,50 +1,50 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="898" viewBox="0 0 721 898">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> More single line comments</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#cba6f7">package</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">Carbon</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#cba6f7">interface</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">HasValueParam</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">V</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Go</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">HasValueParam</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">5</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Go</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">42</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">Point</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Origin</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{.</tspan><tspan fill="#eba0ac" font-style="italic">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">0</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">y</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">0</tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">y</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Procedure</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">returned</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">zoop</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">0</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">while</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#89b4fa">DoSomeJob</tspan><tspan fill="#74c7ec">())</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">zoop</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">+=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6c7086">30 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6c7086">31 </tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6c7086">32 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6c7086">33 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6c7086">34 </tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6c7086">35 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Main</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6c7086">36 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">str</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">Hello world</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6c7086">37 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">hex</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">0x</tspan><tspan fill="#fab387" font-style="italic">ABCDEF1234567890</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6c7086">38 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">bin</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">0b</tspan><tspan fill="#fab387" font-weight="bold">0000111001010010</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6c7086">39 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">dec</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">123456789012345678</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6c7086">40 </tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6c7086">41 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">big</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Core</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">Int</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#fab387">1024</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1234</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6c7086">42 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">aaa</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">auto</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">Carbon</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6c7086">43 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">view</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">str</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#a6e3a1">Carbon</tspan><tspan fill="#74c7ec" font-style="italic">"</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6c7086">44 </tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6c7086">45 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">return</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">Procedure</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6c7086">46 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#6a9955">// More single line comments</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#569cd6">package</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Carbon</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#569cd6">interface</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">HasValueParam</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">V</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">) {</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Go</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#569cd6">self</tspan><tspan fill="#d4d4d4">) -&gt; </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> () </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">HasValueParam</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#b5cea8">5</tspan><tspan fill="#d4d4d4">) {</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Go</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#569cd6">self</tspan><tspan fill="#d4d4d4">) -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> { </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#b5cea8">42</tspan><tspan fill="#d4d4d4">; }</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Point</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Origin</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#569cd6">Self</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> {.</tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">0</tspan><tspan fill="#d4d4d4">, .</tspan><tspan fill="#9cdcfe">y</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">0</tspan><tspan fill="#d4d4d4">};</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#d4d4d4"> }</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">x</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">y</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Procedure</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">returned</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">zoop</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">0</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">while</tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#dcdcaa">DoSomeJob</tspan><tspan fill="#d4d4d4">()) {</tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">zoop</tspan><tspan fill="#d4d4d4"> += </tspan><tspan fill="#b5cea8">1</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6e7681">30 </tspan><tspan fill="#d4d4d4"> }</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6e7681">31 </tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6e7681">32 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">var</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6e7681">33 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6e7681">34 </tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6e7681">35 </tspan><tspan fill="#569cd6">fn</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Main</tspan><tspan fill="#d4d4d4">() -&gt; </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6e7681">36 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">str</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#ce9178">"Hello world"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6e7681">37 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">hex</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">0xABCDEF1234567890</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6e7681">38 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">bin</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">0b0000111001010010</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6e7681">39 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">dec</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#b5cea8">123456789012345678</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6e7681">40 </tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6e7681">41 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">big</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">Core</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#dcdcaa">Int</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#b5cea8">1024</tspan><tspan fill="#d4d4d4">) = </tspan><tspan fill="#b5cea8">1234</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6e7681">42 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">aaa</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">auto</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#ce9178">"Carbon"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6e7681">43 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">let</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#9cdcfe">view</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">str</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#ce9178">"Carbon"</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6e7681">44 </tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6e7681">45 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">return</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#dcdcaa">Procedure</tspan><tspan fill="#d4d4d4">();</tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6e7681">46 </tspan><tspan fill="#d4d4d4">}</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 11 KiB

-38
View File
@@ -30,7 +30,6 @@ interface I;
impl C as (I(A, B, C.(D.E(F, G)).H)) {}
impl C as I where .A = (B where .Self = {}) {}
impl C as I where .A = {} and .B = C {}
impl forall [T: I where .A = i32] T as J where .B = T.A {}
impl Self as I;
impl as I;
@@ -40,40 +39,3 @@ constraint Constraint {
require impls I;
extern require impls I;
}
namespace N;
class N.C1 {
fn N.C1.Make() -> Self;
}
alias N.A = N.C1;
fn N.C1.Other();
class Outer(T: type).Inner(U: type) {}
fn Outer(T: type).Inner(U: type).F[self: Self](x: T) -> U;
fn N.Base(N.T).Member() {}
interface N.I2;
constraint N.C2 {}
class C6 {
fn destroy(ref self);
}
fn C6.destroy(ref self) {}
var p: C6* = &c6;
var q: typeof(p) = p;
var r: typeof(Make(p, (q))).Pointee = *p;
// --- the same names in type and expression positions
var o: Optional(Slice(i32)) = Optional(Slice(i32)).None();
let origin: Point = Point.Origin();
let t: type = Point;
var c: Core.Int(64) = x as Core.Int(64);
var v: Cpp.std.vector(i32) = Make(i32, Vector(Point));
var s: {.x: i32, .y: Point} = {.x = 1, .y = p};
var tup: (i32, Point) = (1, p);
fn Pick[T: Hashable & Eq where .Key = i32](t: T) -> T.Key;
fn Iter() -> Vector(T).Iterator;
if (T == Point and x impls Hashable) {}
alias lower = i32;
var l: lower = a * b;
+43 -81
View File
@@ -1,83 +1,45 @@
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="1525" viewBox="0 0 721 1525">
<rect width="100%" height="100%" fill="#1e1e2e"/>
<svg xmlns="http://www.w3.org/2000/svg" width="721" height="803" viewBox="0 0 721 803">
<rect width="100%" height="100%" fill="#1f1f1f"/>
<g xml:space="preserve" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">
<text style="white-space:pre" x="12" y="26"><tspan fill="#6c7086"> 1 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6c7086"> 2 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6c7086"> 3 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6c7086"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6c7086"> 5 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6c7086"> 6 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C2</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T1</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">T2</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C1</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6c7086"> 7 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C3</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6c7086"> 8 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">extend</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">base</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">C1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6c7086"> 9 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6c7086">10 </tspan><tspan fill="#cba6f7">class</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6c7086">11 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#89b4fa">C4</tspan><tspan fill="#74c7ec">(</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6c7086">12 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T1</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">),</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6c7086">13 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-style="italic">T2</tspan><tspan fill="#94e2d5">:</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6c7086">14 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">A</tspan><tspan fill="#74c7ec">.(</tspan><tspan fill="#89b4fa">B</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">E</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">F</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">G</tspan><tspan fill="#74c7ec">)).</tspan><tspan fill="#eba0ac" font-style="italic">C</tspan><tspan fill="#74c7ec">)</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6c7086">15 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">D</tspan><tspan fill="#74c7ec">)))</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6c7086">16 </tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6c7086">17 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C5</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6c7086">18 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6c7086">19 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">extend</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6c7086">20 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6c7086">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6c7086">22 </tspan><tspan fill="#cba6f7">alias</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">a1</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">C1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6c7086">23 </tspan><tspan fill="#cba6f7">alias</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">a2</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6c7086">24 </tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6c7086">25 </tspan><tspan fill="#cba6f7">adapt</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">SomeClass</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6c7086">26 </tspan><tspan fill="#cba6f7">adapt</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{.</tspan><tspan fill="#eba0ac" font-style="italic">a</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">SomeClass</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">b</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6c7086">27 </tspan><tspan fill="#cba6f7">adapt</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6c7086">28 </tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6c7086">29 </tspan><tspan fill="#cba6f7">interface</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6c7086">30 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">A</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">B</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">C</tspan><tspan fill="#74c7ec">.(</tspan><tspan fill="#cdd6f4">D</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-style="italic">E</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">F</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">G</tspan><tspan fill="#74c7ec">)).</tspan><tspan fill="#eba0ac" font-style="italic">H</tspan><tspan fill="#74c7ec">))</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6c7086">31 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">B</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{})</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6c7086">32 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">and</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">B</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">C</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6c7086">33 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">forall</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">[</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">I</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">]</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">J</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">B</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">T</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6c7086">34 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6c7086">35 </tspan><tspan fill="#cba6f7">impl</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6c7086">36 </tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6c7086">37 </tspan><tspan fill="#cba6f7">constraint</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Constraint</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6c7086">38 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">require</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6c7086">39 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">require</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6c7086">40 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">require</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6c7086">41 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7" font-style="italic">extern</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">require</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">I</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="805"><tspan fill="#6c7086">42 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="824"><tspan fill="#6c7086">43 </tspan></text>
<text style="white-space:pre" x="12" y="843"><tspan fill="#6c7086">44 </tspan><tspan fill="#cba6f7">namespace</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc">N</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="862"><tspan fill="#6c7086">45 </tspan></text>
<text style="white-space:pre" x="12" y="881"><tspan fill="#6c7086">46 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C1</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="900"><tspan fill="#6c7086">47 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">C1</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-weight="bold">Make</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="919"><tspan fill="#6c7086">48 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="938"><tspan fill="#6c7086">49 </tspan><tspan fill="#cba6f7">alias</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">A</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">C1</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="957"><tspan fill="#6c7086">50 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">C1</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-weight="bold">Other</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="976"><tspan fill="#6c7086">51 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">Outer</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">Inner</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">U</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="995"><tspan fill="#6c7086">52 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">Outer</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">Inner</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4" font-style="italic">U</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#89b4fa" font-weight="bold">F</tspan><tspan fill="#74c7ec">[</tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">Self</tspan><tspan fill="#74c7ec">](</tspan><tspan fill="#cdd6f4" font-style="italic">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">U</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1014"><tspan fill="#6c7086">53 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">Base</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#89b4fa" font-weight="bold">Member</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="1033"><tspan fill="#6c7086">54 </tspan><tspan fill="#cba6f7">interface</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">I2</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1052"><tspan fill="#6c7086">55 </tspan><tspan fill="#cba6f7">constraint</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">N</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">C2</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="1071"><tspan fill="#6c7086">56 </tspan></text>
<text style="white-space:pre" x="12" y="1090"><tspan fill="#6c7086">57 </tspan><tspan fill="#cba6f7">class</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold" font-style="italic">C6</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{</tspan></text>
<text style="white-space:pre" x="12" y="1109"><tspan fill="#6c7086">58 </tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">destroy</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cba6f7" font-style="italic">ref</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1128"><tspan fill="#6c7086">59 </tspan><tspan fill="#74c7ec">}</tspan></text>
<text style="white-space:pre" x="12" y="1147"><tspan fill="#6c7086">60 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">C6</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#94e2d5" font-style="italic">destroy</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cba6f7" font-style="italic">ref</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold">self</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="1166"><tspan fill="#6c7086">61 </tspan></text>
<text style="white-space:pre" x="12" y="1185"><tspan fill="#6c7086">62 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">C6</tspan><tspan fill="#94e2d5" font-weight="bold">*</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&amp;</tspan><tspan fill="#cdd6f4">c6</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1204"><tspan fill="#6c7086">63 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">q</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">typeof</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1223"><tspan fill="#6c7086">64 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">r</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">typeof</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#89b4fa">Make</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">q</tspan><tspan fill="#74c7ec">))).</tspan><tspan fill="#f9e2af">Pointee</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">*</tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1242"><tspan fill="#6c7086">65 </tspan></text>
<text style="white-space:pre" x="12" y="1261"><tspan fill="#6c7086">66 </tspan><tspan fill="#7f849c">//</tspan><tspan fill="#7f849c" font-style="italic"> --- the same names in type and expression positions</tspan></text>
<text style="white-space:pre" x="12" y="1280"><tspan fill="#6c7086">67 </tspan></text>
<text style="white-space:pre" x="12" y="1299"><tspan fill="#6c7086">68 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">o</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Optional</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af">Slice</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">))</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">Optional</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#89b4fa">Slice</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)).</tspan><tspan fill="#89b4fa" font-style="italic">None</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1318"><tspan fill="#6c7086">69 </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">origin</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Point</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">Point</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#89b4fa" font-style="italic">Origin</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1337"><tspan fill="#6c7086">70 </tspan><tspan fill="#cba6f7">let</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4" font-weight="bold" font-style="italic">t</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">type</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">Point</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1356"><tspan fill="#6c7086">71 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">c</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Core</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">Int</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#fab387">64</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">as</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Core</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">Int</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#fab387">64</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1375"><tspan fill="#6c7086">72 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">v</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-weight="bold">Cpp</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">std</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">vector</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">Make</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa">Vector</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">Point</tspan><tspan fill="#74c7ec">))</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1394"><tspan fill="#6c7086">73 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">s</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{.</tspan><tspan fill="#eba0ac" font-style="italic">x</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">y</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Point</tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{.</tspan><tspan fill="#eba0ac" font-style="italic">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">y</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">}</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1413"><tspan fill="#6c7086">74 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">tup</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Point</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#fab387">1</tspan><tspan fill="#74c7ec">,</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">p</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1432"><tspan fill="#6c7086">75 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Pick</tspan><tspan fill="#74c7ec">[</tspan><tspan fill="#cdd6f4" font-style="italic">T</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Hashable</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">&amp;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">Eq</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5" font-style="italic">where</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#eba0ac" font-style="italic">Key</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec">](</tspan><tspan fill="#cdd6f4" font-style="italic">t</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">T</tspan><tspan fill="#74c7ec">.</tspan><tspan fill="#f9e2af">Key</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1451"><tspan fill="#6c7086">76 </tspan><tspan fill="#cba6f7">fn</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#89b4fa" font-weight="bold">Iter</tspan><tspan fill="#74c7ec">()</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">-&gt;</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f5e0dc" font-weight="bold" font-style="italic">Vector</tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#f9e2af">T</tspan><tspan fill="#74c7ec">).</tspan><tspan fill="#f9e2af">Iterator</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1470"><tspan fill="#6c7086">77 </tspan><tspan fill="#f38ba8">if</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">(</tspan><tspan fill="#cdd6f4">T</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">==</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">Point</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f38ba8">and</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">x</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">impls</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" text-decoration="underline">Hashable</tspan><tspan fill="#74c7ec">)</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#74c7ec">{}</tspan></text>
<text style="white-space:pre" x="12" y="1489"><tspan fill="#6c7086">78 </tspan><tspan fill="#cba6f7">alias</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">lower</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af" font-style="italic">i32</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="1508"><tspan fill="#6c7086">79 </tspan><tspan fill="#cba6f7">var</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">l</tspan><tspan fill="#94e2d5">:</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#f9e2af">lower</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">=</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">a</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#94e2d5">*</tspan><tspan fill="#a6adc8"> </tspan><tspan fill="#cdd6f4">b</tspan><tspan fill="#74c7ec" font-weight="bold">;</tspan></text>
<text style="white-space:pre" x="12" y="26"><tspan fill="#6e7681"> 1 </tspan><tspan fill="#6a9955">// Part of the Carbon Language project, under the Apache License v2.0 with LLVM</tspan></text>
<text style="white-space:pre" x="12" y="45"><tspan fill="#6e7681"> 2 </tspan><tspan fill="#6a9955">// Exceptions. See /LICENSE for license information.</tspan></text>
<text style="white-space:pre" x="12" y="64"><tspan fill="#6e7681"> 3 </tspan><tspan fill="#6a9955">// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</tspan></text>
<text style="white-space:pre" x="12" y="83"><tspan fill="#6e7681"> 4 </tspan></text>
<text style="white-space:pre" x="12" y="102"><tspan fill="#6e7681"> 5 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C1</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="121"><tspan fill="#6e7681"> 6 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C2</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">T1</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">T2</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">C1</tspan><tspan fill="#d4d4d4">) {}</tspan></text>
<text style="white-space:pre" x="12" y="140"><tspan fill="#6e7681"> 7 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C3</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="159"><tspan fill="#6e7681"> 8 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">extend</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">base</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">C1</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="178"><tspan fill="#6e7681"> 9 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="197"><tspan fill="#6e7681">10 </tspan><tspan fill="#569cd6">class</tspan></text>
<text style="white-space:pre" x="12" y="216"><tspan fill="#6e7681">11 </tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#dcdcaa">C4</tspan><tspan fill="#d4d4d4">(</tspan></text>
<text style="white-space:pre" x="12" y="235"><tspan fill="#6e7681">12 </tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#4ec9b0">T1</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">type</tspan><tspan fill="#d4d4d4">),</tspan></text>
<text style="white-space:pre" x="12" y="254"><tspan fill="#6e7681">13 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">T2</tspan><tspan fill="#d4d4d4">:</tspan></text>
<text style="white-space:pre" x="12" y="273"><tspan fill="#6e7681">14 </tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">.(</tspan><tspan fill="#dcdcaa">B</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">E</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#dcdcaa">F</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">G</tspan><tspan fill="#d4d4d4">)).</tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4">)</tspan></text>
<text style="white-space:pre" x="12" y="292"><tspan fill="#6e7681">15 </tspan><tspan fill="#d4d4d4"> .</tspan><tspan fill="#4ec9b0">D</tspan><tspan fill="#d4d4d4">))) ;</tspan></text>
<text style="white-space:pre" x="12" y="311"><tspan fill="#6e7681">16 </tspan></text>
<text style="white-space:pre" x="12" y="330"><tspan fill="#6e7681">17 </tspan><tspan fill="#569cd6">class</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C5</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="349"><tspan fill="#6e7681">18 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="368"><tspan fill="#6e7681">19 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">extend</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="387"><tspan fill="#6e7681">20 </tspan><tspan fill="#d4d4d4">}</tspan></text>
<text style="white-space:pre" x="12" y="406"><tspan fill="#6e7681">21 </tspan></text>
<text style="white-space:pre" x="12" y="425"><tspan fill="#6e7681">22 </tspan><tspan fill="#569cd6">alias</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">a1</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#4ec9b0">C1</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="444"><tspan fill="#6e7681">23 </tspan><tspan fill="#569cd6">alias</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">a2</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="463"><tspan fill="#6e7681">24 </tspan></text>
<text style="white-space:pre" x="12" y="482"><tspan fill="#6e7681">25 </tspan><tspan fill="#569cd6">adapt</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">SomeClass</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="501"><tspan fill="#6e7681">26 </tspan><tspan fill="#569cd6">adapt</tspan><tspan fill="#d4d4d4"> {.</tspan><tspan fill="#9cdcfe">a</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">SomeClass</tspan><tspan fill="#d4d4d4">, .</tspan><tspan fill="#9cdcfe">b</tspan><tspan fill="#d4d4d4">: </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">};</tspan></text>
<text style="white-space:pre" x="12" y="520"><tspan fill="#6e7681">27 </tspan><tspan fill="#569cd6">adapt</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">i32</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="539"><tspan fill="#6e7681">28 </tspan></text>
<text style="white-space:pre" x="12" y="558"><tspan fill="#6e7681">29 </tspan><tspan fill="#569cd6">interface</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="577"><tspan fill="#6e7681">30 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> (</tspan><tspan fill="#dcdcaa">I</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4">.(</tspan><tspan fill="#4ec9b0">D</tspan><tspan fill="#d4d4d4">.</tspan><tspan fill="#dcdcaa">E</tspan><tspan fill="#d4d4d4">(</tspan><tspan fill="#4ec9b0">F</tspan><tspan fill="#d4d4d4">, </tspan><tspan fill="#4ec9b0">G</tspan><tspan fill="#d4d4d4">)).</tspan><tspan fill="#4ec9b0">H</tspan><tspan fill="#d4d4d4">)) {}</tspan></text>
<text style="white-space:pre" x="12" y="596"><tspan fill="#6e7681">31 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">where</tspan><tspan fill="#d4d4d4"> .</tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4"> = (</tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">where</tspan><tspan fill="#d4d4d4"> .</tspan><tspan fill="#569cd6">Self</tspan><tspan fill="#d4d4d4"> = {}) {}</tspan></text>
<text style="white-space:pre" x="12" y="615"><tspan fill="#6e7681">32 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">where</tspan><tspan fill="#d4d4d4"> .</tspan><tspan fill="#4ec9b0">A</tspan><tspan fill="#d4d4d4"> = {} </tspan><tspan fill="#c586c0">and</tspan><tspan fill="#d4d4d4"> .</tspan><tspan fill="#4ec9b0">B</tspan><tspan fill="#d4d4d4"> = </tspan><tspan fill="#4ec9b0">C</tspan><tspan fill="#d4d4d4"> {}</tspan></text>
<text style="white-space:pre" x="12" y="634"><tspan fill="#6e7681">33 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">Self</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="653"><tspan fill="#6e7681">34 </tspan><tspan fill="#569cd6">impl</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">as</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="672"><tspan fill="#6e7681">35 </tspan></text>
<text style="white-space:pre" x="12" y="691"><tspan fill="#6e7681">36 </tspan><tspan fill="#569cd6">constraint</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">Constraint</tspan><tspan fill="#d4d4d4"> {</tspan></text>
<text style="white-space:pre" x="12" y="710"><tspan fill="#6e7681">37 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">require</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">T</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">impls</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="729"><tspan fill="#6e7681">38 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">require</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">Self</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">impls</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="748"><tspan fill="#6e7681">39 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">require</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">impls</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="767"><tspan fill="#6e7681">40 </tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">extern</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#569cd6">require</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#c586c0">impls</tspan><tspan fill="#d4d4d4"> </tspan><tspan fill="#4ec9b0">I</tspan><tspan fill="#d4d4d4">;</tspan></text>
<text style="white-space:pre" x="12" y="786"><tspan fill="#6e7681">41 </tspan><tspan fill="#d4d4d4">}</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 11 KiB