summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/operators.expected.raydebug
blob: 56d9ac39ac124c4855afd8f59ebec54e0dd0b035 (plain)
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
reserved(class) class(Feeling)
  
  reserved(def) method(~)
    ident(p) symbol(:drunk)
  reserved(end)
  
  reserved(def) method(!)
    ident(p) symbol(:alert)
  reserved(end)
  
  reserved(alias) method(not) method(!@)
  reserved(alias) method(tilde) method(~@)
  
  reserved(def) method(-@)
    ident(p) symbol(:bad)
  reserved(end)
  
  reserved(def) method(+@)
    ident(p) symbol(:good)
  reserved(end)
  
reserved(end)

ident(feeling) operator(=) constant(Feeling)operator(.)ident(new)

operator(-)ident(feeling)  comment(# => :bad)
operator(+)ident(feeling)  comment(# => :good)
operator(!)ident(feeling)  comment(# => :alert)
operator(~)ident(feeling)  comment(# => :drunk)

reserved(def) method(=~) ident(other)
  ident(bla)
reserved(end)

ident(feeling)operator(.)ident(!)  comment(# => :alert)
ident(feeling)operator(.)ident(~)  comment(# => :drunk)
ident(feeling)operator(.)ident(!@)  comment(# => :alert)
ident(feeling)operator(.)ident(~@)  comment(# => :drunk)
ident(feeling)operator(.)ident(-@)operator(()operator(\))  comment(# => :bad)
ident(feeling)operator(.)ident(+@)operator(()operator(\))  comment(# => :good)

comment(# >> :bad)
comment(# >> :good)
comment(# >> :alert)
comment(# >> :drunk)
comment(# >> :alert)
comment(# >> :drunk)
comment(# >> :alert)
comment(# >> :drunk)
comment(# >> :bad)
comment(# >> :good)