Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change comments from using # to using // #776

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ note:
┌─ const_generics.fe:2:5
2 │ ╭ pub fn bar() {
3 │ │ # const generics with literal.
3 │ │ // const generics with literal.
4 │ │ let array_lit: Array<i32, 8> = [i32(0); 8]
5 │ │ let array_lit2: Array<i32, { 8 }> = [i32(0); 8]
· │
Expand Down
44 changes: 22 additions & 22 deletions crates/analyzer/tests/snapshots/analysis__const_local.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ note:
^^ i64
5const C3: i64 = 10
^^ i64
6const C4: i64 = (C1 * C2) + C3 # 12
6const C4: i64 = (C1 * C2) + C3 // 12
^^ i64
7const EXP: u8 = 2
^^^ u8
8const C5: i64 = (C2 ** EXP) # 4
8const C5: i64 = (C2 ** EXP) // 4
^^ i64
9const C6: i64 = (C5 << 1) # 8
9const C6: i64 = (C5 << 1) // 8
^^ i64
10const C7: bool = (C5 < C6) and (C4 > C5) # true
10const C7: bool = (C5 < C6) and (C4 > C5) // true
^^ bool
11const C8: bool = false
^^ bool
12const C9: bool = C8 < C7 # true
12const C9: bool = C8 < C7 // true
^^ bool
13const C10: u256 = 42 if C9 else 0 # 42
13const C10: u256 = 42 if C9 else 0 // 42
^^^ u256
14let _arr: Array<bool, { C10 }> = [true; { C10 }]
^^^^ Array<bool, 42>
Expand All @@ -52,55 +52,55 @@ note:
^ i64: Value
5const C3: i64 = 10
^^ i64: Value
6const C4: i64 = (C1 * C2) + C3 # 12
6const C4: i64 = (C1 * C2) + C3 // 12
^^ ^^ i64: Value
│ │
i64: Value

note:
┌─ const_local.fe:6:25
6const C4: i64 = (C1 * C2) + C3 # 12
6const C4: i64 = (C1 * C2) + C3 // 12
^^^^^^^^^ ^^ i64: Value
│ │
i64: Value

note:
┌─ const_local.fe:6:25
6const C4: i64 = (C1 * C2) + C3 # 12
6const C4: i64 = (C1 * C2) + C3 // 12
^^^^^^^^^^^^^^ i64: Value
7const EXP: u8 = 2
^ u8: Value
8const C5: i64 = (C2 ** EXP) # 4
8const C5: i64 = (C2 ** EXP) // 4
^^ ^^^ u8: Value
│ │
i64: Value

note:
┌─ const_local.fe:8:25
8const C5: i64 = (C2 ** EXP) # 4
8const C5: i64 = (C2 ** EXP) // 4
^^^^^^^^^^^ i64: Value
9const C6: i64 = (C5 << 1) # 8
9const C6: i64 = (C5 << 1) // 8
^^ ^ u256: Value
│ │
i64: Value

note:
┌─ const_local.fe:9:25
9const C6: i64 = (C5 << 1) # 8
9const C6: i64 = (C5 << 1) // 8
^^^^^^^^^ i64: Value
10const C7: bool = (C5 < C6) and (C4 > C5) # true
10const C7: bool = (C5 < C6) and (C4 > C5) // true
^^ ^^ i64: Value
│ │
i64: Value

note:
┌─ const_local.fe:10:26
10const C7: bool = (C5 < C6) and (C4 > C5) # true
10const C7: bool = (C5 < C6) and (C4 > C5) // true
^^^^^^^^^ ^^ ^^ i64: Value
│ │ │
│ │ i64: Value
Expand All @@ -109,41 +109,41 @@ note:
note:
┌─ const_local.fe:10:40
10const C7: bool = (C5 < C6) and (C4 > C5) # true
10const C7: bool = (C5 < C6) and (C4 > C5) // true
^^^^^^^^^ bool: Value

note:
┌─ const_local.fe:10:26
10const C7: bool = (C5 < C6) and (C4 > C5) # true
10const C7: bool = (C5 < C6) and (C4 > C5) // true
^^^^^^^^^^^^^^^^^^^^^^^ bool: Value
11const C8: bool = false
^^^^^ bool: Value
12const C9: bool = C8 < C7 # true
12const C9: bool = C8 < C7 // true
^^ ^^ bool: Value
│ │
bool: Value

note:
┌─ const_local.fe:12:26
12const C9: bool = C8 < C7 # true
12const C9: bool = C8 < C7 // true
^^^^^^^ bool: Value
13const C10: u256 = 42 if C9 else 0 # 42
13const C10: u256 = 42 if C9 else 0 // 42
^^ bool: Value

note:
┌─ const_local.fe:13:27
13const C10: u256 = 42 if C9 else 0 # 42
13const C10: u256 = 42 if C9 else 0 // 42
^^ ^ u256: Value
│ │
u256: Value

note:
┌─ const_local.fe:13:27
13const C10: u256 = 42 if C9 else 0 # 42
13const C10: u256 = 42 if C9 else 0 // 42
^^^^^^^^^^^^^^^ u256: Value
14let _arr: Array<bool, { C10 }> = [true; { C10 }]
^^^ ^^^^ ^^^ u256: Value
Expand Down
6 changes: 3 additions & 3 deletions crates/analyzer/tests/snapshots/analysis__guest_book.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ note:
┌─ guest_book.fe:16:5
16 │ ╭ pub fn sign(self, ctx: Context, book_msg: String<100>) {
17 │ │ # All storage access is explicit using `self.<some-key>`
17 │ │ // All storage access is explicit using `self.<some-key>`
18 │ │ self.messages[ctx.msg_sender()] = book_msg
19 │ │
· │
Expand Down Expand Up @@ -64,8 +64,8 @@ note:
┌─ guest_book.fe:25:5
25 │ ╭ pub fn get_msg(self, addr: address) -> String<100> {
26 │ │ # Copying data from storage to memory
27 │ │ # has to be done explicitly via `to_mem()`
26 │ │ // Copying data from storage to memory
27 │ │ // has to be done explicitly via `to_mem()`
28 │ │ return self.messages[addr].to_mem()
29 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: addr, typ: address }] -> String<100>
Expand Down
Loading