- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 112 for iota (0.04 sec)
-
src/cmd/compile/internal/types2/decl.go
func (check *Checker) constDecl(obj *Const, typ, init syntax.Expr, inherited bool) { assert(obj.typ == nil) // use the correct value of iota and errpos defer func(iota constant.Value, errpos syntax.Pos) { check.iota = iota check.errpos = errpos }(check.iota, check.errpos) check.iota = obj.val check.errpos = nopos // provide valid constant value under all circumstances obj.val = constant.MakeUnknown()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/go/types/decl.go
} func (check *Checker) constDecl(obj *Const, typ, init ast.Expr, inherited bool) { assert(obj.typ == nil) // use the correct value of iota defer func(iota constant.Value, errpos positioner) { check.iota = iota check.errpos = errpos }(check.iota, check.errpos) check.iota = obj.val check.errpos = nil // provide valid constant value under all circumstances obj.val = constant.MakeUnknown()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
src/cmd/internal/obj/link.go
// for TYPE_FCONST, a float64 // for TYPE_BRANCH, a *Prog (optional) // for TYPE_TEXTSIZE, an int32 (optional) Val interface{} } type AddrName int8 const ( NAME_NONE AddrName = iota NAME_EXTERN NAME_STATIC NAME_AUTO NAME_PARAM // A reference to name@GOT(SB) is a reference to the entry in the global offset // table for 'name'. NAME_GOTREF
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 33.1K bytes - Viewed (0) -
src/internal/trace/event/go122/event.go
) // Experiments. const ( // AllocFree is the alloc-free events experiment. AllocFree event.Experiment = 1 + iota ) // Experimental events. const ( _ event.Type = 127 + iota // Experimental events for AllocFree. // Experimental heap span events. Added in Go 1.23. EvSpan // heap span exists [timestamp, id, npages, type/class]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 14.8K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
ObjFlagStd // standard library package ) // Sym.Flag const ( SymFlagDupok = 1 << iota SymFlagLocal SymFlagTypelink SymFlagLeaf SymFlagNoSplit SymFlagReflectMethod SymFlagGoType ) // Sym.Flag2 const ( SymFlagUsedInIface = 1 << iota SymFlagItab SymFlagDict SymFlagPkgInit SymFlagLinkname SymFlagABIWrapper )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 23.8K bytes - Viewed (0) -
src/cmd/internal/obj/ppc64/a.out.go
BO_NOTBCR = 4 // branch on not cr value ) // Bit settings from the CR const ( C_COND_LT = iota // 0 result is negative C_COND_GT // 1 result is positive C_COND_EQ // 2 result is zero C_COND_SO // 3 summary overflow or FP compare w/ NaN ) const ( C_NONE = iota C_REGP /* An even numbered gpr which can be used a gpr pair argument */ C_REG /* Any gpr register */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 18:50:29 UTC 2024 - 16K bytes - Viewed (0) -
src/go/doc/example.go
// However, if there is a constant group with iota, leave it all: later // constant declarations in the group may have no value and so cannot stand // on their own, and removing any constant from the group could change the // values of subsequent ones. // See testdata/examples/iota.go for a minimal example. var ds []ast.Decl for _, d := range depDecls { switch d := d.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
return case *Const: check.addDeclDep(obj) if !isValid(typ) { return } if obj == universeIota { if check.iota == nil { check.error(e, InvalidIota, "cannot use iota outside constant declaration") return } x.val = check.iota } else { x.val = obj.val } assert(x.val != nil) x.mode = constant_ case *TypeName:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/op.go
if paramResultInfo.InRegistersUsed()+paramResultInfo.OutRegistersUsed() > 0 { reg = ®Info{} } return &AuxCall{Fn: fn, abiInfo: paramResultInfo, reg: reg} } const ( auxNone auxType = iota auxBool // auxInt is 0/1 for false/true auxInt8 // auxInt is an 8-bit integer auxInt16 // auxInt is a 16-bit integer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 15:29:10 UTC 2024 - 18.7K bytes - Viewed (0) -
src/go/types/typexpr.go
return case *Const: check.addDeclDep(obj) if !isValid(typ) { return } if obj == universeIota { if check.iota == nil { check.error(e, InvalidIota, "cannot use iota outside constant declaration") return } x.val = check.iota } else { x.val = obj.val } assert(x.val != nil) x.mode = constant_ case *TypeName:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0)