Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 138 for predeclared (0.23 sec)

  1. src/go/types/object.go

    	object
    	id builtinId
    }
    
    func newBuiltin(id builtinId) *Builtin {
    	return &Builtin{object{name: predeclaredFuncs[id].name, typ: Typ[Invalid], color_: black}, id}
    }
    
    // Nil represents the predeclared value nil.
    type Nil struct {
    	object
    }
    
    func writeObject(buf *bytes.Buffer, obj Object, qf Qualifier) {
    	var tname *TypeName
    	typ := obj.Type()
    
    	switch obj := obj.(type) {
    	case *PkgName:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. src/cmd/internal/goobj/objfile.go

    // object file.
    
    // Symbol indexing.
    //
    // Each symbol is referenced with a pair of indices, { PkgIdx, SymIdx },
    // as the symRef struct above.
    //
    // PkgIdx is either a predeclared index (see PkgIdxNone below) or
    // an index of an imported package. For the latter case, PkgIdx is the
    // index of the package in the PkgIndex array. 0 is an invalid index.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/subr.go

    	if src.IsChan() && src.ChanDir() == types.Cboth && dst.IsChan() {
    		if types.Identical(src.Elem(), dst.Elem()) && (src.Sym() == nil || dst.Sym() == nil) {
    			return ir.OCONVNOP, ""
    		}
    	}
    
    	// 5. src is the predeclared identifier nil and dst is a nillable type.
    	if src.Kind() == types.TNIL {
    		switch dst.Kind() {
    		case types.TPTR,
    			types.TFUNC,
    			types.TMAP,
    			types.TCHAN,
    			types.TINTER,
    			types.TSLICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/func.go

    	default:
    		n.SetOp(ir.OCALLFUNC)
    		if t.Kind() != types.TFUNC {
    			if o := l; o.Name() != nil && types.BuiltinPkg.Lookup(o.Sym().Name).Def != nil {
    				// be more specific when the non-function
    				// name matches a predeclared function
    				base.Errorf("cannot call non-function %L, declared at %s",
    					l, base.FmtPos(o.Name().Pos()))
    			} else {
    				base.Errorf("cannot call non-function %L", l)
    			}
    			n.SetType(nil)
    			return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. src/go/types/stmt.go

    					err.report()
    					continue L
    				}
    			}
    			seen[val] = append(seen[val], valueType{v.Pos(), v.typ})
    		}
    	}
    }
    
    // isNil reports whether the expression e denotes the predeclared value nil.
    func (check *Checker) isNil(e ast.Expr) bool {
    	// The only way to express the nil value is by literally writing nil (possibly in parentheses).
    	if name, _ := ast.Unparen(e).(*ast.Ident); name != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stmt.go

    					err.report()
    					continue L
    				}
    			}
    			seen[val] = append(seen[val], valueType{v.Pos(), v.typ})
    		}
    	}
    }
    
    // isNil reports whether the expression e denotes the predeclared value nil.
    func (check *Checker) isNil(e syntax.Expr) bool {
    	// The only way to express the nil value is by literally writing nil (possibly in parentheses).
    	if name, _ := syntax.Unparen(e).(*syntax.Name); name != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. hack/tools/go.sum

    github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs=
    github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=
    github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c=
    github.com/nunnatsa/ginkgolinter v0.15.2 h1:N2ORxUxPU56R9gsfLIlVVvCv/V/VVou5qVI1oBKBNHg=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 93.1K bytes
    - Viewed (0)
  8. doc/asm.html

    <h3 id="symbols">Symbols</h3>
    
    <p>
    Some symbols, such as <code>R1</code> or <code>LR</code>,
    are predefined and refer to registers.
    The exact set depends on the architecture.
    </p>
    
    <p>
    There are four predeclared symbols that refer to pseudo-registers.
    These are not real registers, but rather virtual registers maintained by
    the toolchain, such as a frame pointer.
    The set of pseudo-registers is the same for all architectures:
    </p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  9. src/cmd/cgo/out.go

    				fn(i, n.Name, r.Type)
    				i++
    			}
    		}
    	}
    }
    
    func c(repr string, args ...interface{}) *TypeRepr {
    	return &TypeRepr{repr, args}
    }
    
    // Map predeclared Go types to Type.
    var goTypes = map[string]*Type{
    	"bool":       {Size: 1, Align: 1, C: c("GoUint8")},
    	"byte":       {Size: 1, Align: 1, C: c("GoUint8")},
    	"int":        {Size: 0, Align: 0, C: c("GoInt")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/decls0.go

    	F2 func(x, y, z float32)
    	F3 func(x, y, x /* ERROR "redeclared" */ float32)
    	F4 func() (x, y, x /* ERROR "redeclared" */ float32)
    	F5 func(x int) (x /* ERROR "redeclared" */ float32)
    	F6 func(x ...int)
    
    	I1 interface{}
    	I2 interface {
    		m1()
    	}
    	I3 interface {
    		m1()
    		m1 /* ERROR "duplicate method m1" */ ()
    	}
    	I4 interface {
    		m1(x, y, x /* ERROR "redeclared" */ float32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top