Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 121 for Tok (0.13 sec)

  1. pkg/apis/flowcontrol/validation/validation_test.go

    					ResourceRules: []flowcontrol.ResourcePolicyRule{{
    						Verbs:      []string{flowcontrol.VerbAll, "create"},
    						APIGroups:  []string{flowcontrol.APIGroupAll, "tak"},
    						Resources:  []string{flowcontrol.ResourceAll, "tok"},
    						Namespaces: []string{flowcontrol.NamespaceEvery},
    					}},
    				}},
    			},
    		},
    		expectedErrors: field.ErrorList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  2. src/go/types/generate_test.go

    // There must be at least one import declaration present already.
    func insertImportPath(f *ast.File, path string) {
    	for _, d := range f.Decls {
    		if g, _ := d.(*ast.GenDecl); g != nil && g.Tok == token.IMPORT {
    			g.Specs = append(g.Specs, &ast.ImportSpec{Path: &ast.BasicLit{ValuePos: g.End(), Kind: token.STRING, Value: path}})
    			return
    		}
    	}
    	panic("no import declaration present")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/binder.go

    		return false
    	}
    
    	var mpaSet sets.Set[string]
    	mpa := csiNodeAnn[v1.MigratedPluginsAnnotationKey]
    	if len(mpa) == 0 {
    		mpaSet = sets.New[string]()
    	} else {
    		tok := strings.Split(mpa, ",")
    		mpaSet = sets.New(tok...)
    	}
    
    	return mpaSet.Has(pluginName)
    }
    
    // tryTranslatePVToCSI will translate the in-tree PV to CSI if it meets the criteria. If not, it returns the unmodified in-tree PV.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    			x.val = constant.MakeUnknown()
    			// x.typ is unchanged
    			return
    		}
    		// force integer division for integer operands
    		tok := op2tok[op]
    		if op == syntax.Div && isInteger(x.typ) {
    			tok = token.QUO_ASSIGN
    		}
    		x.val = constant.BinaryOp(x.val, tok, y.val)
    		x.expr = e
    		check.overflow(x, opPos(x.expr))
    		return
    	}
    
    	x.mode = value
    	// x.typ is unchanged
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. src/go/parser/parser_test.go

    			}
    		}
    	}
    }
    
    func getField(file *ast.File, fieldname string) *ast.Field {
    	parts := strings.Split(fieldname, ".")
    	for _, d := range file.Decls {
    		if d, ok := d.(*ast.GenDecl); ok && d.Tok == token.TYPE {
    			for _, s := range d.Specs {
    				if s, ok := s.(*ast.TypeSpec); ok && s.Name.Name == parts[0] {
    					if s, ok := s.Type.(*ast.StructType); ok {
    						for _, f := range s.Fields.List {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. src/cmd/doc/pkg.go

    			}
    			val := ""
    			if i < len(valueSpec.Values) && valueSpec.Values[i] != nil {
    				val = fmt.Sprintf(" = %s", pkg.oneLineNodeDepth(valueSpec.Values[i], depth))
    			}
    			return fmt.Sprintf("%s %s%s%s%s", n.Tok, valueSpec.Names[0], typ, val, trailer)
    		}
    		return ""
    
    	case *ast.FuncDecl:
    		// Formats func declarations.
    		name := n.Name.Name
    		recv := pkg.oneLineNodeDepth(n.Recv, depth)
    		if len(recv) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		u.exprs(node.List)
    		defer u.scoped()()
    		for _, stmt := range node.Body {
    			u.node(stmt)
    		}
    	case *ast.BranchStmt:
    	case *ast.ExprStmt:
    		u.node(node.X)
    	case *ast.AssignStmt:
    		if node.Tok != token.DEFINE {
    			u.exprs(node.Rhs)
    			u.exprs(node.Lhs)
    			break
    		}
    		lhs := node.Lhs
    		if len(lhs) == 2 && lhs[1].(*ast.Ident).Name == "_" {
    			lhs = lhs[:1]
    		}
    		if len(lhs) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  8. src/cmd/cgo/out.go

    			}
    			return r
    		}
    		// Look up the type in the top level declarations.
    		// TODO: Handle types defined within a function.
    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ArrayType.Elt", Field, 0},
    		{"ArrayType.Lbrack", Field, 0},
    		{"ArrayType.Len", Field, 0},
    		{"AssignStmt", Type, 0},
    		{"AssignStmt.Lhs", Field, 0},
    		{"AssignStmt.Rhs", Field, 0},
    		{"AssignStmt.Tok", Field, 0},
    		{"AssignStmt.TokPos", Field, 0},
    		{"Bad", Const, 0},
    		{"BadDecl", Type, 0},
    		{"BadDecl.From", Field, 0},
    		{"BadDecl.To", Field, 0},
    		{"BadExpr", Type, 0},
    		{"BadExpr.From", Field, 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)
  10. src/cmd/cgo/gcc.go

    		return true
    	case *ast.Ident:
    		// TODO: Handle types defined within function.
    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top