Skip to content

Commit 6651c94

Browse files
committed
Swift: failing test for extracting function bodies
1 parent 2148e8b commit 6651c94

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| Sources/hello-world/hello_world.swift:4:12:5:5 | init() | Sources/hello-world/hello_world.swift:4:19:5:5 | { ... } |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import swift
2+
3+
from StructDecl struct, ConstructorDecl decl, BraceStmt body
4+
where struct.getName() = "hello_world" and decl = struct.getAMember() and body = decl.getBody()
5+
select decl, body

0 commit comments

Comments
 (0)