Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Tok (0.03 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			}
    		}
    	}
    }
    
    func (in *input) parseStmt() {
    	tok := in.lex()
    	start := tok.pos
    	end := tok.endPos
    	tokens := []string{tok.text}
    	for {
    		tok := in.lex()
    		switch {
    		case tok.kind.isEOL():
    			in.file.Stmt = append(in.file.Stmt, &Line{
    				Start: start,
    				Token: tokens,
    				End:   end,
    			})
    			return
    
    		case tok.kind == '(':
    			if next := in.peek(); next.isEOL() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    		return 0, nil, nil
    	})
    
    	var tok string
    	var isNamed bool
    	for scanner.Scan() {
    		tok = scanner.Text()
    		switch tok {
    		case "[":
    			if !opts.allowArrayNotation {
    				return nil, nil, fmt.Errorf("array notation is not allowed")
    			}
    			if !scanner.Scan() {
    				return nil, nil, fmt.Errorf("unexpected end of JSON path")
    			}
    			tok = scanner.Text()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    				return
    			}
    			op := assignOp(s.Tok)
    			if op == token.ILLEGAL {
    				check.errorf(atPos(s.TokPos), InvalidSyntaxTree, "unknown assignment operation %s", s.Tok)
    				return
    			}
    			var x operand
    			check.binary(&x, nil, s.Lhs[0], s.Rhs[0], op, s.TokPos)
    			if x.mode == invalid {
    				return
    			}
    			check.assignVar(s.Lhs[0], nil, &x, "assignment")
    		}
    
    	case *ast.GoStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    // might inadvertently copy a lock by checking whether
    // any of the range variables are locks.
    func checkCopyLocksRange(pass *analysis.Pass, r *ast.RangeStmt) {
    	checkCopyLocksRangeVar(pass, r.Tok, r.Key)
    	checkCopyLocksRangeVar(pass, r.Tok, r.Value)
    }
    
    func checkCopyLocksRangeVar(pass *analysis.Pass, rtok token.Token, e ast.Expr) {
    	if e == nil {
    		return
    	}
    	id, isId := e.(*ast.Ident)
    	if isId && id.Name == "_" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/rangefunc/rewrite.go

    	if len(loop.checkBranch) > 0 {
    		did := make(map[branch]bool)
    		for _, br := range loop.checkBranch {
    			if did[br] {
    				continue
    			}
    			did[br] = true
    			doBranch := &syntax.BranchStmt{Tok: br.tok, Label: &syntax.Name{Value: br.label}}
    			list = append(list, r.ifNext(syntax.Eql, r.branchNext[br], true, doBranch))
    		}
    	}
    
    	curLoop := loop.depth - 1
    	curLoopIndex := curLoop - 1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. src/go/doc/reader.go

    		if s, ok := d.Specs[0].(*ast.ValueSpec); ok {
    			return s.Names[0].Name
    		}
    	}
    	return ""
    }
    
    func sortedValues(m []*Value, tok token.Token) []*Value {
    	list := make([]*Value, len(m)) // big enough in any case
    	i := 0
    	for _, val := range m {
    		if val.Decl.Tok == tok {
    			list[i] = val
    			i++
    		}
    	}
    	list = list[0:i]
    
    	slices.SortFunc(list, func(a, b *Value) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/istio_ca.go

    	token, err := os.ReadFile(securityModel.ThirdPartyJwtPath)
    	if err == nil {
    		tok, err := detectAuthEnv(string(token))
    		if err != nil {
    			log.Warnf("Starting with invalid K8S JWT token: %v", err)
    		} else {
    			if iss == "" {
    				iss = tok.Iss
    			}
    			if len(tok.Aud) > 0 && len(aud) == 0 {
    				aud = tok.Aud[0]
    			}
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. src/go/printer/printer_test.go

    // be parsed.
    func TestEmptyDecl(t *testing.T) { // issue 63566
    	for _, tok := range []token.Token{token.IMPORT, token.CONST, token.TYPE, token.VAR} {
    		var buf bytes.Buffer
    		Fprint(&buf, token.NewFileSet(), &ast.GenDecl{Tok: tok})
    		got := buf.String()
    		want := tok.String() + " ()"
    		if got != want {
    			t.Errorf("got %q, want %q", got, want)
    		}
    	}
    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/doc/example.go

    		numDecl := 0      // number of non-import declarations in the file
    		var flist []*Example
    		for _, decl := range file.Decls {
    			if g, ok := decl.(*ast.GenDecl); ok && g.Tok != token.IMPORT {
    				numDecl++
    				continue
    			}
    			f, ok := decl.(*ast.FuncDecl)
    			if !ok || f.Recv != nil {
    				continue
    			}
    			numDecl++
    			name := f.Name.Name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	}
    
    	var oldAnnotationSet sets.Set[string]
    	mpa := nodeInfoAnnotations[v1.MigratedPluginsAnnotationKey]
    	tok := strings.Split(mpa, ",")
    	if len(mpa) == 0 {
    		oldAnnotationSet = sets.New[string]()
    	} else {
    		oldAnnotationSet = sets.New[string](tok...)
    	}
    
    	newAnnotationSet := sets.New[string]()
    	for pluginName, migratedFunc := range migratedPlugins {
    		if migratedFunc() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top