Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,068 for Appends (0.12 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/appends.go

    	"golang.org/x/tools/go/types/typeutil"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "appends",
    	Doc:      analysisutil.MustExtractDoc(doc, "appends"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/appends",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/appends/appends.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the appends checker.
    
    package appends
    
    func AppendsTest() {
    	sli := []string{"a", "b", "c"}
    	sli = append(sli) // ERROR "append with no values"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 20:55:20 UTC 2023
    - 338 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/doc.go

    // license that can be found in the LICENSE file.
    
    // Package appends defines an Analyzer that detects
    // if there is only one variable in append.
    //
    // # Analyzer appends
    //
    // appends: check for missing values after append
    //
    // This checker reports calls to append that pass
    // no values to be appended to the slice.
    //
    //	s := []string{"a", "b", "c"}
    //	_ = append(s)
    //
    // Such calls are always no-ops and often indicate an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 20:55:20 UTC 2023
    - 577 bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise-logging/src/main/java/org/gradle/internal/logging/text/StyledTextOutput.java

            /**
             * General purpose error text
             */
            Error
        }
    
        /**
         * Appends a character using the current style.
         *
         * @param c The character
         * @return this
         */
        @Override
        StyledTextOutput append(char c);
    
        /**
         * Appends a sequence of characters using the current style.
         *
         * @param csq The character sequence
         * @return this.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Joiner.java

            appendable.append(joiner.toString(entry.getKey()));
            appendable.append(keyValueSeparator);
            appendable.append(joiner.toString(entry.getValue()));
            while (parts.hasNext()) {
              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Joiner.java

            appendable.append(joiner.toString(entry.getKey()));
            appendable.append(keyValueSeparator);
            appendable.append(joiner.toString(entry.getValue()));
            while (parts.hasNext()) {
              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    		panic(b.err)
    	}
    	return b.result[b.offset:]
    }
    
    // AddUint8 appends an 8-bit value to the byte string.
    func (b *Builder) AddUint8(v uint8) {
    	b.add(byte(v))
    }
    
    // AddUint16 appends a big-endian, 16-bit value to the byte string.
    func (b *Builder) AddUint16(v uint16) {
    	b.add(byte(v>>8), byte(v))
    }
    
    // AddUint24 appends a big-endian, 24-bit value to the byte string. The highest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

                    append(value.toString());
                } else {
                    appendValues((Object[]) value);
                }
            } else if (value instanceof String) {
                append("'");
                append(value.toString());
                append("'");
            } else {
                append(value.toString());
            }
            return this;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. src/strings/builder.go

    		b.grow(n)
    	}
    }
    
    // Write appends the contents of p to b's buffer.
    // Write always returns len(p), nil.
    func (b *Builder) Write(p []byte) (int, error) {
    	b.copyCheck()
    	b.buf = append(b.buf, p...)
    	return len(p), nil
    }
    
    // WriteByte appends the byte c to b's buffer.
    // The returned error is always nil.
    func (b *Builder) WriteByte(c byte) error {
    	b.copyCheck()
    	b.buf = append(b.buf, c)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/http2/hpack/encode.go

    func appendVarInt(dst []byte, n byte, i uint64) []byte {
    	k := uint64((1 << n) - 1)
    	if i < k {
    		return append(dst, byte(i))
    	}
    	dst = append(dst, byte(k))
    	i -= k
    	for ; i >= 128; i >>= 7 {
    		dst = append(dst, byte(0x80|(i&0x7f)))
    	}
    	return append(dst, byte(i))
    }
    
    // appendHpackString appends s, as encoded in "String Literal"
    // representation, to dst and returns the extended buffer.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 7.1K bytes
    - Viewed (0)
Back to top