func go/types.Identical
48 uses
go/types (current package)
api.go#L474: func Identical(x, y Type) bool {
builtins.go#L311: if !Identical(x.typ, y.typ) {
builtins.go#L371: if !Identical(dst.elem, src.elem) {
builtins.go#L394: if key != nil && !Identical(map_.key, key) {
context.go#L95: if inst == nil || Identical(inst, e.instance) {
conversions.go#L192: if Identical(s.Elem(), a.Elem()) {
expr.go#L1118: if !Identical(x.typ, y.typ) {
expr.go#L1489: if Identical(vtyp, x.typ) {
expr.go#L1601: if base != nil && !Identical(p.base, base) {
index.go#L148: if !Identical(key, k) {
index.go#L152: if !Identical(elem, e) {
instantiate.go#L236: if alt == nil && !t.tilde && Identical(t.typ, under(t.typ)) {
lookup.go#L256: if Identical(t, typ) {
lookup.go#L270: if Identical(inst, t) {
lookup.go#L326: if !Identical(f.typ, m.typ) {
lookup.go#L360: if !found || !Identical(f.typ, m.typ) {
lookup.go#L388: if Identical(m.typ, alt.typ) {
object.go#L488: assert(Identical(typ, &emptyInterface))
operand.go#L242: if Identical(V, T) {
operand.go#L276: if Identical(Vu, Tu) && (!hasName(V) || !hasName(T)) && Vp == nil && Tp == nil {
operand.go#L307: if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) {
predicates.go#L401: if !Identical(x.orig, y.orig) {
predicates.go#L405: if !Identical(xa, yargs[i]) {
predicates.go#L440: if !Identical(xa, yargs[i]) {
predicates.go#L445: return Identical(xorig, yorig)
stmt.go#L263: if Identical(v.typ, vt.typ) {
stmt.go#L302: if T == nil && t == nil || T != nil && t != nil && Identical(T, t) {
type.go#L104: if Identical(x, y) {
type.go#L110: if y, _ := y.(*Chan); y != nil && Identical(x.elem, y.elem) {
typeset.go#L140: assert(Identical(u, under(u)))
typeset.go#L247: if !check.allowVersion(m.pkg, 1, 14) || !Identical(m.typ, other.Type()) {
typeset.go#L321: if !Identical(m.typ, other.typ) {
typeset.go#L412: if t.tilde && !Identical(t.typ, u) {
typeterm.go#L43: return x.tilde == y.tilde && Identical(x.typ, y.typ)
typeterm.go#L121: return Identical(x.typ, u)
typeterm.go#L165: return !Identical(ux, uy)
union.go#L104: if !Identical(u, t.typ) {
golang.org/x/exp/apidiff
compatibility.go#L216: if types.Identical(s, t) {
correspondence.go#L33: return types.Identical(old, new)
correspondence.go#L210: if !types.Identical(tps1.At(i).Constraint(), tps2.At(i).Constraint()) {
correspondence.go#L224: if types.Identical(old, new) {
correspondence.go#L252: if !types.Identical(oldp.Constraint(), newp.Constraint()) {
golang.org/x/tools/internal/gcimporter
bimport.go#L246: return objTag(a) == objTag(b) && types.Identical(a.Type(), b.Type())
golang.org/x/tools/internal/typeparams
coretype.go#L30: if !types.Identical(U, terms[identical].Type().Underlying()) {
coretype.go#L52: if !types.Identical(ch.Elem(), curr.Elem()) {
typeterm.go#L47: return x.tilde == y.tilde && types.Identical(x.typ, y.typ)
typeterm.go#L125: return types.Identical(x.typ, u)
typeterm.go#L169: return !types.Identical(ux, uy)