Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for makeImg (0.36 sec)

  1. pkg/revisions/tag_watcher_test.go

    	whs.Create(makeTag("revision", "tag-foo"))
    	track.WaitOrdered("revision,tag-foo")
    	assert.Equal(t, tw.GetMyTags(), sets.New("revision", "tag-foo"))
    
    	whs.Create(makeTag("revision", "tag-bar"))
    	track.WaitOrdered("revision,tag-bar,tag-foo")
    	assert.Equal(t, tw.GetMyTags(), sets.New("revision", "tag-foo", "tag-bar"))
    
    	whs.Update(makeTag("not-revision", "tag-bar"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/parse.go

    	defer func() {
    		if recover() != nil {
    			t = Tag{}
    			err = language.ErrSyntax
    		}
    	}()
    
    	tt, err := language.Parse(s)
    	if err != nil {
    		return makeTag(tt), err
    	}
    	tt, changed := canonicalize(c, tt)
    	if changed {
    		tt.RemakeString()
    	}
    	return makeTag(tt), err
    }
    
    // Compose creates a Tag from individual parts, which may be of type Tag, Base,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/go/constant/example_test.go

    import (
    	"fmt"
    	"go/constant"
    	"go/token"
    	"math"
    	"slices"
    )
    
    func Example_complexNumbers() {
    	// Create the complex number 2.3 + 5i.
    	ar := constant.MakeFloat64(2.3)
    	ai := constant.MakeImag(constant.MakeInt64(5))
    	a := constant.BinaryOp(ar, token.ADD, ai)
    
    	// Compute (2.3 + 5i) * 11.
    	b := constant.MakeUint64(11)
    	c := constant.BinaryOp(a, token.MUL, b)
    
    	// Convert c into a complex128.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/const.go

    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    		case Complex128:
    			if rounded == nil {
    				return fitsFloat64(constant.Real(x)) && fitsFloat64(constant.Imag(x))
    			}
    			re := roundFloat64(constant.Real(x))
    			im := roundFloat64(constant.Imag(x))
    			if re != nil && im != nil {
    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/go/types/const.go

    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    		case Complex128:
    			if rounded == nil {
    				return fitsFloat64(constant.Real(x)) && fitsFloat64(constant.Imag(x))
    			}
    			re := roundFloat64(constant.Real(x))
    			im := roundFloat64(constant.Imag(x))
    			if re != nil && im != nil {
    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top