Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isBuiltin (0.15 sec)

  1. pkg/config/schema/resource/schema.go

    	GroupVersionResource() schema.GroupVersionResource
    
    	// IsClusterScoped indicates that this resource is scoped to a particular namespace within a cluster.
    	IsClusterScoped() bool
    
    	// IsBuiltin indicates that this resource is builtin (not a CRD)
    	IsBuiltin() bool
    
    	// Identifier returns a unique identifier for the resource
    	Identifier() string
    
    	// Kind for this resource.
    	Kind() string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/type.go

    	Value constant.Value
    	exprFlags
    }
    
    type exprFlags uint16
    
    func (f exprFlags) IsVoid() bool          { return f&1 != 0 }
    func (f exprFlags) IsType() bool          { return f&2 != 0 }
    func (f exprFlags) IsBuiltin() bool       { return f&4 != 0 } // a language builtin that resembles a function call, e.g., "make, append, new"
    func (f exprFlags) IsValue() bool         { return f&8 != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    	ast.Inspect(e, func(node ast.Node) bool {
    		switch n := node.(type) {
    		case *ast.CallExpr:
    			typVal := info.Types[n.Fun]
    			switch {
    			case typVal.IsType():
    				// Type conversion, which is safe.
    			case typVal.IsBuiltin():
    				// Builtin func, conservatively assumed to not
    				// be safe for now.
    				safe = false
    				return false
    			default:
    				// A non-builtin func or method call.
    				// Conservatively assume that all of them have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/text/template/exec.go

    	s.at(node)
    	name := node.Ident
    	function, isBuiltin, ok := findFunction(name, s.tmpl)
    	if !ok {
    		s.errorf("%q is not a defined function", name)
    	}
    	return s.evalCall(dot, function, isBuiltin, cmd, name, args, final)
    }
    
    // evalField evaluates an expression like (.Field) or (.Field arg1 arg2).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/go/types/api.go

    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api.go

    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. src/go/types/example_test.go

    	// 12:26 | 2                   | value   : int = 2
    }
    
    func mode(tv types.TypeAndValue) string {
    	switch {
    	case tv.IsVoid():
    		return "void"
    	case tv.IsType():
    		return "type"
    	case tv.IsBuiltin():
    		return "builtin"
    	case tv.IsNil():
    		return "nil"
    	case tv.Assignable():
    		if tv.Addressable() {
    			return "var"
    		}
    		return "mapindex"
    	case tv.IsValue():
    		return "value"
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/crdclient/client.go

    		namespaceFilter = kube.FilterIfEnhancedFilteringEnabled(cl.client)
    	}
    	filter := kubetypes.Filter{ObjectFilter: composeFilters(namespaceFilter, cl.inRevision, extraFilter)}
    
    	var kc kclient.Untyped
    	if s.IsBuiltin() {
    		kc = kclient.NewUntypedInformer(cl.client, gvr, filter)
    	} else {
    		kc = kclient.NewDelayedInformer[controllers.Object](
    			cl.client,
    			gvr,
    			kubetypes.StandardInformer,
    			filter,
    		)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. src/text/template/funcs.go

    			return false
    		}
    	}
    	return true
    }
    
    // findFunction looks for a function in the template, and global map.
    func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) {
    	if tmpl != nil && tmpl.common != nil {
    		tmpl.muFuncs.RLock()
    		defer tmpl.muFuncs.RUnlock()
    		if fn := tmpl.execFuncs[name]; fn.IsValid() {
    			return fn, false, true
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/check.go

    		tv := TypeAndValue{mode, typ, val}
    		stv := syntax.TypeAndValue{Type: typ, Value: val}
    		if tv.IsVoid() {
    			stv.SetIsVoid()
    		}
    		if tv.IsType() {
    			stv.SetIsType()
    		}
    		if tv.IsBuiltin() {
    			stv.SetIsBuiltin()
    		}
    		if tv.IsValue() {
    			stv.SetIsValue()
    		}
    		if tv.IsNil() {
    			stv.SetIsNil()
    		}
    		if tv.Addressable() {
    			stv.SetAddressable()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top