Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 238 for Universe (0.14 sec)

  1. src/go/types/stdlib_test.go

    		return pkg, err
    	}
    
    	// Perform checks of API invariants.
    
    	// All Objects have a package, except predeclared ones.
    	errorError := Universe.Lookup("error").Type().Underlying().(*Interface).ExplicitMethod(0) // (error).Error
    	for id, obj := range info.Uses {
    		predeclared := obj == Universe.Lookup(obj.Name()) || obj == errorError
    		if predeclared == (obj.Pkg() != nil) {
    			posn := fset.Position(id.Pos())
    			if predeclared {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    	if !isPtr || named == nil || !analysisutil.IsNamedType(named, "net/http", "Response") {
    		return false // the first return type is not *http.Response.
    	}
    
    	errorType := types.Universe.Lookup("error").Type()
    	if !types.Identical(res.At(1).Type(), errorType) {
    		return false // the second return type is not error
    	}
    
    	typ := info.Types[fun.X].Type
    	if typ == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/parser.go

    		gccgoBuiltinCOMPLEX128: types.Typ[types.Complex128],
    		gccgoBuiltinERROR:      types.Universe.Lookup("error").Type(),
    		gccgoBuiltinBYTE:       types.Universe.Lookup("byte").Type(),
    		gccgoBuiltinRUNE:       types.Universe.Lookup("rune").Type(),
    		gccgoBuiltinANY:        types.Universe.Lookup("any").Type(),
    	}[typ]
    }
    
    // Type = "<" "type" ( "-" int | int [ TypeSpec ] ) ">" .
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go

    	// Overkill but easy.
    	t := typeString(actual)
    	return t == expect ||
    		(t == "any" || t == "interface{}") && (expect == "any" || expect == "interface{}")
    }
    
    var errorType = types.Universe.Lookup("error").Type().Underlying().(*types.Interface)
    
    func implementsError(actual types.Type) bool {
    	return types.Implements(actual, errorType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stdlib_test.go

    		return pkg, err
    	}
    
    	// Perform checks of API invariants.
    
    	// All Objects have a package, except predeclared ones.
    	errorError := Universe.Lookup("error").Type().Underlying().(*Interface).ExplicitMethod(0) // (error).Error
    	for id, obj := range info.Uses {
    		predeclared := obj == Universe.Lookup(obj.Name()) || obj == errorError
    		if predeclared == (obj.Pkg() != nil) {
    			posn := id.Pos()
    			if predeclared {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    		return !di.noReturn
    	}
    
    	// Not declared in this package.
    	// Is there a fact from another package?
    	return !c.pass.ImportObjectFact(fn, new(noReturn))
    }
    
    var panicBuiltin = types.Universe.Lookup("panic").(*types.Builtin)
    
    func hasReachableReturn(g *cfg.CFG) bool {
    	for _, b := range g.Blocks {
    		if b.Live && b.Return() != nil {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api.go

    	// the alias information is only in the type name, which points directly to
    	// the actual (aliased) type.
    	//
    	// This setting must not differ among concurrent type-checking operations,
    	// since it affects the behavior of Universe.Lookup("any").
    	//
    	// This flag will eventually be removed (with Go 1.24 at the earliest).
    	EnableAlias bool
    }
    
    func srcimporter_setUsesCgo(conf *Config) {
    	conf.go115UsesCgo = true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal_test.go

    	{Value: &Movie{Length: 13440}, ExpectXML: `<movie>13440</movie>`},
    	{Value: &Pi{Approximation: 3.14159265}, ExpectXML: `<pi>3.1415927</pi>`},
    	{Value: &Universe{Visible: 9.3e13}, ExpectXML: `<universe>9.3e+13</universe>`},
    	{Value: &Particle{HasMass: true}, ExpectXML: `<particle>true</particle>`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  9. src/go/types/api.go

    	// the alias information is only in the type name, which points directly to
    	// the actual (aliased) type.
    	//
    	// This setting must not differ among concurrent type-checking operations,
    	// since it affects the behavior of Universe.Lookup("any").
    	//
    	// This flag will eventually be removed (with Go 1.24 at the earliest).
    	_EnableAlias bool
    }
    
    // Linkname for use from srcimporter.
    //go:linkname srcimporter_setUsesCgo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    	Doc:      analysisutil.MustExtractDoc(doc, "slog"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/slog",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    var stringType = types.Universe.Lookup("string").Type()
    
    // A position describes what is expected to appear in an argument position.
    type position int
    
    const (
    	// key is an argument position that should hold a string key or an Attr.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top