Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for toen (0.31 sec)

  1. src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go

    import (
    	"context"
    	"fmt"
    	"sync"
    )
    
    type token struct{}
    
    // A Group is a collection of goroutines working on subtasks that are part of
    // the same overall task.
    //
    // A zero Group is valid, has no limit on the number of active goroutines,
    // and does not cancel on error.
    type Group struct {
    	cancel func(error)
    
    	wg sync.WaitGroup
    
    	sem chan token
    
    	errOnce sync.Once
    	err     error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    		if thenStart != nil {
    			start.then = thenStart
    			thenEnd.then = end
    		} else {
    			start.then = end
    		}
    		if elseStart != nil {
    			start.els = elseStart
    			elseEnd.then = end
    		} else {
    			start.els = end
    		}
    	}
    	return start, end
    }
    
    func exprToString(t ast.Expr) string {
    	var buf bytes.Buffer
    	printer.Fprint(&buf, token.NewFileSet(), t)
    	return buf.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/ssa_test.go

    // license that can be found in the LICENSE file.
    
    package test
    
    import (
    	"bytes"
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    // runGenTest runs a test-generator, then runs the generated test.
    // Generated test can either fail in compilation or execution.
    // The environment variable parameter(s) is passed to the run
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    type parser struct {
    	err error // Last error seen
    }
    
    type formatter struct {
    	err error // Last error seen
    }
    
    // parseString parses bytes as a NUL-terminated C-style string.
    // If a NUL byte is not found then the whole slice is returned as a string.
    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    	}
    	return string(b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/lex.go

    	// Text returns the original string representation of the token.
    	Text() string
    	// File reports the source file name of the token.
    	File() string
    	// Base reports the position base of the token.
    	Base() *src.PosBase
    	// SetBase sets the position base.
    	SetBase(*src.PosBase)
    	// Line reports the source line number of the token.
    	Line() int
    	// Col reports the source column number of the token.
    	Col() int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/util.go

    	return constant.MakeFromLiteral(lit, kind2tok[kind], 0)
    }
    
    var kind2tok = [...]token.Token{
    	syntax.IntLit:    token.INT,
    	syntax.FloatLit:  token.FLOAT,
    	syntax.ImagLit:   token.IMAG,
    	syntax.RuneLit:   token.CHAR,
    	syntax.StringLit: token.STRING,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/sparsetree.go

    	// entry(x) < entry(y) allows cases x-dom-y and x-then-y.
    	// But by supposition, x does not dominate y. So we have x-then-y.
    	//
    	// For contradiction, assume x dominates z.
    	// Then entry(x) < entry(z) < exit(z) < exit(x).
    	// But we know x-then-y, so entry(x) < exit(x) < entry(y) < exit(y).
    	// Combining those, entry(x) < entry(z) < exit(z) < exit(x) < entry(y) < exit(y).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    			p.printf("%s", strings.TrimSpace(com.Token))
    			p.newline()
    		}
    	}
    
    	switch x := x.(type) {
    	default:
    		panic(fmt.Errorf("printer: unexpected type %T", x))
    
    	case *CommentBlock:
    		// done
    
    	case *LParen:
    		p.printf("(")
    	case *RParen:
    		p.printf(")")
    
    	case *Line:
    		p.tokens(x.Token)
    
    	case *LineBlock:
    		p.tokens(x.Token)
    		p.printf(" ")
    		p.expr(&x.LParen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/cgo/ast_go1.go

    // license that can be found in the LICENSE file.
    
    //go:build compiler_bootstrap
    
    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	error_(token.NoPos, "unexpected type %T in walk", x)
    	panic("unexpected type")
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 578 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/dep_test.go

    		switch dep {
    		case "go/build", "go/scanner":
    			// cmd/compile/internal/importer introduces a dependency
    			// on go/build and go/token; cmd/compile/internal/ uses
    			// go/constant which uses go/token in its API. Once we
    			// got rid of those dependencies, enable this check again.
    			// TODO(gri) fix this
    			// t.Errorf("undesired dependency on %q", dep)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 853 bytes
    - Viewed (0)
Back to top