Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for StartLine (0.16 sec)

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

    		if !ok {
    			panic("couldn't find function name offset")
    		}
    
    		inlFunc := ldr.FuncInfo(call.Func)
    		var funcID abi.FuncID
    		startLine := int32(0)
    		if inlFunc.Valid() {
    			funcID = inlFunc.FuncID()
    			startLine = inlFunc.StartLine()
    		} else if !ctxt.linkShared {
    			// Inlined functions are always Go functions, and thus
    			// must have FuncInfo.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/list.go

    Loose:
    	for i, c := range blocks {
    		c := c.(*Item)
    		if i+1 < len(blocks) {
    			if blocks[i+1].Pos().StartLine-c.EndLine > 1 {
    				b.loose = true
    				break Loose
    			}
    		}
    		for j, d := range c.Blocks {
    			endLine := d.Pos().EndLine
    			if j+1 < len(c.Blocks) {
    				if c.Blocks[j+1].Pos().StartLine-endLine > 1 {
    					b.loose = true
    					break Loose
    				}
    			}
    		}
    	}
    
    	if !b.loose {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/rsc.io/markdown/para.go

    	}
    
    	if s == "" {
    		return &Empty{p.pos()}
    	}
    
    	// Recompute EndLine because a line of b.text
    	// might have been taken away to start a table.
    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    		SystemName: src.SystemName,
    		Filename:   src.Filename,
    		StartLine:  src.StartLine,
    	}
    	pm.functions[k] = f
    	pm.functionsByID[src.ID] = f
    	pm.p.Function = append(pm.p.Function, f)
    	return f
    }
    
    // key generates a struct to be used as a key for maps.
    func (f *Function) key() functionKey {
    	return functionKey{
    		f.StartLine,
    		f.Name,
    		f.SystemName,
    		f.Filename,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. src/internal/profile/graph.go

    	if line.Function == nil {
    		return &NodeInfo{Address: l.Address}
    	}
    	ni := &NodeInfo{
    		Address: l.Address,
    		Lineno:  int(line.Line),
    		Name:    line.Function.Name,
    	}
    	ni.StartLine = int(line.Function.StartLine)
    	return ni
    }
    
    // Sum adds the flat and cum values of a set of nodes.
    func (ns Nodes) Sum() (flat int64, cum int64) {
    	for _, n := range ns {
    		flat += n.Flat
    		cum += n.Cum
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/rsc.io/markdown/heading.go

    	peek := s
    	if p.nextB() == p.para() && peek.trimSetext(&n) {
    		p.closeBlock()
    		para, ok := p.last().(*Paragraph)
    		if !ok {
    			return s, false
    		}
    		p.deleteLast()
    		p.doneBlock(&Heading{Position{para.StartLine, p.lineno}, n, para.Text, ""})
    		return line{}, true
    	}
    	return s, false
    }
    
    func (s *line) trimHeading(width *int) bool {
    	t := *s
    	t.trimSpace(0, 3, false)
    	if !t.trim('#') {
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/parse.go

    }
    
    type mdState struct {
    	prefix  string
    	prefix1 string // for first line only
    	bullet  rune   // for list items
    	num     int    // for numbered list items
    }
    
    type Position struct {
    	StartLine int
    	EndLine   int
    }
    
    func (p Position) Pos() Position {
    	return p
    }
    
    type buildState interface {
    	blocks() []Block
    	pos() Position
    	last() Block
    	deleteLast()
    
    	link(label string) *Link
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. src/log/slog/logger_test.go

    }
    
    func TestCallDepth(t *testing.T) {
    	ctx := context.Background()
    	h := &captureHandler{}
    	var startLine int
    
    	check := func(count int) {
    		t.Helper()
    		const wantFunc = "log/slog.TestCallDepth"
    		const wantFile = "logger_test.go"
    		wantLine := startLine + count*2
    		got := h.r.source()
    		gotFile := filepath.Base(got.File)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  9. src/internal/profile/encode.go

    }
    
    func (p *Function) encode(b *buffer) {
    	encodeUint64Opt(b, 1, p.ID)
    	encodeInt64Opt(b, 2, p.nameX)
    	encodeInt64Opt(b, 3, p.systemNameX)
    	encodeInt64Opt(b, 4, p.filenameX)
    	encodeInt64Opt(b, 5, p.StartLine)
    }
    
    var functionDecoder = []decoder{
    	nil, // 0
    	// optional uint64 id = 1
    	func(b *buffer, m message) error { return decodeUint64(b, &m.(*Function).ID) },
    	// optional int64 function_name = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    		ni.File = filepath.Clean(fname)
    	}
    	if o.OrigFnNames {
    		ni.OrigName = line.Function.SystemName
    	}
    	if o.ObjNames || (ni.Name == "" && ni.OrigName == "") {
    		ni.Objfile = objfile
    		ni.StartLine = int(line.Function.StartLine)
    	}
    	return ni
    }
    
    type tags struct {
    	t    []*Tag
    	flat bool
    }
    
    func (t tags) Len() int      { return len(t.t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top