decls2

Imports

Imports #

"time"
"unsafe"
"io"

Constants & Variables

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = T7.m1

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = T7.m2

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = *ast.ParenExpr.m3

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = *ast.ParenExpr.m4

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = *ast.ParenExpr.m5

_ var #

Check that methods with parenthesized receiver are actually present (issue #23130).

var _ = *ast.ParenExpr.m6

c_double const #

Double declarations across package files

const c_double = 0

c_double const #

Double declarations across package files

const c_double = 0

pi const #

const pi = 3.1415

v_double var #

var v_double int

v_double var #

var v_double int

Type Aliases

T4 type #

Methods of non-struct type.

type T4 func()

UP type #

Unsafe.Pointer is treated like a pointer when used as receiver type.

type UP unsafe.Pointer

ptr type #

Methods associated with a named pointer type.

type ptr *int

t_double type #

type t_double int

t_double type #

type t_double int

Interfaces

T5 interface #

Methods associated with an interface.

type T5 interface {
m() int
}

Structs

T1 struct #

T1 declared before its methods.

type T1 struct {
f int
}

T1b struct #

Conflict between embedded field and method name, with the embedded field being a basic type.

type T1b struct {
int
}

T1c struct #

type T1c struct {
time.Time
}

T2 struct #

type T2 struct {
f int
}

T3 struct #

type T3 struct {
f *T3
}

T6 struct #

type T6 struct {
x int
}

T7 struct #

Receiver declarations are regular parameter lists; receiver types may use parentheses, and the list may have a trailing comma.

type T7 struct {

}

_ struct #

Blank types.

type _ struct {
m int
}

_ struct #

type _ struct {
m int
}

Functions

Time method #

func (T1c) Time() int

_ method #

func (T1) _(undefined)

_ method #

func (Foo) _(undefined)

_ method #

func (Foo) _()

_ method #

func (Foo) _() int

_ method #

func (T1) _() int

_ method #

func (ptr) _()

_ method #

Blank methods need to be type-checked. Verify by checking that errors are reported.

func (T) _()

_ method #

func (a T3, b T3, c T3) _()

_ method #

func (a T3, b T3) _()

_ method #

func (T3, T3, T3) _()

_ method #

func (T3, *T3) _()

_ method #

Methods with zero or multiple receivers.

func () _()

_ method #

func (*ptr) _()

f function #

func f()

f method #

func (x *T3) f()

f method #

func (x *T1) f()

f method #

T2's method declared before the type.

func (*T2) f()

f_double function #

func f_double()

f_double function #

func f_double()

int method #

func (T1b) int()

m method #

func (Foo) m() int

m method #

func (T1) m()

m method #

func (_) m()

m method #

func (T1) m()

m method #

func (self T4) m() func()

m method #

func (Foo) m(undefined)

m method #

Methods associated with non-local or unnamed types.

func (int) m()

m method #

func ([]int) m()

m method #

func (time.Time) m()

m method #

func (*time.Time) m()

m method #

func (x any) m()

m method #

Methods with undefined receiver type can still be checked. Verify by checking that errors are reported.

func (Foo) m()

m method #

Methods declared without a declared type.

func (undefined) m()

m method #

func (x *undefined) m()

m method #

func (T1) m()

m method #

func (T2) m(io.Writer)

m function #

func m(_)

m1 method #

func (pi) m1()

m1 method #

func (T7) m1()

m1 method #

Methods with receiver base type declared in another file.

func (T3) m1()

m1 method #

func (T5) m1()

m1 method #

func (t *T6) m1() int

m1 method #

func (UP) m1()

m2 method #

func (T5) m2()

m2 method #

func (*UP) m2()

m2 method #

func (x pi) m2()

m2 method #

func (*T3) m2()

m2 method #

func (*ast.ParenExpr) m2()

m3 method #

func (x T3) m3()

m3 method #

func (x *pi) m3()

m3 method #

func (*ast.ParenExpr) m3()

m4 method #

func (x **ast.ParenExpr) m4()

m5 method #

func (x *ast.ParenExpr) m5()

m6 method #

func (x *ast.ParenExpr) m6()

Generated with Arrow