- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for IsConstType (0.17 sec)
-
src/go/types/assignments.go
} // rhs must be a constant if x.mode != constant_ { check.errorf(x, InvalidConstInit, "%s is not constant", x) if lhs.typ == nil { lhs.typ = Typ[Invalid] } return } assert(isConstType(x.typ)) // If the lhs doesn't have a type yet, use the type of x. if lhs.typ == nil { lhs.typ = x.typ } check.assignment(x, lhs.typ, "constant declaration") if x.mode == invalid { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/assignments.go
} // rhs must be a constant if x.mode != constant_ { check.errorf(x, InvalidConstInit, "%s is not constant", x) if lhs.typ == nil { lhs.typ = Typ[Invalid] } return } assert(isConstType(x.typ)) // If the lhs doesn't have a type yet, use the type of x. if lhs.typ == nil { lhs.typ = x.typ } check.assignment(x, lhs.typ, "constant declaration") if x.mode == invalid { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0) -
api/go1.5.txt
pkg go/types, const IsBoolean = 1 pkg go/types, const IsBoolean BasicInfo pkg go/types, const IsComplex = 16 pkg go/types, const IsComplex BasicInfo pkg go/types, const IsConstType = 59 pkg go/types, const IsConstType BasicInfo pkg go/types, const IsFloat = 8 pkg go/types, const IsFloat BasicInfo pkg go/types, const IsInteger = 2 pkg go/types, const IsInteger BasicInfo pkg go/types, const IsNumeric = 26
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
check.errpos = nopos // provide valid constant value under all circumstances obj.val = constant.MakeUnknown() // determine type, if any if typ != nil { t := check.typ(typ) if !isConstType(t) { // don't report an error if the type is an invalid C (defined) type // (go.dev/issue/22090) if isValid(under(t)) { check.errorf(typ, InvalidConstType, "invalid constant type %s", t) }
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
check.errpos = nil // provide valid constant value under all circumstances obj.val = constant.MakeUnknown() // determine type, if any if typ != nil { t := check.typ(typ) if !isConstType(t) { // don't report an error if the type is an invalid C (defined) type // (go.dev/issue/22090) if isValid(under(t)) { check.errorf(typ, InvalidConstType, "invalid constant type %s", t) }
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/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Int32", Const, 5}, {"Int64", Const, 5}, {"Int8", Const, 5}, {"Interface", Type, 5}, {"Invalid", Const, 5}, {"IsBoolean", Const, 5}, {"IsComplex", Const, 5}, {"IsConstType", Const, 5}, {"IsFloat", Const, 5}, {"IsInteger", Const, 5}, {"IsInterface", Func, 5}, {"IsNumeric", Const, 5}, {"IsOrdered", Const, 5}, {"IsString", Const, 5}, {"IsUnsigned", Const, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)