mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Fix some snapshots
This commit is contained in:
parent
c4ad0970d8
commit
abab38771f
5 changed files with 13 additions and 96 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# META
|
||||
~~~ini
|
||||
description=Doc comments on nested types and associated items
|
||||
type=snippet
|
||||
type=file:Foo.roc
|
||||
~~~
|
||||
# SOURCE
|
||||
~~~roc
|
||||
|
|
@ -15,20 +15,9 @@ Foo := [Whatever].{
|
|||
}
|
||||
~~~
|
||||
# EXPECTED
|
||||
UNUSED VARIABLE - nominal_associated_doc_comments.md:7:5:7:27
|
||||
NIL
|
||||
# PROBLEMS
|
||||
**UNUSED VARIABLE**
|
||||
Variable `defaultBar` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_defaultBar` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_associated_doc_comments.md:7:5:7:27:**
|
||||
```roc
|
||||
defaultBar = Foo.Bar.X
|
||||
```
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
NIL
|
||||
# TOKENS
|
||||
~~~zig
|
||||
UpperIdent(2:1-2:4),OpColonEqual(2:5-2:7),OpenSquare(2:8-2:9),UpperIdent(2:9-2:17),CloseSquare(2:17-2:18),Dot(2:18-2:19),OpenCurly(2:19-2:20),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# META
|
||||
~~~ini
|
||||
description=Multi-line doc comments on associated items
|
||||
type=snippet
|
||||
type=file:Foo.roc
|
||||
~~~
|
||||
# SOURCE
|
||||
~~~roc
|
||||
|
|
@ -17,20 +17,9 @@ Foo := [A, B].{
|
|||
}
|
||||
~~~
|
||||
# EXPECTED
|
||||
UNUSED VARIABLE - nominal_associated_multiline_doc.md:9:5:9:22
|
||||
NIL
|
||||
# PROBLEMS
|
||||
**UNUSED VARIABLE**
|
||||
Variable `defaultValue` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_defaultValue` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_associated_multiline_doc.md:9:5:9:22:**
|
||||
```roc
|
||||
defaultValue = 42
|
||||
```
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
NIL
|
||||
# TOKENS
|
||||
~~~zig
|
||||
UpperIdent(1:1-1:4),OpColonEqual(1:5-1:7),OpenSquare(1:8-1:9),UpperIdent(1:9-1:10),Comma(1:10-1:11),UpperIdent(1:12-1:13),CloseSquare(1:13-1:14),Dot(1:14-1:15),OpenCurly(1:15-1:16),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# META
|
||||
~~~ini
|
||||
description=Nominal type with multi-statement associated items
|
||||
type=snippet
|
||||
type=file:Foo.roc
|
||||
~~~
|
||||
# SOURCE
|
||||
~~~roc
|
||||
|
|
@ -12,46 +12,9 @@ Foo := [A, B, C].{
|
|||
}
|
||||
~~~
|
||||
# EXPECTED
|
||||
UNUSED VARIABLE - nominal_type_with_associated_multi_statement.md:2:5:2:10
|
||||
UNUSED VARIABLE - nominal_type_with_associated_multi_statement.md:3:5:3:11
|
||||
UNUSED VARIABLE - nominal_type_with_associated_multi_statement.md:4:5:4:11
|
||||
NIL
|
||||
# PROBLEMS
|
||||
**UNUSED VARIABLE**
|
||||
Variable `x` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_x` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_type_with_associated_multi_statement.md:2:5:2:10:**
|
||||
```roc
|
||||
x = 5
|
||||
```
|
||||
^^^^^
|
||||
|
||||
|
||||
**UNUSED VARIABLE**
|
||||
Variable `y` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_y` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_type_with_associated_multi_statement.md:3:5:3:11:**
|
||||
```roc
|
||||
y = 10
|
||||
```
|
||||
^^^^^^
|
||||
|
||||
|
||||
**UNUSED VARIABLE**
|
||||
Variable `z` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_z` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_type_with_associated_multi_statement.md:4:5:4:11:**
|
||||
```roc
|
||||
z = 15
|
||||
```
|
||||
^^^^^^
|
||||
|
||||
|
||||
NIL
|
||||
# TOKENS
|
||||
~~~zig
|
||||
UpperIdent(1:1-1:4),OpColonEqual(1:5-1:7),OpenSquare(1:8-1:9),UpperIdent(1:9-1:10),Comma(1:10-1:11),UpperIdent(1:12-1:13),Comma(1:13-1:14),UpperIdent(1:15-1:16),CloseSquare(1:16-1:17),Dot(1:17-1:18),OpenCurly(1:18-1:19),
|
||||
|
|
|
|||
|
|
@ -1,27 +1,16 @@
|
|||
# META
|
||||
~~~ini
|
||||
description=Nominal type with single statement associated items
|
||||
type=snippet
|
||||
type=file:Foo.roc
|
||||
~~~
|
||||
# SOURCE
|
||||
~~~roc
|
||||
Foo := [A, B, C].{ x = 5 }
|
||||
~~~
|
||||
# EXPECTED
|
||||
UNUSED VARIABLE - nominal_type_with_associated_single_statement.md:1:20:1:25
|
||||
NIL
|
||||
# PROBLEMS
|
||||
**UNUSED VARIABLE**
|
||||
Variable `x` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_x` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**nominal_type_with_associated_single_statement.md:1:20:1:25:**
|
||||
```roc
|
||||
Foo := [A, B, C].{ x = 5 }
|
||||
```
|
||||
^^^^^
|
||||
|
||||
|
||||
NIL
|
||||
# TOKENS
|
||||
~~~zig
|
||||
UpperIdent(1:1-1:4),OpColonEqual(1:5-1:7),OpenSquare(1:8-1:9),UpperIdent(1:9-1:10),Comma(1:10-1:11),UpperIdent(1:12-1:13),Comma(1:13-1:14),UpperIdent(1:15-1:16),CloseSquare(1:16-1:17),Dot(1:17-1:18),OpenCurly(1:18-1:19),LowerIdent(1:20-1:21),OpAssign(1:22-1:23),Int(1:24-1:25),CloseCurly(1:26-1:27),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# META
|
||||
~~~ini
|
||||
description=Type alias with associated items produces error
|
||||
type=snippet
|
||||
type=file:Foo.roc
|
||||
~~~
|
||||
# SOURCE
|
||||
~~~roc
|
||||
|
|
@ -9,7 +9,6 @@ Foo : [A, B, C].{ x = 5 }
|
|||
~~~
|
||||
# EXPECTED
|
||||
TYPE ALIAS WITH ASSOCIATED ITEMS - type_alias_with_associated.md:1:16:1:17
|
||||
UNUSED VARIABLE - type_alias_with_associated.md:1:19:1:24
|
||||
# PROBLEMS
|
||||
**TYPE ALIAS WITH ASSOCIATED ITEMS**
|
||||
Type aliases cannot have associated items (such as types or methods).
|
||||
|
|
@ -23,18 +22,6 @@ Foo : [A, B, C].{ x = 5 }
|
|||
^
|
||||
|
||||
|
||||
**UNUSED VARIABLE**
|
||||
Variable `x` is not used anywhere in your code.
|
||||
|
||||
If you don't need this variable, prefix it with an underscore like `_x` to suppress this warning.
|
||||
The unused variable is declared here:
|
||||
**type_alias_with_associated.md:1:19:1:24:**
|
||||
```roc
|
||||
Foo : [A, B, C].{ x = 5 }
|
||||
```
|
||||
^^^^^
|
||||
|
||||
|
||||
# TOKENS
|
||||
~~~zig
|
||||
UpperIdent(1:1-1:4),OpColon(1:5-1:6),OpenSquare(1:7-1:8),UpperIdent(1:8-1:9),Comma(1:9-1:10),UpperIdent(1:11-1:12),Comma(1:12-1:13),UpperIdent(1:14-1:15),CloseSquare(1:15-1:16),Dot(1:16-1:17),OpenCurly(1:17-1:18),LowerIdent(1:19-1:20),OpAssign(1:21-1:22),Int(1:23-1:24),CloseCurly(1:25-1:26),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue