- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 75 for typecheck (0.2 sec)
-
src/cmd/fix/cftype.go
} // typefix replaces nil with 0 for all nils whose type, when passed to badType, returns true. func typefix(f *ast.File, badType func(string) bool) bool { if !imports(f, "C") { return false } typeof, _ := typecheck(&TypeConfig{}, f) changed := false // step 1: Find all the nils with the offending types. // Compute their replacement. badNils := map[any]ast.Expr{} walk(f, func(n any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring_test.go
tests = append(tests, independentTestTypes...) tests = append(tests, dependentTestTypes...) for _, test := range tests { src := `package generic_p; import "io"; type _ io.Writer; type T ` + test.src pkg, err := typecheck(src, nil, nil) if err != nil { t.Errorf("%s: %s", src, err) continue } obj := pkg.Scope().Lookup("T") if obj == nil { t.Errorf("%s: T not found", test.src) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/syms.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package typecheck import ( "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/types" "cmd/internal/obj" ) // LookupRuntime returns a function or variable declared in // _builtin/runtime.go. If types_ is non-empty, successive occurrences
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:13 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iexport.go
// Third-party tools are not expected to depend on these details and // they're expected to change much more rapidly, so they're omitted // here. See exportWriter's varExt/funcExt/etc methods for details. package typecheck import ( "strings" ) const blankMarker = "$" // TparamName returns the real name of a type parameter, after stripping its
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object_test.go
for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { src := "package p; " + test.src conf := Config{Error: func(error) {}, Importer: defaultImporter(), EnableAlias: test.alias} pkg, err := typecheck(src, &conf, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".") if len(names) != 1 && len(names) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/object_test.go
for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { if test.alias { t.Setenv("GODEBUG", "gotypesalias=1") } src := "package p; " + test.src pkg, err := typecheck(src, nil, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".") if len(names) != 1 && len(names) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
func main() { flag.Parse() var b bytes.Buffer fmt.Fprintln(&b, "// Code generated by mkbuiltin.go. DO NOT EDIT.") fmt.Fprintln(&b) fmt.Fprintln(&b, "package typecheck") fmt.Fprintln(&b) fmt.Fprintln(&b, `import (`) fmt.Fprintln(&b, ` "cmd/compile/internal/types"`) fmt.Fprintln(&b, ` "cmd/internal/src"`) fmt.Fprintln(&b, `)`) fmt.Fprintln(&b, `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
source := common.NewTextSource(expr) for _, issue := range issues.Errors() { errorStrings = append(errorStrings, issue.ToDisplayString(source)) } t.Fatalf("%v", errorStrings) } // Typecheck expression _, err = cel.AstToCheckedExpr(compiled) if err != nil { t.Fatalf("%v", err) } prog, err := env.Program(compiled) if err != nil { t.Fatalf("%v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
src/go/types/example_test.go
var a, b, c = len(b), S(c), "hello" func fib(x int) int { if x < 2 { return x } return fib(x-1) - fib(x-2) }` // We need a specific fileset in this test below for positions. // Cannot use typecheck helper. fset := token.NewFileSet() f := mustParse(fset, input) // Type-check the package. // We create an empty map for each kind of input // we're interested in, and Check populates them.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/test/env/istio.go
// TARGET_OUT environment variable // nolint: revive, stylecheck TARGET_OUT Variable = "TARGET_OUT" // LOCAL_OUT environment variable // nolint: revive, stylecheck LOCAL_OUT Variable = "LOCAL_OUT" // REPO_ROOT environment variable // nolint: revive, stylecheck REPO_ROOT Variable = "REPO_ROOT" // HUB is the Docker hub to be used for images. // nolint: revive, stylecheck HUB Variable = "HUB"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 16:24:40 UTC 2024 - 4.7K bytes - Viewed (0)