Documentation ¶
Index ¶
- func Addr(pos src.XPos, x ir.Node) *ir.AddrExpr
- func Assert(pos src.XPos, x ir.Node, typ *types.Type) ir.Node
- func Binary(pos src.XPos, op ir.Op, typ *types.Type, x, y ir.Node) ir.Node
- func Call(pos src.XPos, typ *types.Type, fun ir.Node, args []ir.Node, dots bool) ir.Node
- func CheckDotImports()
- func Compare(pos src.XPos, typ *types.Type, op ir.Op, x, y ir.Node) ir.Node
- func Const(pos src.XPos, typ *types.Type, val constant.Value) ir.Node
- func Deref(pos src.XPos, typ *types.Type, x ir.Node) *ir.StarExpr
- func DotField(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr
- func DotMethod(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr
- func IncDec(pos src.XPos, op ir.Op, x ir.Node) *ir.AssignOpStmt
- func Index(pos src.XPos, typ *types.Type, x, index ir.Node) ir.Node
- func LoadPackage(filenames []string)
- func MethodExpr(pos src.XPos, recv ir.Node, embed *types.Type, index int) *ir.SelectorExpr
- func Nil(pos src.XPos, typ *types.Type) ir.Node
- func Slice(pos src.XPos, typ *types.Type, x, low, high, max ir.Node) ir.Node
- func Unary(pos src.XPos, typ *types.Type, op ir.Op, x ir.Node) ir.Node
- type ImplicitNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDotImports ¶
func CheckDotImports()
CheckDotImports reports errors for any unused dot imports.
func LoadPackage ¶
func LoadPackage(filenames []string)
func MethodExpr ¶
MethodExpr returns a OMETHEXPR node with the indicated index into the methods of typ. The receiver type is set from recv, which is different from typ if the method was accessed via embedded fields. Similarly, the X value of the ir.SelectorExpr is recv, the original OTYPE node before passing through the embedded fields.
Types ¶
type ImplicitNode ¶
func Implicit ¶
func Implicit(n ImplicitNode) ImplicitNode
Implicit returns n after marking it as Implicit.
Click to show internal directories.
Click to hide internal directories.