Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for badexit (0.29 sec)

  1. src/cmd/link/internal/ld/main.go

    	if ctxt.Debugvlog > 0 {
    		// dump symbol info on crash
    		defer func() { ctxt.loader.Dump() }()
    	}
    	if ctxt.Debugvlog > 1 {
    		// dump symbol info on error
    		AtExit(func() {
    			if nerrors > 0 {
    				ctxt.loader.Dump()
    			}
    		})
    	}
    
    	switch *flagHeadType {
    	case "":
    	case "windowsgui":
    		ctxt.HeadType = objabi.Hwindows
    		windowsgui = true
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/go/ast/ast.go

    }
    
    // An expression is represented by a tree consisting of one
    // or more of the following concrete expression nodes.
    type (
    	// A BadExpr node is a placeholder for an expression containing
    	// syntax errors for which a correct expression node cannot be
    	// created.
    	//
    	BadExpr struct {
    		From, To token.Pos // position range of bad expression
    	}
    
    	// An Ident node represents an identifier.
    	Ident struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    	case *ast.UnaryExpr:
    		children = append(children, tok(n.OpPos, len(n.Op.String())))
    
    	case *ast.ValueSpec:
    		// TODO(adonovan): ValueSpec.{Doc,Comment}?
    
    	case *ast.BadDecl, *ast.BadExpr, *ast.BadStmt:
    		// nop
    	}
    
    	// TODO(adonovan): opt: merge the logic of ast.Inspect() into
    	// the switch above so we can make interleaved callbacks for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. src/cmd/dist/buildtool.go

    	// We could use a temporary directory outside $GOROOT instead,
    	// but it is easier to debug on failure if the files are in a known location.
    	workspace := pathf("%s/pkg/bootstrap", goroot)
    	xremoveall(workspace)
    	xatexit(func() { xremoveall(workspace) })
    	base := pathf("%s/src/bootstrap", workspace)
    	xmkdirall(base)
    
    	// Copy source code into $GOROOT/pkg/bootstrap and rewrite import paths.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/init.go

    	"strconv"
    	"sync"
    )
    
    var buildInitStarted = false
    
    func BuildInit() {
    	if buildInitStarted {
    		base.Fatalf("go: internal error: work.BuildInit called more than once")
    	}
    	buildInitStarted = true
    	base.AtExit(closeBuilders)
    
    	modload.Init()
    	instrumentInit()
    	buildModeInit()
    	if err := fsys.Init(base.Cwd()); err != nil {
    		base.Fatal(err)
    	}
    
    	// Make sure -pkgdir is absolute, because we run commands
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 19:13:34 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  6. src/cmd/go/main.go

    	if cfg.DebugTrace == "" {
    		return pctx
    	}
    
    	ctx, close, err := trace.Start(pctx, cfg.DebugTrace)
    	if err != nil {
    		base.Fatalf("failed to start trace: %v", err)
    	}
    	base.AtExit(func() {
    		if err := close(); err != nil {
    			base.Fatalf("failed to stop trace: %v", err)
    		}
    	})
    
    	return ctx
    }
    
    // handleChdirFlag handles the -C flag before doing anything else.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    		a.apply(n, "Type", nil, n.Type)
    		a.apply(n, "Tag", nil, n.Tag)
    		a.apply(n, "Comment", nil, n.Comment)
    
    	case *ast.FieldList:
    		a.applyList(n, "List")
    
    	// Expressions
    	case *ast.BadExpr, *ast.Ident, *ast.BasicLit:
    		// nothing to do
    
    	case *ast.Ellipsis:
    		a.apply(n, "Elt", nil, n.Elt)
    
    	case *ast.FuncLit:
    		a.apply(n, "Type", nil, n.Type)
    		a.apply(n, "Body", nil, n.Body)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/typexpr.go

    				check.trace(e0.Pos(), "=> %s // %s", T, goTypeName(T))
    			} else {
    				check.trace(e0.Pos(), "=> %s (under = %s) // %s", T, under, goTypeName(T))
    			}
    		}()
    	}
    
    	switch e := e0.(type) {
    	case *syntax.BadExpr:
    		// ignore - error reported before
    
    	case *syntax.Name:
    		var x operand
    		check.ident(&x, e, def, true)
    
    		switch x.mode {
    		case typexpr:
    			typ := x.typ
    			setDefType(def, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/runtime/race.go

    	// already held it's assumed that the first caller exits the program
    	// so other calls can hang forever without an issue.
    	lock(&raceFiniLock)
    
    	// __tsan_fini will run C atexit functions and C++ destructors,
    	// which can theoretically call back into Go.
    	// Tell the scheduler we entering external code.
    	entersyscall()
    
    	// We're entering external code that may call ExitProcess on
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. src/go/types/typexpr.go

    				check.trace(e0.Pos(), "=> %s // %s", T, goTypeName(T))
    			} else {
    				check.trace(e0.Pos(), "=> %s (under = %s) // %s", T, under, goTypeName(T))
    			}
    		}()
    	}
    
    	switch e := e0.(type) {
    	case *ast.BadExpr:
    		// ignore - error reported before
    
    	case *ast.Ident:
    		var x operand
    		check.ident(&x, e, def, true)
    
    		switch x.mode {
    		case typexpr:
    			typ := x.typ
    			setDefType(def, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top