Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for Processing (1.36 sec)

  1. src/cmd/go/internal/vet/vetflag.go

    	CmdVet.Flag.StringVar(&vetTool, "vettool", "", "")
    }
    
    func parseVettoolFlag(args []string) {
    	// Extract -vettool by ad hoc flag processing:
    	// its value is needed even before we can declare
    	// the flags available during main flag processing.
    	for i, arg := range args {
    		if arg == "-vettool" || arg == "--vettool" {
    			if i+1 >= len(args) {
    				log.Fatalf("%s requires a filename", arg)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modinfo/info.go

    }
    
    type moduleErrorNoMethods ModuleError
    
    // UnmarshalJSON accepts both {"Err":"text"} and "text",
    // so that the output of go mod download -json can still
    // be unmarshaled into a ModulePublic during -reuse processing.
    func (e *ModuleError) UnmarshalJSON(data []byte) error {
    	if len(data) > 0 && data[0] == '"' {
    		return json.Unmarshal(data, &e.Err)
    	}
    	return json.Unmarshal(data, (*moduleErrorNoMethods)(e))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/visit.go

    //
    //	var do func(ir.Node) bool
    //	do = func(x ir.Node) bool {
    //		... processing BEFORE visiting children ...
    //		if ... should visit children ... {
    //			ir.DoChildren(x, do)
    //		}
    //		... processing AFTER visiting children ...
    //		return false
    //	}
    //	do(root)
    //
    // The Visit function illustrates a further simplification of the pattern,
    // only processing before visiting children and never stopping:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 14:29:16 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vet/vet.go

    See also: go fmt, go fix.
    	`,
    }
    
    func runVet(ctx context.Context, cmd *base.Command, args []string) {
    	vetFlags, pkgArgs := vetFlags(args)
    	modload.InitWorkfile() // The vet command does custom flag processing; initialize workspaces after that.
    
    	if cfg.DebugTrace != "" {
    		var close func() error
    		var err error
    		ctx, close, err = trace.Start(ctx, cfg.DebugTrace)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cmdflag/flag.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package cmdflag handles flag processing common to several go tools.
    package cmdflag
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"strings"
    )
    
    // The flag handling part of go commands such as test is large and distracting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/input.go

    func (in *Input) macroName() string {
    	// We use the Stack's input method; no macro processing at this stage.
    	tok := in.Stack.Next()
    	if tok != scanner.Ident {
    		in.expectText("expected identifier after # directive")
    	}
    	// Name is alphanumeric by definition.
    	return in.Stack.Text()
    }
    
    // #define processing.
    func (in *Input) define() {
    	name := in.macroName()
    	args, tokens := in.macroDefinition(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/noder/noder.go

    	noders := make([]*noder, len(filenames))
    	for i := range noders {
    		p := noder{
    			err: make(chan syntax.Error),
    		}
    		noders[i] = &p
    	}
    
    	// Move the entire syntax processing logic into a separate goroutine to avoid blocking on the "sem".
    	go func() {
    		for i, filename := range filenames {
    			filename := filename
    			p := noders[i]
    			sem <- struct{}{}
    			go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/flagalloc.go

    	for _, b := range f.Blocks {
    		b.FlagsLiveAtEnd = end[b.ID] != nil
    	}
    
    	// Remove any now-dead values.
    	// The number of values to remove is likely small,
    	// and removing them requires processing all values in a block,
    	// so minimize the number of blocks that we touch.
    
    	// Shrink remove to contain only dead values, and clobber those dead values.
    	for i := 0; i < len(remove); i++ {
    		v := remove[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/ast.go

    	case *ast.Expr:
    		switch (*x).(type) {
    		case *ast.SelectorExpr:
    			f.saveRef(x, context)
    		}
    	case *ast.CallExpr:
    		f.saveCall(x, context)
    	}
    }
    
    // Save references to C.xxx for later processing.
    func (f *File) saveRef(n *ast.Expr, context astContext) {
    	sel := (*n).(*ast.SelectorExpr)
    	// For now, assume that the only instance of capital C is when
    	// used as the imported package identifier.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/generate/generate_test.go

    //     before moving on to the next test.
    //  2. If a source line number is specified, set that in the parser
    //     before executing the test.  i.e., execute the split as if it
    //     processing that source line.
    func TestGenerateCommandShorthand(t *testing.T) {
    	dir := filepath.Join(testenv.GOROOT(t), "src", "sys")
    	g := &Generator{
    		r:        nil, // Unused here.
    		path:     filepath.Join(dir, "proc.go"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 14:09:12 UTC 2022
    - 7.4K bytes
    - Viewed (0)
Back to top