Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 101 for mexpr (0.04 sec)

  1. common/config/.golangci.yml

          - name: indent-error-flow
          - name: superfluous-else
          - name: modifies-parameter
          - name: unreachable-code
          - name: struct-tag
          - name: constant-logical-expr
          - name: bool-literal-in-expr
          - name: redefines-builtin-id
          - name: imports-blacklist
          - name: range-val-in-closure
          - name: range-val-address
          - name: waitgroup-by-value
          - name: atomic
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go

    			meets := make([]bool, len(validations))
    			for expr, expectErr := range tc.errorExpressions {
    				for i, result := range CompilationResults {
    					if validations[i].GetExpression() == expr {
    						if result.Error == nil {
    							t.Errorf("Expect expression '%s' to contain error '%v' but got no error", expr, expectErr)
    						} else if !strings.Contains(result.Error.Error(), expectErr) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  3. src/go/printer/gobuild.go

    	if len(p.goBuild) > 0 && p.goBuild[0] < insert {
    		insert = p.goBuild[0]
    	} else if len(p.plusBuild) > 0 && p.plusBuild[0] < insert {
    		insert = p.plusBuild[0]
    	}
    
    	var x constraint.Expr
    	switch len(p.goBuild) {
    	case 0:
    		// Synthesize //go:build expression from // +build lines.
    		for _, pos := range p.plusBuild {
    			y, err := constraint.Parse(p.commentTextAt(pos))
    			if err != nil {
    				x = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/infer.go

    			if reverse {
    				err.addf(arg, "inferred type %s for %s does not match type %s of %s", inferred, tpar, targ, arg.expr)
    			} else {
    				err.addf(arg, "type %s of %s does not match inferred type %s for %s", targ, arg.expr, inferred, tpar)
    			}
    		} else {
    			err.addf(arg, "type %s of %s does not match %s", targ, arg.expr, tpar)
    		}
    	}
    
    	// indices of generic parameters with untyped arguments, for later use
    	var untyped []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/builtins.go

    	"go/constant"
    	"go/token"
    	. "internal/types/errors"
    )
    
    // builtin type-checks a call to the built-in specified by id and
    // reports whether the call is valid, with *x holding the result;
    // but x.expr is not set. If the call is invalid, the result is
    // false, and *x is undefined.
    func (check *Checker) builtin(x *operand, call *syntax.CallExpr, id builtinId) (_ bool) {
    	argList := call.ArgList
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. src/go/types/builtins.go

    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    	. "internal/types/errors"
    )
    
    // builtin type-checks a call to the built-in specified by id and
    // reports whether the call is valid, with *x holding the result;
    // but x.expr is not set. If the call is invalid, the result is
    // false, and *x is undefined.
    func (check *Checker) builtin(x *operand, call *ast.CallExpr, id builtinId) (_ bool) {
    	argList := call.Args
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/go/types/infer.go

    			if reverse {
    				err.addf(arg, "inferred type %s for %s does not match type %s of %s", inferred, tpar, targ, arg.expr)
    			} else {
    				err.addf(arg, "type %s of %s does not match inferred type %s for %s", targ, arg.expr, inferred, tpar)
    			}
    		} else {
    			err.addf(arg, "type %s of %s does not match %s", targ, arg.expr, tpar)
    		}
    	}
    
    	// indices of generic parameters with untyped arguments, for later use
    	var untyped []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. src/go/printer/printer_test.go

    // Test case for issue #63362.
    func TestChanType(t *testing.T) {
    	expr := &ast.UnaryExpr{
    		Op: token.ARROW,
    		X: &ast.CallExpr{
    			Fun: &ast.ChanType{
    				Dir:   ast.RECV,
    				Value: &ast.Ident{Name: "int"},
    			},
    			Args: []ast.Expr{&ast.Ident{Name: "nil"}},
    		},
    	}
    	var buf bytes.Buffer
    	if err := Fprint(&buf, fset, expr); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. src/go/ast/example_test.go

    	//     30  .  .  .  .  .  .  .  .  NamePos: 4:2
    	//     31  .  .  .  .  .  .  .  .  Name: "println"
    	//     32  .  .  .  .  .  .  .  }
    	//     33  .  .  .  .  .  .  .  Lparen: 4:9
    	//     34  .  .  .  .  .  .  .  Args: []ast.Expr (len = 1) {
    	//     35  .  .  .  .  .  .  .  .  0: *ast.BasicLit {
    	//     36  .  .  .  .  .  .  .  .  .  ValuePos: 4:10
    	//     37  .  .  .  .  .  .  .  .  .  Kind: STRING
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/go/types/issues_test.go

    	src := `
    package p
    var (
    	s uint
    	_ = uint8(8)
    	_ = uint16(16) << s
    	_ = uint32(32 << s)
    	_ = uint64(64 << s + s)
    	_ = (interface{})("foo")
    	_ = (interface{})(nil)
    )`
    	types := make(map[ast.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Types: types})
    
    	for x, tv := range types {
    		var want Type
    		switch x := x.(type) {
    		case *ast.BasicLit:
    			switch x.Value {
    			case `8`:
    				want = Typ[Uint8]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top