forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfield.res.txt
64 lines (54 loc) · 990 Bytes
/
field.res.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
let n = user.name
(currentNode.parent->castNotOption).color
let x = -a.bar
let x = true.x
let x = (12: int).x
let x = list{1, 2, ...x}.x
let x = module(Foo: Bar).x
let x = module(Foo).x
let x = Rgb(1, 2, 3).x
let x = [a, b, c].x
let x = {x: 1, y: 3}.x
let x = (1, 2, 3).x
let x = (%extension).x
let x = user.name.last
let x = streets[0].house
let x = apply(arg1, arg2).field
let x = apply(arg1, arg2).field
let x = (-1).x
let x = (!true).x
let x = (x => print(x)).x
let x = (
switch x {
| Blue => ()
| Yello => ()
}
).x
let x = (
for i in 0 to 10 {
print_int(i)
}
).x
let x = (
if i < 10 {
print_int(i)
} else {
print_int(1000)
}
).x
let x = (
while i < 10 {
print_int(i)
}
).x
let x = (assert(false)).x
let x = (
try sideEffect() catch {
| Exit => ()
}
).x
let x = (@attr expr).x
let x = (a + b).x
let x = @attr user.name
let x = (isLeft ? node.left : node.right).color
let x = (@attrOnTernary (isLeft ? node.left : node.right)).color