This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +49
-0
lines changed
ql/test/library-tests/semmle/go/Function Expand file tree Collapse file tree 5 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ | main.go:7:6:7:7 | f1 | 0 | main.go:7:9:7:9 | x |
2+ | main.go:9:12:9:13 | f2 | 0 | main.go:9:15:9:15 | x |
3+ | main.go:9:12:9:13 | f2 | 1 | main.go:9:18:9:18 | y |
4+ | main.go:9:12:9:13 | f2 | -1 | main.go:9:7:9:7 | t |
5+ | main.go:11:12:11:13 | f3 | 0 | main.go:11:15:11:15 | x |
6+ | main.go:11:12:11:13 | f3 | 1 | main.go:11:22:11:22 | y |
7+ | main.go:11:12:11:13 | f3 | -1 | main.go:11:7:11:7 | _ |
8+ | main.go:13:6:13:7 | f4 | 0 | main.go:13:9:13:9 | x |
9+ | main.go:13:6:13:7 | f4 | 1 | main.go:13:16:13:16 | y |
10+ | main.go:15:6:15:7 | f5 | 0 | main.go:15:9:15:9 | x |
11+ | main.go:17:6:17:7 | f6 | 0 | main.go:17:9:17:9 | x |
Original file line number Diff line number Diff line change 1+ import go
2+
3+ from Function f , int i
4+ select f , i , f .getParameter ( i )
Original file line number Diff line number Diff line change 1+ | main.go:17:6:17:7 | f6 | 0 | main.go:17:17:17:17 | y |
2+ | main.go:19:6:19:7 | f7 | 0 | main.go:19:12:19:12 | x |
3+ | main.go:19:6:19:7 | f7 | 1 | main.go:19:15:19:15 | y |
4+ | main.go:21:6:21:7 | f8 | 0 | main.go:21:12:21:12 | x |
5+ | main.go:21:6:21:7 | f8 | 1 | main.go:21:19:21:19 | _ |
6+ | main.go:23:6:23:7 | f9 | 0 | main.go:23:12:23:12 | _ |
7+ | main.go:23:6:23:7 | f9 | 1 | main.go:23:19:23:19 | y |
Original file line number Diff line number Diff line change 1+ import go
2+
3+ from Function f , int i
4+ select f , i , f .getResult ( i )
Original file line number Diff line number Diff line change 1+ package main
2+
3+ type t int
4+
5+ func main () {}
6+
7+ func f1 (x int ) {}
8+
9+ func (t t ) f2 (x , y int ) {}
10+
11+ func (_ t ) f3 (x int , y string ) {}
12+
13+ func f4 (x int , y ... string ) {}
14+
15+ func f5 (x int ) int { return 0 }
16+
17+ func f6 (x int ) (y int ) { return 0 }
18+
19+ func f7 () (x , y int ) { return 0 , 0 }
20+
21+ func f8 () (x int , _ string ) { return 0 , "" }
22+
23+ func f9 () (_ int , y string ) { return 0 , "" }
You can’t perform that action at this time.
0 commit comments