Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for StartLine (0.18 sec)

  1. src/go/build/read.go

    	// at the end of a line.
    	startLine := !first
    	var c byte
    	for r.err == nil && !r.eof {
    		c = r.readByteNoBuf()
    	Reswitch:
    		switch c {
    		default:
    			startLine = false
    
    		case '\n':
    			startLine = true
    
    		case ' ', '\t':
    			// leave startLine alone
    
    		case '"':
    			startLine = false
    			for r.err == nil {
    				if r.eof {
    					r.syntaxError()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/encoding/csv/reader.go

    type ParseError struct {
    	StartLine int   // Line where the record starts
    	Line      int   // Line where the error occurred
    	Column    int   // Column (1-based byte index) where the error occurred
    	Err       error // The actual error
    }
    
    func (e *ParseError) Error() string {
    	if e.Err == ErrFieldCount {
    		return fmt.Sprintf("record on line %d: %v", e.Line, e.Err)
    	}
    	if e.StartLine != e.Line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    	return file, int(line32)
    }
    
    // startLine returns the starting line number of the function. i.e., the line
    // number of the func keyword.
    func (f *Func) startLine() int32 {
    	fn := f.raw()
    	if fn.isInlined() { // inlined version
    		fi := (*funcinl)(unsafe.Pointer(fn))
    		return fi.startLine
    	}
    	return fn.funcInfo().startLine
    }
    
    // findmoduledatap looks up the moduledata for a PC.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			prevPkg = pkg
    			// Put a blank line between the current and new blocks, so that the end
    			// of a file acts as a blank line.
    			lastLine := lastBlock(doc).Pos().EndLine
    			delta := lastLine + 2 - newdoc.Blocks[0].Pos().StartLine
    			for _, b := range newdoc.Blocks {
    				addLines(b, delta)
    			}
    		}
    		// Append non-empty blocks to the result document.
    		for _, b := range newdoc.Blocks {
    			if _, ok := b.(*md.Empty); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    	if start == 0 {
    		if fns[0].Info.StartLine != 0 {
    			start = fns[0].Info.StartLine
    		} else {
    			start = fns[0].Info.Lineno - margin
    		}
    	} else {
    		start -= margin
    	}
    	if end == 0 {
    		end = fns[0].Info.Lineno
    	}
    	end += margin
    	for _, n := range fns {
    		lineno := n.Info.Lineno
    		nodeStart := n.Info.StartLine
    		if nodeStart == 0 {
    			nodeStart = lineno - margin
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	Column   int64
    
    	functionIDX uint64
    }
    
    // Function corresponds to Profile.Function
    type Function struct {
    	ID         uint64
    	Name       string
    	SystemName string
    	Filename   string
    	StartLine  int64
    
    	nameX       int64
    	systemNameX int64
    	filenameX   int64
    }
    
    // Parse parses a profile and checks for its validity. The input
    // may be a gzip-compressed encoded protobuf or one of many legacy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	fName := fmt.Sprintf("%q%q%q%d", ni.Name, ni.OrigName, ni.File, ni.StartLine)
    
    	if f := fm[fName]; f != nil {
    		return f, false
    	}
    
    	f := &profile.Function{
    		ID:         uint64(len(fm) + 1),
    		Name:       ni.Name,
    		SystemName: ni.OrigName,
    		Filename:   ni.File,
    		StartLine:  int64(ni.StartLine),
    	}
    	fm[fName] = f
    	return f, true
    }
    
    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/internal/obj/objfile.go

    		fn := s.Func()
    		if fn == nil {
    			continue
    		}
    		o := goobj.FuncInfo{
    			Args:      uint32(fn.Args),
    			Locals:    uint32(fn.Locals),
    			FuncID:    fn.FuncID,
    			FuncFlag:  fn.FuncFlag,
    			StartLine: fn.StartLine,
    		}
    		pc := &fn.Pcln
    		i := 0
    		o.File = make([]goobj.CUFileIndex, len(pc.UsedFiles))
    		for f := range pc.UsedFiles {
    			o.File[i] = f
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    	pcsp      uint32
    	pcfile    uint32
    	pcln      uint32
    	npcdata   uint32
    	cuOffset  uint32     // runtime.cutab offset of this function's CU
    	startLine int32      // line number of start of function (func keyword/TEXT directive)
    	funcID    abi.FuncID // set for certain special runtime functions
    	flag      abi.FuncFlag
    	_         [1]byte // pad
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top