Skip to content

Commit fa18fd2

Browse files
committed
Add method defs
1 parent cbbf7c2 commit fa18fd2

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed
Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
| test.go:19:2:19:2 | definition of a | test.go:20:2:20:2 | a |
2-
| test.go:19:2:19:2 | definition of a | test.go:21:2:21:2 | a |
3-
| test.go:19:2:19:2 | definition of a | test.go:22:2:22:2 | a |
4-
| test.go:19:2:19:2 | definition of a | test.go:23:2:23:2 | a |
5-
| test.go:20:11:20:14 | &... | test.go:20:11:20:14 | &... |
6-
| test.go:20:12:20:14 | selection of b | test.go:20:12:20:14 | selection of b |
7-
| test.go:21:2:21:5 | selection of bs | test.go:21:2:21:5 | selection of bs |
8-
| test.go:21:2:21:8 | index expression | test.go:21:2:21:8 | index expression |
9-
| test.go:21:17:21:20 | &... | test.go:21:17:21:20 | &... |
10-
| test.go:21:18:21:20 | struct literal | test.go:21:18:21:20 | struct literal |
11-
| test.go:22:2:22:5 | selection of bs | test.go:22:2:22:5 | selection of bs |
12-
| test.go:22:2:22:8 | index expression | test.go:22:2:22:8 | index expression |
13-
| test.go:22:2:22:13 | implicit dereference | test.go:22:2:22:13 | implicit dereference |
14-
| test.go:22:2:22:13 | selection of cptr | test.go:22:2:22:13 | selection of cptr |
15-
| test.go:23:2:23:7 | implicit dereference | test.go:23:2:23:7 | implicit dereference |
16-
| test.go:23:2:23:7 | selection of bptr | test.go:23:2:23:7 | selection of bptr |
17-
| test.go:23:2:23:12 | implicit dereference | test.go:23:2:23:12 | implicit dereference |
18-
| test.go:23:2:23:12 | selection of cptr | test.go:23:2:23:12 | selection of cptr |
1+
| file://:0:0:0:0 | [summary] to write: Argument[0] in copy | file://:0:0:0:0 | [summary param] 0 in copy |
2+
| test.go:22:2:22:2 | definition of a | test.go:23:2:23:2 | a |
3+
| test.go:22:2:22:2 | definition of a | test.go:24:2:24:2 | a |
4+
| test.go:22:2:22:2 | definition of a | test.go:25:2:25:2 | a |
5+
| test.go:22:2:22:2 | definition of a | test.go:26:2:26:2 | a |
6+
| test.go:23:11:23:14 | &... | test.go:23:11:23:14 | &... |
7+
| test.go:23:12:23:14 | selection of b | test.go:23:12:23:14 | selection of b |
8+
| test.go:24:2:24:5 | selection of bs | test.go:24:2:24:5 | selection of bs |
9+
| test.go:24:2:24:8 | index expression | test.go:24:2:24:8 | index expression |
10+
| test.go:24:17:24:20 | &... | test.go:24:17:24:20 | &... |
11+
| test.go:24:18:24:20 | struct literal | test.go:24:18:24:20 | struct literal |
12+
| test.go:25:2:25:5 | selection of bs | test.go:25:2:25:5 | selection of bs |
13+
| test.go:25:2:25:8 | index expression | test.go:25:2:25:8 | index expression |
14+
| test.go:25:2:25:13 | implicit dereference | test.go:25:2:25:13 | implicit dereference |
15+
| test.go:25:2:25:13 | selection of cptr | test.go:25:2:25:13 | selection of cptr |
16+
| test.go:26:2:26:7 | implicit dereference | test.go:26:2:26:7 | implicit dereference |
17+
| test.go:26:2:26:7 | selection of bptr | test.go:26:2:26:7 | selection of bptr |
18+
| test.go:26:2:26:12 | implicit dereference | test.go:26:2:26:12 | implicit dereference |
19+
| test.go:26:2:26:12 | selection of cptr | test.go:26:2:26:12 | selection of cptr |

go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ type C struct {
44
field int
55
}
66

7+
func (c C) m(a A) {}
8+
func (c *C) mp(a A) {}
9+
710
type B struct {
811
cptr *C
912
}

0 commit comments

Comments
 (0)