Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 121 for Tok (0.08 sec)

  1. src/go/ast/import.go

    // It also removes duplicate imports when it is possible to do so without data loss.
    func SortImports(fset *token.FileSet, f *File) {
    	for _, d := range f.Decls {
    		d, ok := d.(*GenDecl)
    		if !ok || d.Tok != token.IMPORT {
    			// Not an import declaration, so we're done.
    			// Imports are always first.
    			break
    		}
    
    		if !d.Lparen.IsValid() {
    			// Not a block: sorted by default.
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/go/parser/interface.go

    		err = p.errors.Err()
    	}()
    
    	// parse expr
    	p.init(fset, filename, text, mode)
    	expr = p.parseRhs()
    
    	// If a semicolon was inserted, consume it;
    	// report an error if there's more tokens.
    	if p.tok == token.SEMICOLON && p.lit == "\n" {
    		p.next()
    	}
    	p.expect(token.EOF)
    
    	return
    }
    
    // ParseExpr is a convenience function for obtaining the AST of an expression x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

    ```mlir {.mlir}
    // Loop `%count.init` times and return the last counter (always zero)
    %fetches = tf_executor.graph {
    
      %loop.init, %ctl0 = tf_executor.Enter %count.init : i32
    
      %next_count, %tok = tf_executor.NextIteration.Source : i32
    
      %loop.body.init, %ctlMerge = tf_executor.Merge %loop.init, %next_count : i32
    
      %dec_count, %ctlAdd = tf_executor.island
        wraps tf.Add %loop.body.init, -1 : (i32, i32) -> i32
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
  5. src/go/constant/value.go

    // imaginary, character, or string value for a Go literal string. The
    // tok value must be one of [token.INT], [token.FLOAT], [token.IMAG],
    // [token.CHAR], or [token.STRING]. The final argument must be zero.
    // If the literal string syntax is invalid, the result is an [Unknown].
    func MakeFromLiteral(lit string, tok token.Token, zero uint) Value {
    	if zero != 0 {
    		panic("MakeFromLiteral called with non-zero last argument")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stmt.go

    			return
    		}
    
    		var x operand
    		check.binary(&x, nil, lhs[0], rhs[0], s.Op)
    		check.assignVar(lhs[0], nil, &x, "assignment")
    
    	case *syntax.CallStmt:
    		kind := "go"
    		if s.Tok == syntax.Defer {
    			kind = "defer"
    		}
    		check.suspendedCall(kind, s.Call)
    
    	case *syntax.ReturnStmt:
    		res := check.sig.results
    		// Return with implicit results allowed for function with named results.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/fmt/scan_test.go

    )
    
    // Xs accepts any non-empty run of the verb character
    type Xs string
    
    func (x *Xs) Scan(state ScanState, verb rune) error {
    	tok, err := state.Token(true, func(r rune) bool { return r == verb })
    	if err != nil {
    		return err
    	}
    	s := string(tok)
    	if !regexp.MustCompile("^" + string(verb) + "+$").MatchString(s) {
    		return errors.New("syntax error for xs")
    	}
    	*x = Xs(s)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  8. src/compress/flate/huffman_bit_writer_test.go

    		return
    	}
    	t.Log("Reset ok")
    	testWriterEOF(t, "wb", test, false)
    }
    
    func writeToType(t *testing.T, ttype string, bw *huffmanBitWriter, tok []token, input []byte) {
    	switch ttype {
    	case "wb":
    		bw.writeBlock(tok, false, input)
    	case "dyn":
    		bw.writeBlockDynamic(tok, false, input)
    	default:
    		panic("unknown test type")
    	}
    
    	if bw.err != nil {
    		t.Error(bw.err)
    		return
    	}
    
    	bw.flush()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 40.3K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    	}
    
    	// nextToken gets the next token delimited by a newline. This assumes that
    	// at least one newline exists in the buffer.
    	nextToken := func() string {
    		cntNewline--
    		tok, _ := buf.ReadString('\n')
    		return strings.TrimRight(tok, "\n")
    	}
    
    	// Parse for the number of entries.
    	// Use integer overflow resistant math to check this.
    	if err := feedTokens(1); err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. src/go/types/decl.go

    		var last *ast.ValueSpec // last ValueSpec with type or init exprs seen
    		for iota, s := range d.Specs {
    			switch s := s.(type) {
    			case *ast.ImportSpec:
    				f(importDecl{s})
    			case *ast.ValueSpec:
    				switch d.Tok {
    				case token.CONST:
    					// determine which initialization expressions to use
    					inherited := true
    					switch {
    					case s.Type != nil || len(s.Values) > 0:
    						last = s
    						inherited = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top