- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,410 for types2 (0.23 sec)
-
src/cmd/compile/internal/types2/check_test.go
} return flags.Parse(strings.Fields(string(src[:end]))) } // testFiles type-checks the package consisting of the given files, and // compares the resulting errors with the ERROR annotations in the source. // Except for manual tests, each package is type-checked twice, once without // use of Alias types, and once with Alias types. // // The srcs slice contains the file content for the files named in the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
rclause = nil // Everything from here on is shared between cmd/compile/internal/types2 and go/types. // check expression to iterate over var x operand check.expr(nil, &x, rangeVar) // determine key/value types var key, val Type if x.mode != invalid { // Ranging over a type parameter is permitted if it has a core type. k, v, cause, isFunc, ok := rangeKeyVal(x.typ, func(v goVersion) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/go/types/instantiate.go
} // V must also be in the set of types of T, if any. // Constraints with empty type sets were already excluded above. if !Ti.typeSet().hasTerms() { return checkComparability() // nothing to do } // If V is itself an interface, each of its possible types must be in the set // of T types (i.e., the V type set must be a subset of the T type set). // Interfaces V with empty type sets were already excluded above.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
func newAliasTypeName(pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName { // When GODEBUG=gotypesalias=1 or unset, the Type() of the return value is a // *types.Alias. Copied from x/tools/internal/aliases.NewAlias. switch godebug.New("gotypesalias").Value() { case "", "1": tname := types.NewTypeName(pos, pkg, name, nil) _ = types.NewAlias(tname, rhs) // form TypeName -> Alias cycle
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
// identical. func identicalInstance(xorig Type, xargs []Type, yorig Type, yargs []Type) bool { if len(xargs) != len(yargs) { return false } for i, xa := range xargs { if !Identical(xa, yargs[i]) { return false } } return Identical(xorig, yorig) } // Default returns the default "typed" type for an "untyped" type;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/go/types/predicates.go
// predeclared types, defined types, and type parameters. // hasName may be called with types that are not fully set up. func hasName(t Type) bool { switch Unalias(t).(type) { case *Basic, *Named, *TypeParam: return true } return false } // isTypeLit reports whether t is a type literal. // This includes all non-defined types, but also basic types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/go/types/object.go
return false } // Any user-defined type name for a basic type is an alias for a // basic type (because basic types are pre-declared in the Universe // scope, outside any package scope), and so is any type name with // a different name than the name of the basic type it refers to. // Additionally, we need to look for "byte" and "rune" because they // are aliases but have the same names (for better error messages).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
return false } // Any user-defined type name for a basic type is an alias for a // basic type (because basic types are pre-declared in the Universe // scope, outside any package scope), and so is any type name with // a different name than the name of the basic type it refers to. // Additionally, we need to look for "byte" and "rune" because they // are aliases but have the same names (for better error messages).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/go/types/check.go
recvTParamMap map[*ast.Ident]*TypeParam // maps blank receiver type parameters to their type brokenAliases map[*TypeName]bool // set of aliases with broken (not yet determined) types unionTypeSets map[*Union]*_TypeSet // computed type sets for union types mono monoGraph // graph for detecting non-monomorphizable instantiation loops
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
func containsNil(list []Type) bool { for _, t := range list { if t == nil { return true } } return false } // renameTParams renames the type parameters in the given type such that each type // parameter is given a new identity. renameTParams returns the new type parameters // and updated type. If the result type is unchanged from the argument type, none
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0)