Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for tilde (0.04 sec)

  1. src/cmd/compile/internal/types2/typeset.go

    func (s *_TypeSet) underIs(f func(Type) bool) bool {
    	if !s.hasTerms() {
    		return f(nil)
    	}
    	for _, t := range s.terms {
    		assert(t.typ != nil)
    		// x == under(x) for ~x terms
    		u := t.typ
    		if !t.tilde {
    			u = under(u)
    		}
    		if debug {
    			assert(Identical(u, under(u)))
    		}
    		if !f(u) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/go/types/typeset.go

    func (s *_TypeSet) underIs(f func(Type) bool) bool {
    	if !s.hasTerms() {
    		return f(nil)
    	}
    	for _, t := range s.terms {
    		assert(t.typ != nil)
    		// x == under(x) for ~x terms
    		u := t.typ
    		if !t.tilde {
    			u = under(u)
    		}
    		if debug {
    			assert(Identical(u, under(u)))
    		}
    		if !f(u) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/go/types/operand.go

    			// representable by each specific type in the type set of T.
    			return Tp.is(func(t *term) bool {
    				if t == nil {
    					return false
    				}
    				// A term may be a tilde term but the underlying
    				// type of an untyped value doesn't change so we
    				// don't need to do anything special.
    				newType, _, _ := check.implicitTypeAndValue(x, t.typ)
    				return newType != nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    				// first function that got substituted => allocate new out slice
    				// and copy all functions
    				new := make([]*Term, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = NewTerm(t.tilde, u)
    		}
    	}
    	return
    }
    
    // replaceRecvType updates any function receivers that have type old to have
    // type new. It does not modify the input slice; if modifications are required,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/operand.go

    			// representable by each specific type in the type set of T.
    			return Tp.is(func(t *term) bool {
    				if t == nil {
    					return false
    				}
    				// A term may be a tilde term but the underlying
    				// type of an untyped value doesn't change so we
    				// don't need to do anything special.
    				newType, _, _ := check.implicitTypeAndValue(x, t.typ)
    				return newType != nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/subst.go

    				// first function that got substituted => allocate new out slice
    				// and copy all functions
    				new := make([]*Term, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = NewTerm(t.tilde, u)
    		}
    	}
    	return
    }
    
    // replaceRecvType updates any function receivers that have type old to have
    // type new. It does not modify the input slice; if modifications are required,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/mdo/reader-stax.vm

            entities.put("Iuml", "\u00cf");
            entities.put("ETH", "\u00d0");
            entities.put("Ntilde", "\u00d1");
            entities.put("Ograve", "\u00d2");
            entities.put("Oacute", "\u00d3");
            entities.put("Ocirc", "\u00d4");
            entities.put("Otilde", "\u00d5");
            entities.put("Ouml", "\u00d6");
            entities.put("times", "\u00d7");
            entities.put("Oslash", "\u00d8");
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    }
    
    func (h Hasher) hashTermSet(terms []*types.Term) uint32 {
    	hash := 9157 + 2*uint32(len(terms))
    	for _, term := range terms {
    		// term order is not significant.
    		termHash := h.Hash(term.Type())
    		if term.Tilde() {
    			termHash *= 9161
    		}
    		hash += 3 * termHash
    	}
    	return hash
    }
    
    // hashTypeParam returns a hash of the type parameter t, with a hash value
    // depending on whether t is contained in h.sigTParams.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/scanner.go

    		if s.ch == '=' {
    			s.nextch()
    			s.op, s.prec = Neq, precCmp
    			s.tok = _Operator
    			break
    		}
    		s.op, s.prec = Not, 0
    		s.tok = _Operator
    
    	case '~':
    		s.nextch()
    		s.op, s.prec = Tilde, 0
    		s.tok = _Operator
    
    	default:
    		s.errorf("invalid character %#U", s.ch)
    		s.nextch()
    		goto redo
    	}
    
    	return
    
    assignop:
    	if s.ch == '=' {
    		s.nextch()
    		s.tok = _AssignOp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  10. src/mdo/reader.vm

            entities.put("Iuml", "\u00cf");
            entities.put("ETH", "\u00d0");
            entities.put("Ntilde", "\u00d1");
            entities.put("Ograve", "\u00d2");
            entities.put("Oacute", "\u00d3");
            entities.put("Ocirc", "\u00d4");
            entities.put("Otilde", "\u00d5");
            entities.put("Ouml", "\u00d6");
            entities.put("times", "\u00d7");
            entities.put("Oslash", "\u00d8");
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Dec 15 06:33:11 UTC 2023
    - 42.1K bytes
    - Viewed (0)
Back to top