GoPLS Viewer

Home|gopls/go/pointer/print.go
1// Copyright 2013 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package pointer
6
7import "fmt"
8
9func (c *addrConstraintString() string {
10    return fmt.Sprintf("addr n%d <- {&n%d}"c.dstc.src)
11}
12
13func (c *copyConstraintString() string {
14    return fmt.Sprintf("copy n%d <- n%d"c.dstc.src)
15}
16
17func (c *loadConstraintString() string {
18    return fmt.Sprintf("load n%d <- n%d[%d]"c.dstc.srcc.offset)
19}
20
21func (c *storeConstraintString() string {
22    return fmt.Sprintf("store n%d[%d] <- n%d"c.dstc.offsetc.src)
23}
24
25func (c *offsetAddrConstraintString() string {
26    return fmt.Sprintf("offsetAddr n%d <- n%d.#%d"c.dstc.srcc.offset)
27}
28
29func (c *typeFilterConstraintString() string {
30    return fmt.Sprintf("typeFilter n%d <- n%d.(%s)"c.dstc.srcc.typ)
31}
32
33func (c *untagConstraintString() string {
34    return fmt.Sprintf("untag n%d <- n%d.(%s)"c.dstc.srcc.typ)
35}
36
37func (c *invokeConstraintString() string {
38    return fmt.Sprintf("invoke n%d.%s(n%d ...)"c.ifacec.method.Name(), c.params)
39}
40
41func (n nodeidString() string {
42    return fmt.Sprintf("n%d"n)
43}
44
MembersX
untagConstraint.String.c
addrConstraint.String.c
storeConstraint.String
offsetAddrConstraint.String.c
offsetAddrConstraint.String
storeConstraint.String.c
invokeConstraint.String.c
nodeid.String.n
untagConstraint.String
invokeConstraint.String
addrConstraint.String
loadConstraint.String.c
loadConstraint.String
typeFilterConstraint.String.c
copyConstraint.String.c
copyConstraint.String
typeFilterConstraint.String
nodeid.String
Members
X