Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 358 for escapers (0.31 sec)

  1. test/escape_calls.go

    }
    
    // Test for bug where func var f used prototype's escape analysis results.
    func prototype(xyz []string) {} // ERROR "xyz does not escape"
    func bar() {
    	var got [][]string
    	f := prototype
    	f = func(ss []string) { got = append(got, ss) } // ERROR "leaking param: ss" "func literal does not escape"
    	s := "string"
    	f([]string{s}) // ERROR "\[\]string{...} escapes to heap"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 22:06:07 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue42284.dir/b.go

    package b
    
    import "./a"
    
    func g() {
    	h := a.E() // ERROR "inlining call to a.E" "T\(0\) does not escape"
    	h.M()      // ERROR "devirtualizing h.M to a.T" "inlining call to a.T.M"
    
    	// BAD: T(0) could be stack allocated.
    	i := a.F(a.T(0)) // ERROR "inlining call to a.F" "a.T\(0\) escapes to heap"
    
    	// Testing that we do NOT devirtualize here:
    	i.M()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 18:09:45 UTC 2023
    - 513 bytes
    - Viewed (0)
  3. src/crypto/x509/pkix/pkix.go

    			valueString := fmt.Sprint(tv.Value)
    			escaped := make([]rune, 0, len(valueString))
    
    			for k, c := range valueString {
    				escape := false
    
    				switch c {
    				case ',', '+', '"', '\\', '<', '>', ';':
    					escape = true
    
    				case ' ':
    					escape = k == 0 || k == len(valueString)-1
    
    				case '#':
    					escape = k == 0
    				}
    
    				if escape {
    					escaped = append(escaped, '\\', c)
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/process/ArgWriterTest.groovy

            then:
            writer.toString() == toPlatformLineSeparators('a "" "" b\n')
        }
    
        def "escapes double quotes in argument"() {
            when:
            argWriter.args('"abc"', 'a" bc')
    
            then:
            writer.toString() == toPlatformLineSeparators('\\"abc\\" "a\\" bc"\n')
        }
    
        def "escapes backslash in argument"() {
            when:
            argWriter.args('a\\b', 'a \\ bc')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/go/printer/gobuild.go

    		// Note that these are already tabwriter-escaped.
    		for _, pos := range p.goBuild {
    			block = append(block, p.lineAt(pos)...)
    		}
    		for _, pos := range p.plusBuild {
    			block = append(block, p.lineAt(pos)...)
    		}
    	} else {
    		block = append(block, tabwriter.Escape)
    		block = append(block, "//go:build "...)
    		block = append(block, x.String()...)
    		block = append(block, tabwriter.Escape, '\n')
    		if len(p.plusBuild) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. logger/sql.go

    			case reflect.String:
    				vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    			default:
    				if v != nil && reflectValue.IsValid() && ((reflectValue.Kind() == reflect.Ptr && !reflectValue.IsNil()) || reflectValue.Kind() != reflect.Ptr) {
    					vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    				} else {
    					vars[idx] = nullStr
    				}
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue13799.go

    		fn = func() { // ERROR "func literal escapes to heap$"
    			m[i] = append(m[i], 0)
    			if j < 25 {
    				j++
    				fn()
    			}
    		}
    		fn()
    	}
    
    	if len(m) != maxI {
    		panic(fmt.Sprintf("iter %d: maxI = %d, len(m) = %d", iter, maxI, len(m))) // ERROR "iter escapes to heap$" "len\(m\) escapes to heap$" "500 escapes to heap$" "... argument does not escape$" "fmt.Sprintf\(.*\) escapes to heap"
    	}
    }
    
    func test2(iter int) {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. test/inline.go

    }
    
    func select1(x, y chan bool) int { // ERROR "can inline select1" "x does not escape" "y does not escape"
    	select {
    	case <-x:
    		return 1
    	case <-y:
    		return 2
    	}
    }
    
    func select2(x, y chan bool) { // ERROR "can inline select2" "x does not escape" "y does not escape"
    loop: // test that labeled select can be inlined.
    	select {
    	case <-x:
    		break loop
    	case <-y:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types_jsonschema.go

    	// Accessible property names are escaped according to the following rules when accessed in the expression:
    	// - '__' escapes to '__underscores__'
    	// - '.' escapes to '__dot__'
    	// - '-' escapes to '__dash__'
    	// - '/' escapes to '__slash__'
    	// - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 22:23:23 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  10. src/mime/mediatype.go

    		}
    		// When MSIE sends a full file path (in "intranet mode"), it does not
    		// escape backslashes: "C:\dev\go\foo.txt", not "C:\\dev\\go\\foo.txt".
    		//
    		// No known MIME generators emit unnecessary backslash escapes
    		// for simple token characters like numbers and letters.
    		//
    		// If we see an unnecessary backslash escape, assume it is from MSIE
    		// and intended as a literal backslash. This makes Go servers deal better
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top