- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 104 for tilde (0.06 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go
continue } terms = termlist{{t.Tilde(), t.Type()}} } tset.terms = tset.terms.union(terms) if len(tset.terms) > maxTermCount { return nil, fmt.Errorf("exceeded max term count %d", maxTermCount) } } case *types.TypeParam: panic("unreachable") default: // For all other types, the term set is just a single non-tilde term // holding the type itself.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
if err != nil { return nil // invalid type } for _, term := range terms { subpath := lockPath(tpkg, term.Type(), seen) if len(subpath) > 0 { if term.Tilde() { // Prepend a tilde to our lock path entry to clarify the resulting // diagnostic message. Consider the following example: // // func _[Mutex interface{ ~sync.Mutex; M() }](m Mutex) {} //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.9K bytes - Viewed (0) -
src/go/parser/testdata/typeset.go2
) // Single-expression type parameter lists and those that don't start // with a (type parameter) name are considered array sizes. // The term must be a valid expression (it could be a type incl. a // tilde term) but the type-checker will complain. type ( _[t] t _[t|t] t // These are invalid and the type-checker will complain. _[~t] t _[~t|t] t _[t|~t] t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
) type Operator uint //go:generate stringer -type Operator -linecomment tokens.go const ( _ Operator = iota // Def is the : in := Def // : Not // ! Recv // <- Tilde // ~ // precOrOr OrOr // || // precAndAnd AndAnd // && // precCmp Eql // == Neq // != Lss // < Leq // <= Gtr // > Geq // >= // precAdd Add // +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/module/module.go
// Those usually end in a tilde followed by one or more ASCII digits. if tilde := strings.LastIndexByte(short, '~'); tilde >= 0 && tilde < len(short)-1 { suffix := short[tilde+1:] suffixIsDigits := true for _, r := range suffix { if r < '0' || r > '9' { suffixIsDigits = false break } } if suffixIsDigits { return fmt.Errorf("trailing tilde and digits in path element") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 20:17:07 UTC 2024 - 26.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/typeset.go
func _[_ t[t] | t[t]]() {} // Single-expression type parameter lists and those that don't start // with a (type parameter) name are considered array sizes. // The term must be a valid expression (it could be a type incl. a // tilde term) but the type-checker will complain. type ( _[t] t _[t|t] t // These are invalid and the type-checker will complain. _[~t] t _[~t|t] t _[t|~t] t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 17:49:03 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
// type restrictions of a type, if any. // // For all types other than *types.TypeParam, *types.Interface, and // *types.Union, this is just a single term with Tilde() == false and // Type() == typ. For *types.TypeParam, *types.Interface, and *types.Union, see // below. // // Structural type restrictions of a type parameter are created via
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
mkdocs.yml
emoji_generator: !!python/name:materialx.emoji.to_svg - pymdownx.inlinehilite - pymdownx.magiclink - pymdownx.smartsymbols - pymdownx.superfences - pymdownx.tilde - pymdownx.tabbed: alternate_style: true - tables plugins: - search - redirects: redirect_maps: # Redirect all feature pages to features/*
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Nov 20 15:26:12 UTC 2023 - 3.8K bytes - Viewed (0) -
api/go1.18.txt
pkg go/ast, type IndexListExpr struct, X Expr pkg go/ast, type TypeSpec struct, TypeParams *FieldList pkg go/constant, method (Kind) String() string pkg go/token, const TILDE = 88 pkg go/token, const TILDE Token pkg go/types, func Instantiate(*Context, Type, []Type, bool) (Type, error) pkg go/types, func NewContext() *Context pkg go/types, func NewSignature //deprecated
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 13K bytes - Viewed (0) -
src/internal/types/testdata/examples/constraints.go
// For now we do not permit interfaces with methods in unions. _ interface{~ /* ERROR "invalid use of ~" */ any} _ interface{int|interface /* ERRORx `cannot use .* in union` */ { m() }} ) type ( // Tilde is not permitted on defined types or interfaces. foo int bar any _ interface{foo} _ interface{~ /* ERROR "invalid use of ~" */ foo } _ interface{~ /* ERROR "invalid use of ~" */ bar } )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 2.9K bytes - Viewed (0)