/prebuilts/go/linux-x86/src/log/syslog/ |
syslog_unix.go | 23 if err != nil { 26 return &netConn{conn: conn, local: true}, nil 30 return nil, errors.New("Unix syslog delivery error")
|
/prebuilts/go/linux-x86/src/mime/ |
type_windows.go | 17 if err != nil { 25 if err != nil { 30 if err != nil {
|
/prebuilts/go/linux-x86/src/net/ |
sock_windows.go | 22 if err == nil { 26 if err != nil { 29 return s, nil
|
sockoptip_bsd.go | 16 if err != nil { 21 if err := fd.incref(); err != nil { 29 if err := fd.incref(); err != nil {
|
sockoptip_linux.go | 14 if ifi != nil { 18 if err := fd.incref(); err != nil { 26 if err := fd.incref(); err != nil {
|
sockoptip_windows.go | 15 if err != nil { 20 if err := fd.incref(); err != nil { 28 if err := fd.incref(); err != nil {
|
tcpsockopt_windows.go | 15 if err := fd.incref(); err != nil { 30 err := syscall.WSAIoctl(fd.sysfd, syscall.SIO_KEEPALIVE_VALS, (*byte)(unsafe.Pointer(&ka)), size, nil, 0, &ret, nil, 0)
|
interface_test.go | 14 // for loopback tests. It returns nil if no suitable interface is 18 if err != nil { 19 return nil 26 return nil 33 if ifi == nil { 37 if err != nil { 42 if ifa.IP.To4() == nil && ifa.IP.IsLinkLocalUnicast() { 60 if err != nil { 66 if err != nil { 73 if err != nil { [all...] |
/prebuilts/go/linux-x86/src/os/user/ |
lookup_stubs.go | 19 return nil, fmt.Errorf("user: Current not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 23 return nil, fmt.Errorf("user: Lookup not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 27 return nil, fmt.Errorf("user: LookupId not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
|
/prebuilts/go/linux-x86/src/syscall/ |
syscall_bsd_test.go | 17 n, err := syscall.Getfsstat(nil, MNT_WAIT) 18 if err != nil { 24 if err != nil {
|
/prebuilts/go/linux-x86/test/ |
bigalg.go | 19 var NIL []int 22 if NIL != nil { 23 println("fail1:", NIL, "!= nil") 26 if nil != NIL { 27 println("fail2: nil !=", NIL) 30 if a == nil || nil == a [all...] |
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug148.go | 16 if x == nil { 26 inner_T := f(nil); 39 if recover() == nil {
|
issue10135.go | 9 // old slice, even if it's nil, so this program used to panic 10 // with nil pointer dereference because after append, s is a 11 // slice with nil data pointer but non-zero len and cap.
|
issue7223.go | 15 _ = make([]byte, nil) // ERROR "non-integer.*len" 16 _ = make([]byte, nil, 2) // ERROR "non-integer.*len" 17 _ = make([]byte, 1, nil) // ERROR "non-integer.*cap"
|
/prebuilts/go/darwin-x86/src/crypto/tls/ |
tls.go | 23 // The configuration config must be non-nil and must have 31 // The config cannot be nil: users must set either ServerName or 47 if err != nil { 56 // The configuration config must be non-nil and must have 67 // The configuration config must be non-nil and must have 70 if config == nil || len(config.Certificates) == 0 { 71 return nil, errors.New("tls.Listen: no certificates in configuration") 74 if err != nil { 75 return nil, err 77 return NewListener(l, config), nil [all...] |
/prebuilts/go/darwin-x86/src/net/http/ |
transport.go | 59 altProto map[string]RoundTripper // nil or map of URI scheme => RoundTripper 62 // Request. If the function returns a non-nil error, the 64 // If Proxy is nil or returns a nil *URL, no proxy is used. 69 // If Dial is nil, net.Dial is used. 75 // If DialTLS is nil, Dial and TLSClientConfig are used. 84 // tls.Client. If nil, the default configuration is used. 130 // A nil URL and nil error are returned if no proxy is defined in the 135 // a port number), then a nil URL and nil error will be returned [all...] |
/prebuilts/go/darwin-x86/src/net/ |
interface_test.go | 14 // for loopback tests. It returns nil if no suitable interface is 18 if err != nil { 19 return nil 26 return nil 33 if ifi == nil { 37 if err != nil { 42 if ifa.IP.To4() == nil && ifa.IP.IsLinkLocalUnicast() { 60 if err != nil { 66 if err != nil { 73 if err != nil { [all...] |
/prebuilts/go/linux-x86/src/crypto/tls/ |
tls.go | 23 // The configuration config must be non-nil and must have 31 // The config cannot be nil: users must set either ServerName or 47 if err != nil { 56 // The configuration config must be non-nil and must have 67 // The configuration config must be non-nil and must have 70 if config == nil || len(config.Certificates) == 0 { 71 return nil, errors.New("tls.Listen: no certificates in configuration") 74 if err != nil { 75 return nil, err 77 return NewListener(l, config), nil [all...] |
/prebuilts/go/linux-x86/src/net/http/ |
transport.go | 59 altProto map[string]RoundTripper // nil or map of URI scheme => RoundTripper 62 // Request. If the function returns a non-nil error, the 64 // If Proxy is nil or returns a nil *URL, no proxy is used. 69 // If Dial is nil, net.Dial is used. 75 // If DialTLS is nil, Dial and TLSClientConfig are used. 84 // tls.Client. If nil, the default configuration is used. 130 // A nil URL and nil error are returned if no proxy is defined in the 135 // a port number), then a nil URL and nil error will be returned [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRCommonTreeAdaptor.m | 57 if ( t==nil ) 58 return nil; 107 * seems like this will yield start=i and stop=i-1 in a nil node. 112 if ( aTree == nil ) 116 if ( startToken != nil ) 118 if ( stopToken != nil ) 126 if ( t == nil ) 133 if ( t == nil ) 140 if ( t == nil ) 141 return nil; [all...] |
/external/clang/test/Analysis/ |
NSContainers.m | 115 [marray addObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'addObject:' cannot be nil}} 120 [marray insertObject:0 atIndex:1]; // expected-warning {{Argument to 'NSMutableArray' method 'insertObject:atIndex:' cannot be nil}} 125 [marray replaceObjectAtIndex:1 withObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'replaceObjectAtIndex:withObject:' cannot be nil}} 130 [marray setObject:0 atIndexedSubscript:1]; // expected-warning {{Argument to 'NSMutableArray' method 'setObject:atIndexedSubscript:' cannot be nil}} 135 marray[1] = 0; // expected-warning {{Array element cannot be nil}} 141 NSArray *copyArray = [array arrayByAddingObject:0]; // expected-warning {{Argument to 'NSArray' method 'arrayByAddingObject:' cannot be nil}} 146 [d setObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be nil}} 150 [d setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be nil}} 154 [d removeObjectForKey:0]; // expected-warning {{Value argument to 'removeObjectForKey:' cannot be nil}} 163 d[key] = 0; // expected-warning {{'NSMutableDictionary' key cannot be nil}} [all...] |
/prebuilts/go/darwin-x86/src/archive/zip/ |
example_test.go | 33 if err != nil { 37 if err != nil { 44 if err != nil { 52 if err != nil { 62 if err != nil { 66 if err != nil {
|
/prebuilts/go/darwin-x86/src/cmd/internal/rsc.io/arm/armasm/ |
decode_test.go | 17 if err != nil { 40 if err != nil { 45 if err != nil { 52 if err != nil { 59 out = Plan9Syntax(inst, 0, nil, nil)
|
/prebuilts/go/darwin-x86/src/cmd/vet/ |
nilfunc.go | 7 A useless comparison is one like f == nil as opposed to f() == nil. 20 "check for comparisons between functions and nil", 33 // Only want comparisons with a nil identifier on one side. 60 f.Badf(e.Pos(), "comparison of function %v %v nil is always %v", obj.Name(), e.Op, e.Op == token.NEQ) 63 // isNil reports whether the provided expression is the built-in nil
|
/prebuilts/go/darwin-x86/src/crypto/x509/ |
pem_decrypt.go | 118 return nil, errors.New("x509: no DEK-Info header in block") 123 return nil, errors.New("x509: malformed DEK-Info header") 128 if ciph == nil { 129 return nil, errors.New("x509: unknown encryption mode") 132 if err != nil { 133 return nil, err 136 return nil, errors.New("x509: incorrect IV size") 143 if err != nil { 144 return nil, err 148 return nil, errors.New("x509: encrypted PEM data is not a multiple of the block size" [all...] |