- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for MakeInt64 (0.1 sec)
-
src/cmd/compile/internal/types2/builtins.go
var val constant.Value switch t := arrayPtrDeref(under(x.typ)).(type) { case *Basic: if isString(t) && id == _Len { if x.mode == constant_ { mode = constant_ val = constant.MakeInt64(int64(len(constant.StringVal(x.val)))) } else { mode = value } } case *Array: mode = value // spec: "The expressions len(s) and cap(s) are constants
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/go/types/builtins.go
var val constant.Value switch t := arrayPtrDeref(under(x.typ)).(type) { case *Basic: if isString(t) && id == _Len { if x.mode == constant_ { mode = constant_ val = constant.MakeInt64(int64(len(constant.StringVal(x.val)))) } else { mode = value } } case *Array: mode = value // spec: "The expressions len(s) and cap(s) are constants
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// iota is the index of the current constDecl within the group if first < 0 || s.Group == nil || list[index-1].(*syntax.ConstDecl).Group != s.Group { first = index last = nil } iota := constant.MakeInt64(int64(index - first)) // determine which initialization expressions to use inherited := true switch { case s.Type != nil || s.Values != nil: last = s inherited = false
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/cmd/compile/internal/types2/resolver.go
if first < 0 || s.Group == nil || file.DeclList[index-1].(*syntax.ConstDecl).Group != s.Group { first = index last = nil } iota := constant.MakeInt64(int64(index - first)) // determine which initialization expressions to use inherited := true switch { case s.Type != nil || s.Values != nil: last = s inherited = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/go/types/resolver.go
check.declare(fileScope, nil, pkgName, nopos) } case constDecl: // declare all constants for i, name := range d.spec.Names { obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota))) var init ast.Expr if i < len(d.init) { init = d.init[i] } d := &declInfo{file: fileScope, vtyp: d.typ, init: init, inherited: d.inherited}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
src/go/types/decl.go
top := len(check.delayed) // declare all constants lhs := make([]*Const, len(d.spec.Names)) for i, name := range d.spec.Names { obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota))) lhs[i] = obj var init ast.Expr if i < len(d.init) { init = d.init[i] } check.constDecl(obj, d.typ, init, d.inherited) }
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/compile/internal/rangefunc/rewrite.go
func (r *rewriter) intConst(c int) *syntax.BasicLit { lit := &syntax.BasicLit{ Value: fmt.Sprint(c), Kind: syntax.IntLit, } tv := syntax.TypeAndValue{Type: r.int.Type(), Value: constant.MakeInt64(int64(c))} tv.SetIsValue() lit.SetTypeInfo(tv) return lit } func (r *rewriter) stateConst(s abi.RF_State) *syntax.BasicLit { return r.intConst(int(s)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0)