// ----------------------------------------------------------------------------
// Format representation
-type State struct
-
// Custom formatters implement the Formatter function type.
// A formatter is invoked with the current formatting state, the
// value to format, and the rule name under which the formatter
// node sizes a bit.
-type (
- ExprVisitor interface;
- StmtVisitor interface;
- DeclVisitor interface;
-)
-
-
// All expression nodes implement the Expr interface.
type Expr interface {
// For a (dynamic) node type X, calling Visit with an expression
// ----------------------------------------------------------------------------
// Expressions and types
-// Support types.
-type (
- Ident struct;
- StringLit struct;
- FuncType struct;
- BlockStmt struct;
-
- // A Field represents a Field declaration list in a struct type,
- // a method in an interface type, or a parameter/result declaration
- // in a signature.
- Field struct {
- Doc *CommentGroup; // associated documentation; or nil
- Names []*Ident; // field/method/parameter names; nil if anonymous field
- Type Expr; // field/method/parameter type
- Tag []*StringLit; // field tag; or nil
- Comment *CommentGroup; // line comments; or nil
- };
-)
+// A Field represents a Field declaration list in a struct type,
+// a method in an interface type, or a parameter/result declaration
+// in a signature.
+//
+type Field struct {
+ Doc *CommentGroup; // associated documentation; or nil
+ Names []*Ident; // field/method/parameter names; nil if anonymous field
+ Type Expr; // field/method/parameter type
+ Tag []*StringLit; // field tag; or nil
+ Comment *CommentGroup; // line comments; or nil
+};
// An expression is represented by a tree consisting of one
encodeUint(state, uint64(x))
}
-type encInstr struct
type encOp func(i *encInstr, state *encoderState, p unsafe.Pointer)
// The 'instructions' of the encoding machine
// so that the compiler can lay out references as data.
type Type interface { }
-type uncommonType struct
-
// All types begin with a few common fields needed for
// the interface runtime.
type commonType struct {