Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isTypes2 (0.12 sec)

  1. src/go/types/operand.go

    //
    // cgofunc    <expr> (<untyped kind> <mode>                    )
    // cgofunc    <expr> (               <mode>       of type <typ>)
    func operandString(x *operand, qf Qualifier) string {
    	// special-case nil
    	if isTypes2 {
    		if x.mode == nilvalue {
    			switch x.typ {
    			case nil, Typ[Invalid]:
    				return "nil (with invalid type)"
    			case Typ[UntypedNil]:
    				return "nil"
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/operand.go

    //
    // cgofunc    <expr> (<untyped kind> <mode>                    )
    // cgofunc    <expr> (               <mode>       of type <typ>)
    func operandString(x *operand, qf Qualifier) string {
    	// special-case nil
    	if isTypes2 {
    		if x.mode == nilvalue {
    			switch x.typ {
    			case nil, Typ[Invalid]:
    				return "nil (with invalid type)"
    			case Typ[UntypedNil]:
    				return "nil"
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/go/types/assignments.go

    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    	case nilvalue:
    		assert(isTypes2)
    		// ok
    	case constant_, variable, mapindex, value, commaok, commaerr:
    		// ok
    	default:
    		// we may get here because of other problems (go.dev/issue/39634, crash 12)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/assignments.go

    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    	case nilvalue:
    		assert(isTypes2)
    		// ok
    	case constant_, variable, mapindex, value, commaok, commaerr:
    		// ok
    	default:
    		// we may get here because of other problems (go.dev/issue/39634, crash 12)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/go/types/typestring.go

    			// error messages. This doesn't need to be super-elegant; we just
    			// need a clear indication that this is not a predeclared name.
    			if w.ctxt == nil && Universe.Lookup(t.obj.name) != nil {
    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    					// we don't have a token.FileSet accessible.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typestring.go

    			// error messages. This doesn't need to be super-elegant; we just
    			// need a clear indication that this is not a predeclared name.
    			if w.ctxt == nil && Universe.Lookup(t.obj.name) != nil {
    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    					// we don't have a token.FileSet accessible.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/index/suffixarray/sais.go

    	// nowhere to write it down, so we eliminate it by untruthfully
    	// setting isTypeS = false at the start of the loop.
    	c0, c1, isTypeS := byte(0), byte(0), false
    	for i := len(text) - 1; i >= 0; i-- {
    		c0, c1 = text[i], c0
    		if c0 < c1 {
    			isTypeS = true
    		} else if c0 > c1 && isTypeS {
    			isTypeS = false
    
    			// Bucket the index i+1 for the start of an LMS-substring.
    			b := bucket[c1] - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top