- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 136 for typecheck (0.53 sec)
-
src/go/types/mono_test.go
src := "package x; import `unsafe`; var _ unsafe.Pointer;\n" + body var buf strings.Builder conf := types.Config{ Error: func(err error) { fmt.Fprintln(&buf, err) }, Importer: importer.Default(), } typecheck(src, &conf, nil) if buf.Len() == 0 { return nil } return errors.New(strings.TrimRight(buf.String(), "\n")) } func TestMonoGood(t *testing.T) { for i, good := range goods {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutils_test.go
// license that can be found in the LICENSE file. package test import ( "bufio" "cmd/compile/internal/abi" "cmd/compile/internal/base" "cmd/compile/internal/ssagen" "cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/obj" "cmd/internal/obj/x86" "cmd/internal/src" "fmt" "os" "testing" ) // AMD64 registers available:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
src/go/types/typestring_test.go
tests = append(tests, independentTestTypes...) tests = append(tests, dependentTestTypes...) for _, test := range tests { src := `package 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/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/cmd/compile/internal/noder/noder.go
"os" "path/filepath" "runtime" "strconv" "strings" "unicode" "unicode/utf8" "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/syntax" "cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/objabi" ) func LoadPackage(filenames []string) { base.Timer.Start("fe", "parse") // Limit the number of simultaneously open files.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K 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)