Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for TILDE (0.06 sec)

  1. src/go/types/builtins.go

    		var terms []*Term
    		if !tp.is(func(t *term) bool {
    			if t == nil {
    				return false
    			}
    			if r := f(t.typ); r != nil {
    				terms = append(terms, NewTerm(t.tilde, r))
    				return true
    			}
    			return false
    		}) {
    			return nil
    		}
    
    		// We can type-check this fine but we're introducing a synthetic
    		// type parameter for the result. It's not clear what the API
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/decl.go

    	// embed it in an implicit interface so that only interface type-checking
    	// needs to take care of such type expressions.
    	if op, _ := x.(*syntax.Operation); op != nil && (op.Op == syntax.Tilde || op.Op == syntax.Or) {
    		t := check.typ(&syntax.InterfaceType{MethodList: []*syntax.Field{{Type: x}}})
    		// mark t as implicit interface if all went well
    		if t, _ := t.(*Interface); t != nil {
    			t.implicit = true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  3. src/go/scanner/scanner.go

    			} else {
    				tok = s.switch3(token.AND, token.AND_ASSIGN, '&', token.LAND)
    			}
    		case '|':
    			tok = s.switch3(token.OR, token.OR_ASSIGN, '|', token.LOR)
    		case '~':
    			tok = token.TILDE
    		default:
    			// next reports unexpected BOMs - don't repeat
    			if ch != bom {
    				// Report an informative error for U+201[CD] quotation
    				// marks, which are easily introduced via copy and paste.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  4. src/go/scanner/scanner_test.go

    	{token.PERIOD, ".", operator},
    
    	{token.RPAREN, ")", operator},
    	{token.RBRACK, "]", operator},
    	{token.RBRACE, "}", operator},
    	{token.SEMICOLON, ";", operator},
    	{token.COLON, ":", operator},
    	{token.TILDE, "~", operator},
    
    	// Keywords
    	{token.BREAK, "break", keyword},
    	{token.CASE, "case", keyword},
    	{token.CHAN, "chan", keyword},
    	{token.CONST, "const", keyword},
    	{token.CONTINUE, "continue", keyword},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/builtins.go

    		var terms []*Term
    		if !tp.is(func(t *term) bool {
    			if t == nil {
    				return false
    			}
    			if r := f(t.typ); r != nil {
    				terms = append(terms, NewTerm(t.tilde, r))
    				return true
    			}
    			return false
    		}) {
    			return nil
    		}
    
    		// We can type-check this fine but we're introducing a synthetic
    		// type parameter for the result. It's not clear what the API
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. src/mdo/reader.vm

            entities.put("Scaron", "\u0160");
            entities.put("scaron", "\u0161");
            entities.put("Yuml", "\u0178");
            entities.put("circ", "\u02c6");
            entities.put("tilde", "\u02dc");
            entities.put("ensp", "\u2002");
            entities.put("emsp", "\u2003");
            entities.put("thinsp", "\u2009");
            entities.put("zwnj", "\u200c");
            entities.put("zwj", "\u200d");
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Dec 15 06:33:11 UTC 2023
    - 42.1K bytes
    - Viewed (0)
  7. src/go/types/decl.go

    	// embed it in an implicit interface so that only interface type-checking
    	// needs to take care of such type expressions.
    	wrap := false
    	switch op := x.(type) {
    	case *ast.UnaryExpr:
    		wrap = op.Op == token.TILDE
    	case *ast.BinaryExpr:
    		wrap = op.Op == token.OR
    	}
    	if wrap {
    		x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
    		t := check.typ(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    			x.mode = invalid
    			return
    		}
    
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    		return
    
    	case token.TILDE:
    		// Provide a better error position and message than what check.op below would do.
    		if !allInteger(x.typ) {
    			check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint")
    			x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/encoding/xml/xml.go

    	"lt":       "\u003C",
    	"gt":       "\u003E",
    	"OElig":    "\u0152",
    	"oelig":    "\u0153",
    	"Scaron":   "\u0160",
    	"scaron":   "\u0161",
    	"Yuml":     "\u0178",
    	"circ":     "\u02C6",
    	"tilde":    "\u02DC",
    	"ensp":     "\u2002",
    	"emsp":     "\u2003",
    	"thinsp":   "\u2009",
    	"zwnj":     "\u200C",
    	"zwj":      "\u200D",
    	"lrm":      "\u200E",
    	"rlm":      "\u200F",
    	"ndash":    "\u2013",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/expr.go

    			x.mode = invalid
    			return
    		}
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    		return
    
    	case syntax.Tilde:
    		// Provide a better error position and message than what check.op below would do.
    		if !allInteger(x.typ) {
    			check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint")
    			x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top