Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsLiteral (0.1 sec)

  1. src/cmd/go/internal/load/pkg.go

    		for _, pkg := range m.Pkgs {
    			if pkg == "" {
    				panic(fmt.Sprintf("ImportPaths returned empty package for pattern %s", m.Pattern()))
    			}
    			mode := cmdlinePkg
    			if m.IsLiteral() {
    				// Note: do not set = m.IsLiteral unconditionally
    				// because maybe we'll see p matching both
    				// a literal and also a non-literal pattern.
    				mode |= cmdlinePkgLiteral
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/load.go

    				// the loader iterations.
    				m.Pkgs = m.Pkgs[:0]
    				for _, dir := range m.Dirs {
    					pkg, err := resolveLocalPackage(ctx, dir, rs)
    					if err != nil {
    						if !m.IsLiteral() && (err == errPkgIsBuiltin || err == errPkgIsGorootSrc) {
    							continue // Don't include "builtin" or GOROOT/src in wildcard patterns.
    						}
    
    						// If we're outside of a module, ensure that the failure mode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    			sz := l.sizeEstimate(*target)
    
    			// Worst case size is where is that a separator of "" is used, and each char is returned as a list element.
    			max := sz.Max
    			if len(args) > 1 {
    				if v := args[1].Expr().AsLiteral(); v != nil {
    					if i, ok := v.Value().(int64); ok {
    						max = uint64(i)
    					}
    				}
    			}
    			// Cost is the traversal plus the construction of the result.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	return l.goString(0, "")
    }
    
    func (l *Literal) goString(indent int, field string) string {
    	var neg string
    	if l.Neg {
    		neg = " Neg: true"
    	}
    	return fmt.Sprintf("%*s%sLiteral:%s\n%s\n%*sVal: %s", indent, "", field,
    		neg, l.Type.goString(indent+2, "Type: "),
    		indent+2, "", l.Val)
    }
    
    func (l *Literal) prec() precedence {
    	return precPrimary
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
Back to top