Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,107 for gotType (0.11 sec)

  1. src/internal/syscall/windows/registry/registry_test.go

    		return
    	}
    }
    
    func testGetStringValue(t *testing.T, k registry.Key, test ValueTest) {
    	got, gottype, err := k.GetStringValue(test.Name)
    	if err != nil {
    		t.Errorf("GetStringValue(%s) failed: %v", test.Name, err)
    		return
    	}
    	if got != test.Value {
    		t.Errorf("want %s value %q, got %q", test.Name, test.Value, got)
    		return
    	}
    	if gottype != test.Type {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typexpr.go

    	// If we want a type but don't have one, stop right here and avoid potential problems
    	// with missing underlying types. This also gives better error messages in some cases
    	// (see go.dev/issue/65344).
    	_, gotType := obj.(*TypeName)
    	if !gotType && wantType {
    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/go/types/typexpr.go

    	// If we want a type but don't have one, stop right here and avoid potential problems
    	// with missing underlying types. This also gives better error messages in some cases
    	// (see go.dev/issue/65344).
    	_, gotType := obj.(*TypeName)
    	if !gotType && wantType {
    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/go/types/gotype.go

    //go:build ignore
    
    // Build this command explicitly: go build gotype.go
    
    /*
    The gotype command, like the front-end of a Go compiler, parses and
    type-checks a single Go package. Errors are reported if the analysis
    fails; otherwise gotype is quiet (unless -v is set).
    
    Without a list of paths, gotype reads from standard input, which
    must provide a single Go source file defining a complete package.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. src/cmd/fix/gotypes.go

    package main
    
    import (
    	"go/ast"
    	"strconv"
    )
    
    func init() {
    	register(gotypesFix)
    }
    
    var gotypesFix = fix{
    	name: "gotypes",
    	date: "2015-07-16",
    	f:    gotypes,
    	desc: `Change imports of golang.org/x/tools/go/{exact,types} to go/{constant,types}`,
    }
    
    func gotypes(f *ast.File) bool {
    	fixed := fixGoTypes(f)
    	if fixGoExact(f) {
    		fixed = true
    	}
    	return fixed
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  6. test/typeparam/dottype.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. test/typeparam/dottype.out

    Keith Randall <******@****.***> 1627346462 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 29 17:15:21 UTC 2021
    - 47 bytes
    - Viewed (0)
  8. src/cmd/cgo/out.go

    				off += pad
    				npad++
    			}
    			ctype += fmt.Sprintf("\t\t%s %s;\n", t.C, name)
    			fmt.Fprintf(gotype, "\t\t%s ", name)
    			noSourceConf.Fprint(gotype, fset, typ)
    			fmt.Fprintf(gotype, "\n")
    			off += t.Size
    		}
    		if fn.Recv != nil {
    			argField(fn.Recv.List[0].Type, "recv")
    		}
    		fntype := fn.Type
    		forFieldList(fntype.Params,
    			func(i int, aname string, atype ast.Expr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. src/encoding/gob/type.go

    		return tInt.gobType(), nil
    
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return tUint.gobType(), nil
    
    	case reflect.Float32, reflect.Float64:
    		return tFloat.gobType(), nil
    
    	case reflect.Complex64, reflect.Complex128:
    		return tComplex.gobType(), nil
    
    	case reflect.String:
    		return tString.gobType(), nil
    
    	case reflect.Interface:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/CompileJavaBuildOperationReportingCompiler.java

                    return new DefaultAnnotationProcessorDetails(result.getClassName(), toType(result.getType()), result.getExecutionTimeInMillis());
                }
    
                private AnnotationProcessorDetails.Type toType(IncrementalAnnotationProcessorType type) {
                    if (type == IncrementalAnnotationProcessorType.AGGREGATING) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:33:35 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top