Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Tok (0.04 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    	}
    
    	// determine token string
    	var tok string
    	switch p.tok {
    	case _Name:
    		tok = "name " + p.lit
    	case _Semi:
    		tok = p.lit
    	case _Literal:
    		tok = "literal " + p.lit
    	case _Operator:
    		tok = p.op.String()
    	case _AssignOp:
    		tok = p.op.String() + "="
    	case _IncOp:
    		tok = p.op.String()
    		tok += tok
    	default:
    		tok = tokstring(p.tok)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. src/internal/dag/parse.go

    func (p *rulesParser) nextList() (list []string, token string) {
    	for {
    		tok := p.nextToken()
    		switch tok {
    		case "":
    			if len(list) == 0 {
    				return nil, ""
    			}
    			fallthrough
    		case ",", "<", "!<", ";":
    			p.syntaxError("bad list syntax")
    		}
    		list = append(list, tok)
    
    		tok = p.nextToken()
    		if tok != "," {
    			return list, tok
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. 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)
  4. src/internal/trace/raw/textreader.go

    }
    
    func readArg(s string) (arg string, value uint64, rest string, err error) {
    	var tok string
    	tok, rest = readToken(s)
    	if len(tok) == 0 {
    		return "", 0, s, fmt.Errorf("no argument")
    	}
    	parts := strings.SplitN(tok, "=", 2)
    	if len(parts) < 2 {
    		return "", 0, s, fmt.Errorf("malformed argument: %q", tok)
    	}
    	arg = parts[0]
    	value, err = strconv.ParseUint(parts[1], 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. 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)
  6. src/go/types/labels.go

    					return
    				}
    
    			default:
    				check.errorf(s, InvalidSyntaxTree, "branch statement: %s %s", s.Tok, name)
    				return
    			}
    
    			// record label use
    			obj := all.Lookup(name)
    			obj.(*Label).used = true
    			check.recordUse(s.Label, obj)
    
    		case *ast.AssignStmt:
    			if s.Tok == token.DEFINE {
    				recordVarDecl(s.Pos())
    			}
    
    		case *ast.BlockStmt:
    			blockBranches(lstmt, s.List)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/nodevolumelimits/utils.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)
    }
    
    // volumeLimits returns volume limits associated with the node.
    func volumeLimits(n *framework.NodeInfo) map[v1.ResourceName]int64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top