Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for printTrace (0.14 sec)

  1. src/go/types/gotype.go

    )
    
    func initParserMode() {
    	if *allErrors {
    		parserMode |= parser.AllErrors
    	}
    	if *printAST {
    		sequential = true
    	}
    	if *printTrace {
    		parserMode |= parser.Trace
    		sequential = true
    	}
    	if *parseComments && (*printAST || *printTrace) {
    		parserMode |= parser.ParseComments
    	}
    }
    
    const usageString = `usage: gotype [flags] [path ...]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	// (it is token.ILLEGAL), so don't print it.
    	if p.trace && p.pos.IsValid() {
    		s := p.tok.String()
    		switch {
    		case p.tok.IsLiteral():
    			p.printTrace(s, p.lit)
    		case p.tok.IsOperator(), p.tok.IsKeyword():
    			p.printTrace("\"" + s + "\"")
    		default:
    			p.printTrace(s)
    		}
    	}
    
    	p.pos, p.tok, p.lit = p.scanner.Scan()
    }
    
    // Consume a comment and return it and the line on which it ends.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	// (it is token.ILLEGAL), so don't print it.
    	if p.trace && p.pos.IsValid() {
    		s := p.tok.String()
    		switch {
    		case p.tok.IsLiteral():
    			p.printTrace(s, p.lit)
    		case p.tok.IsOperator(), p.tok.IsKeyword():
    			p.printTrace("\"" + s + "\"")
    		default:
    			p.printTrace(s)
    		}
    	}
    
    	for {
    		p.pos, p.tok, p.lit = p.scanner.Scan()
    		if p.tok == token.COMMENT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.printhex", 1},
    	{"runtime.printuint", 1},
    	{"runtime.printcomplex", 1},
    	{"runtime.printstring", 1},
    	{"runtime.printpointer", 1},
    	{"runtime.printuintptr", 1},
    	{"runtime.printiface", 1},
    	{"runtime.printeface", 1},
    	{"runtime.printslice", 1},
    	{"runtime.printnl", 1},
    	{"runtime.printsp", 1},
    	{"runtime.printlock", 1},
    	{"runtime.printunlock", 1},
    	{"runtime.concatstring2", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/runtime/print.go

    	gwrite(bytes(s))
    }
    
    func printslice(s []byte) {
    	sp := (*slice)(unsafe.Pointer(&s))
    	print("[", len(s), "/", cap(s), "]")
    	printpointer(sp.array)
    }
    
    func printeface(e eface) {
    	print("(", e._type, ",", e.data, ")")
    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func printfloat(float64)
    func printint(int64)
    func printhex(uint64)
    func printuint(uint64)
    func printcomplex(complex128)
    func printstring(string)
    func printpointer(any)
    func printuintptr(uintptr)
    func printiface(any)
    func printeface(any)
    func printslice(any)
    func printnl()
    func printsp()
    func printlock()
    func printunlock()
    
    func concatstring2(*[32]byte, string, string) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/builtin.go

    	{"printhex", funcTag, 25},
    	{"printuint", funcTag, 25},
    	{"printcomplex", funcTag, 27},
    	{"printstring", funcTag, 29},
    	{"printpointer", funcTag, 30},
    	{"printuintptr", funcTag, 31},
    	{"printiface", funcTag, 30},
    	{"printeface", funcTag, 30},
    	{"printslice", funcTag, 30},
    	{"printnl", funcTag, 9},
    	{"printsp", funcTag, 9},
    	{"printlock", funcTag, 9},
    	{"printunlock", funcTag, 9},
    	{"concatstring2", funcTag, 34},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    			measurement.Percentage(flatSum, rpt.total),
    			item.CumFormat, measurement.Percentage(item.Cum, rpt.total),
    			item.Name, inl)
    	}
    	return nil
    }
    
    // printTraces prints all traces from a profile.
    func printTraces(w io.Writer, rpt *Report) error {
    	fmt.Fprintln(w, strings.Join(ProfileLabels(rpt), "\n"))
    
    	prof := rpt.prof
    	o := rpt.options
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/builtin.go

    			continue
    		}
    
    		var on *ir.Name
    		switch n.Type().Kind() {
    		case types.TINTER:
    			if n.Type().IsEmptyInterface() {
    				on = typecheck.LookupRuntime("printeface", n.Type())
    			} else {
    				on = typecheck.LookupRuntime("printiface", n.Type())
    			}
    		case types.TPTR:
    			if n.Type().Elem().NotInHeap() {
    				on = typecheck.LookupRuntime("printuintptr")
    				n = ir.NewConvExpr(base.Pos, ir.OCONV, nil, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/parser.go

    	p.print(msg + " (")
    	const tab = ". "
    	p.indent = append(p.indent, tab...)
    	return func() {
    		p.indent = p.indent[:len(p.indent)-len(tab)]
    		if x := recover(); x != nil {
    			panic(x) // skip print_trace
    		}
    		p.print(")")
    	}
    }
    
    func (p *parser) print(msg string) {
    	fmt.Printf("%5d: %s%s\n", p.line, p.indent, msg)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top