Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 204 for lineFor (0.16 sec)

  1. src/cmd/vendor/rsc.io/markdown/heading.go

    			id, s = extractID(p, s)
    
    			// Goldmark is strict about the id syntax.
    			for _, c := range id {
    				if c >= 0x80 || !isLetterDigit(byte(c)) {
    					p.corner = true
    				}
    			}
    		}
    		pos := Position{p.lineno, p.lineno}
    		p.doneBlock(&Heading{pos, n, p.newText(pos, s), id})
    		return line{}, true
    	}
    	return s, false
    }
    
    // extractID removes an ID attribute from s if one is present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/nowb.go

    		// Record the path.
    		funcs[target] = nowritebarrierrecCall{target: src, lineno: pos}
    		q.PushRight(target.Nname)
    	}
    	for !q.Empty() {
    		fn := q.PopLeft().Func
    
    		// Check fn.
    		if fn.WBPos.IsKnown() {
    			var err strings.Builder
    			call := funcs[fn]
    			for call.target != nil {
    				fmt.Fprintf(&err, "\n\t%v: called by %v", base.FmtPos(call.lineno), call.target.Nname)
    				call = funcs[call.target]
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/tracebackctxt_c.c

    };
    
    struct cgoTracebackArg {
    	uintptr_t  context;
    	uintptr_t  sigContext;
    	uintptr_t* buf;
    	uintptr_t  max;
    };
    
    struct cgoSymbolizerArg {
    	uintptr_t   pc;
    	const char* file;
    	uintptr_t   lineno;
    	const char* func;
    	uintptr_t   entry;
    	uintptr_t   more;
    	uintptr_t   data;
    };
    
    // Uses atomic adds and subtracts to catch the possibility of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 29 15:30:38 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. src/unicode/letter_test.go

    var calibrate = flag.Bool("calibrate", false, "compute crossover for linear vs. binary search")
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    	if runtime.GOARCH == "amd64" {
    		fmt.Printf("warning: running calibration on %s\n", runtime.GOARCH)
    	}
    
    	// Find the point where binary search wins by more than 10%.
    	// The 10% bias gives linear search an edge when they're close,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/AutoTestedSamplesToolingApiTest.groovy

            def checkDiagnostic = { diagnostic ->
                if (diagnostic.kind.name() == 'ERROR') {
                    String[] lines = source.split("\n")
                    int lineNo = diagnostic.lineNumber - 1
    
                    def message = "Compilation error in sample in line: \n" + lines[lineNo] + "\n" + diagnostic + "\n"
                    message = message - sourceFile.absolutePath
                    throw new AssertionError(message)
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. test/chanlinear.go

    // Copyright 2014 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.
    
    // Test that dequeuing from a pending channel doesn't
    // take linear time.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    	"time"
    )
    
    // checkLinear asserts that the running time of f(n) is in O(n).
    // tries is the initial number of iterations.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/internal/dag/parse.go

    }
    
    // A rulesParser parses the depsRules syntax described above.
    type rulesParser struct {
    	lineno   int
    	lastWord string
    	text     string
    }
    
    // syntaxError reports a parsing error.
    func (p *rulesParser) syntaxError(msg string) {
    	panic(syntaxError(fmt.Sprintf("parsing graph: line %d: syntax error: %s near %s", p.lineno, msg, p.lastWord)))
    }
    
    // nextList parses and returns a comma-separated list of names.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. src/debug/dwarf/open.go

    	abbrev   []byte
    	aranges  []byte
    	frame    []byte
    	info     []byte
    	line     []byte
    	pubnames []byte
    	ranges   []byte
    	str      []byte
    
    	// New sections added in DWARF 5.
    	addr       []byte
    	lineStr    []byte
    	strOffsets []byte
    	rngLists   []byte
    
    	// parsed data
    	abbrevCache map[uint64]abbrevTable
    	bigEndian   bool
    	order       binary.ByteOrder
    	typeCache   map[Offset]Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. src/debug/dwarf/line.go

    	buf := makeBuf(d, u, "line", Offset(off), d.line[off:])
    	// The compilation directory is implicitly directories[0].
    	r := LineReader{
    		buf:     buf,
    		section: d.line,
    		str:     d.str,
    		lineStr: d.lineStr,
    	}
    
    	// Read the header.
    	if err := r.readHeader(compDir); err != nil {
    		return nil, err
    	}
    
    	// Initialize line reader state.
    	r.Reset()
    
    	return &r, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  10. src/internal/profile/graph.go

    		name = append(name, fmt.Sprintf("%016x", i.Address))
    	}
    	if fun := i.Name; fun != "" {
    		name = append(name, fun)
    	}
    
    	switch {
    	case i.Lineno != 0:
    		// User requested line numbers, provide what we have.
    		name = append(name, fmt.Sprintf(":%d", i.Lineno))
    	case i.Name != "":
    		// User requested function name. It was already included.
    	default:
    		// Do not leave it empty if there is no information at all.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top