Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IsLiteral (0.13 sec)

  1. src/regexp/all_test.go

    		// Literal method needs to scan the pattern.
    		re := MustCompile(tc.pattern)
    		str, complete := re.LiteralPrefix()
    		if complete != tc.isLiteral {
    			t.Errorf("LiteralPrefix(`%s`) = %t; want %t", tc.pattern, complete, tc.isLiteral)
    		}
    		if str != tc.literal {
    			t.Errorf("LiteralPrefix(`%s`) = `%s`; want `%s`", tc.pattern, str, tc.literal)
    		}
    	}
    }
    
    type subexpIndex struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*FileSet).Write", Method, 0},
    		{"(*Position).IsValid", Method, 0},
    		{"(Pos).IsValid", Method, 0},
    		{"(Position).String", Method, 0},
    		{"(Token).IsKeyword", Method, 0},
    		{"(Token).IsLiteral", Method, 0},
    		{"(Token).IsOperator", Method, 0},
    		{"(Token).Precedence", Method, 0},
    		{"(Token).String", Method, 0},
    		{"ADD", Const, 0},
    		{"ADD_ASSIGN", Const, 0},
    		{"AND", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. 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)
  6. 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