Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 112 for descr (0.12 sec)

  1. src/cmd/fix/buildtag.go

    	"go/version"
    	"strings"
    )
    
    func init() {
    	register(buildtagFix)
    }
    
    const buildtagGoVersionCutoff = "go1.18"
    
    var buildtagFix = fix{
    	name: "buildtag",
    	date: "2021-08-25",
    	f:    buildtag,
    	desc: `Remove +build comments from modules using Go 1.18 or later`,
    }
    
    func buildtag(f *ast.File) bool {
    	if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/fix/netipv6zone.go

    package main
    
    import "go/ast"
    
    func init() {
    	register(netipv6zoneFix)
    }
    
    var netipv6zoneFix = fix{
    	name: "netipv6zone",
    	date: "2012-11-26",
    	f:    netipv6zone,
    	desc: `Adapt element key to IPAddr, UDPAddr or TCPAddr composite literals.
    
    https://codereview.appspot.com/6849045/
    `,
    }
    
    func netipv6zone(f *ast.File) bool {
    	if !imports(f, "net") {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	probablyStillBlocked = 10 * time.Second
    )
    
    func mustBlock(t *testing.T, desc string, f func()) (wait func(*testing.T)) {
    	t.Helper()
    
    	done := make(chan struct{})
    	go func() {
    		f()
    		close(done)
    	}()
    
    	timer := time.NewTimer(quiescent)
    	defer timer.Stop()
    	select {
    	case <-done:
    		t.Fatalf("%s unexpectedly did not block", desc)
    	case <-timer.C:
    	}
    
    	return func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. clause/benchmarks_test.go

    			clause.Limit{Limit: &limit10, Offset: 20},
    			clause.OrderBy{Columns: []clause.OrderByColumn{{Column: clause.PrimaryColumn, Desc: true}}},
    		}
    
    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE", "GROUP BY", "LIMIT", "ORDER BY")
    		_ = stmt.SQL.String()
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/fix/printerconfig.go

    package main
    
    import "go/ast"
    
    func init() {
    	register(printerconfigFix)
    }
    
    var printerconfigFix = fix{
    	name: "printerconfig",
    	date: "2012-12-11",
    	f:    printerconfig,
    	desc: `Add element keys to Config composite literals.`,
    }
    
    func printerconfig(f *ast.File) bool {
    	if !imports(f, "go/printer") {
    		return false
    	}
    
    	fixed := false
    	walk(f, func(n any) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            // changes above not being propagated to the map
            for (MojoDescriptor desc : getMojos()) {
                if (goal.equals(desc.getGoal())) {
                    return desc;
                }
            }
            return null;
        }
    
        public void setClassRealm(ClassRealm classRealm) {
            this.classRealm = classRealm;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Apr 14 17:14:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. utils/tests/models.go

    	PercentOff       float32          `gorm:"column:percent_off"`
    }
    
    type CouponProduct struct {
    	CouponId  int    `gorm:"primarykey;size:255"`
    	ProductId string `gorm:"primarykey;size:255"`
    	Desc      string
    }
    
    type Order struct {
    	gorm.Model
    	Num      string
    	Coupon   *Coupon
    	CouponID string
    }
    
    type Parent struct {
    	gorm.Model
    	FavChildID uint
    	FavChild   *Child
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/fix/jnitype.go

    package main
    
    import (
    	"go/ast"
    )
    
    func init() {
    	register(jniFix)
    }
    
    var jniFix = fix{
    	name:     "jni",
    	date:     "2017-12-04",
    	f:        jnifix,
    	desc:     `Fixes initializers of JNI's jobject and subtypes`,
    	disabled: false,
    }
    
    // Old state:
    //
    //	type jobject *_jobject
    //
    // New state:
    //
    //	type jobject uintptr
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Preconditions.java

      public static int checkElementIndex(int index, int size, String desc) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (index < 0 || index >= size) {
          throw new IndexOutOfBoundsException(badElementIndex(index, size, desc));
        }
        return index;
      }
    
      private static String badElementIndex(int index, int size, String desc) {
        if (index < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

      public static int checkElementIndex(int index, int size, String desc) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (index < 0 || index >= size) {
          throw new IndexOutOfBoundsException(badElementIndex(index, size, desc));
        }
        return index;
      }
    
      private static String badElementIndex(int index, int size, String desc) {
        if (index < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
Back to top