summaryrefslogtreecommitdiff
path: root/test/scanners/php/elvis.expected.raydebug
blob: 894ad01b0e62a140d551c4a31eff89891eb1418a (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
local_variable($this)operator(?)local_variable($is)operator(+)constant(NO)operator(:)local_variable($label)operator(;)

comment(// Two labels:)
label(foo)operator(:) reserved(switch) operator(()constant(TYPE)operator(()ident(v)operator(\))operator(\)) operator({)
  reserved(case) constant(T_CLASS)operator(:) reserved(case) constant(T_MODULE)operator(:)
    ident(rb_str_append)operator(()ident(s)operator(,) ident(rb_inspect)operator(()ident(v)operator(\))operator(\))operator(;)
    reserved(break)operator(;)
  reserved(default)operator(:)
    label(bar)operator(:)
    ident(rb_str_append)operator(()ident(s)operator(,) ident(rb_any_to_s)operator(()ident(v)operator(\))operator(\))operator(;)
    reserved(break)operator(;)
operator(})
comment(// These are two more labels:)
reserved(function)operator(()ident(call)operator(\))operator(;)
label(label2)operator(:) ident(label3)operator(:) ident(a) operator(=) ident(b) operator(+) ident(c)operator(;)

comment(// Another label:)
reserved(if) operator(()integer(1)operator(\)) operator({)
  label(label4)operator(:) ident(a) operator(=) ident(b) operator(+) ident(c)operator(;)
operator(})

comment(// Not a label.)
ident(test)operator(()
  ident(a)operator(?)
  ident(b)operator(:)
  ident(c)
operator(\))