mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Update labeled statements tests
This commit is contained in:
parent
8dee0368ad
commit
faae21e8df
3
test/fixtures/go/label-statements.A.go
vendored
3
test/fixtures/go/label-statements.A.go
vendored
@ -8,4 +8,7 @@ L1: { // L1 labels block => L1 does not apply to for loop
|
||||
break L1; // comment
|
||||
}
|
||||
}
|
||||
{
|
||||
insert:
|
||||
}
|
||||
}
|
||||
|
3
test/fixtures/go/label-statements.B.go
vendored
3
test/fixtures/go/label-statements.B.go
vendored
@ -8,4 +8,7 @@ M1: { // M1 labels block => M1 does not apply to for loop
|
||||
break M1; // comment
|
||||
}
|
||||
}
|
||||
{
|
||||
replacement:
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,8 @@
|
||||
->(Identifier) })
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty))))))))))
|
||||
(Empty)))))))
|
||||
(Label
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Empty)))))
|
||||
|
@ -39,4 +39,8 @@
|
||||
->(Identifier) })
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty))))))))))
|
||||
(Empty)))))))
|
||||
(Label
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Empty)))))
|
||||
|
5
test/fixtures/go/label-statements.parseA.txt
vendored
5
test/fixtures/go/label-statements.parseA.txt
vendored
@ -34,4 +34,7 @@
|
||||
(Identifier))
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty))))))))))
|
||||
(Empty)))))))
|
||||
(Label
|
||||
(Identifier)
|
||||
(Empty)))))
|
||||
|
5
test/fixtures/go/label-statements.parseB.txt
vendored
5
test/fixtures/go/label-statements.parseB.txt
vendored
@ -34,4 +34,7 @@
|
||||
(Identifier))
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty))))))))))
|
||||
(Empty)))))))
|
||||
(Label
|
||||
(Identifier)
|
||||
(Empty)))))
|
||||
|
Loading…
Reference in New Issue
Block a user