Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for _Colon (0.11 sec)

  1. src/cmd/compile/internal/syntax/printer.go

    	case *SliceExpr:
    		p.print(n.X, _Lbrack)
    		if i := n.Index[0]; i != nil {
    			p.printNode(i)
    		}
    		p.print(_Colon)
    		if j := n.Index[1]; j != nil {
    			p.printNode(j)
    		}
    		if k := n.Index[2]; k != nil {
    			p.print(_Colon, k)
    		}
    		p.print(_Rbrack)
    
    	case *AssertExpr:
    		p.print(n.X, _Dot, _Lparen, n.Type, _Rparen)
    
    	case *TypeSwitchGuard:
    		if n.Lhs != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/scanner.go

    	case '}':
    		s.nextch()
    		s.nlsemi = true
    		s.tok = _Rbrace
    
    	case ':':
    		s.nextch()
    		if s.ch == '=' {
    			s.nextch()
    			s.tok = _Define
    			break
    		}
    		s.tok = _Colon
    
    	case '.':
    		s.nextch()
    		if isDecimal(s.ch) {
    			s.number(true)
    			break
    		}
    		if s.ch == '.' {
    			s.nextch()
    			if s.ch == '.' {
    				s.nextch()
    				s.tok = _DotDotDot
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/scanner_test.go

    	// delimiters
    	{_Lparen, "(", 0, 0},
    	{_Lbrack, "[", 0, 0},
    	{_Lbrace, "{", 0, 0},
    	{_Rparen, ")", 0, 0},
    	{_Rbrack, "]", 0, 0},
    	{_Rbrace, "}", 0, 0},
    	{_Comma, ",", 0, 0},
    	{_Semi, ";", 0, 0},
    	{_Colon, ":", 0, 0},
    	{_Dot, ".", 0, 0},
    	{_DotDotDot, "...", 0, 0},
    
    	// keywords
    	{_Break, "break", 0, 0},
    	{_Case, "case", 0, 0},
    	{_Chan, "chan", 0, 0},
    	{_Const, "const", 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser_test.go

    		{"//line\n", valid, filename, 2, 1},        // missing colon
    		{"//line foo\n", valid, filename, 2, 1},    // missing colon
    		{"  //line foo:\n", valid, filename, 2, 1}, // not a line start
    		{"//  line foo:\n", valid, filename, 2, 1}, // space between // and line
    
    		// invalid //line directives with one colon
    		{"//line :\n", "invalid line number: ", filename, 1, 9},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/go/ast/ast.go

    		return true
    	}
    
    	// "//[a-z0-9]+:[a-z0-9]"
    	// (The // has been removed.)
    	colon := strings.Index(c, ":")
    	if colon <= 0 || colon+1 >= len(c) {
    		return false
    	}
    	for i := 0; i <= colon+1; i++ {
    		if i == colon {
    			continue
    		}
    		b := c[i]
    		if !('a' <= b && b <= 'z' || '0' <= b && b <= '9') {
    			return false
    		}
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HostAndPort.java

          portString = hostAndPort[1];
        } else {
          int colonPos = hostPortString.indexOf(':');
          if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) {
            // Exactly 1 colon. Split into host:port.
            host = hostPortString.substring(0, colonPos);
            portString = hostPortString.substring(colonPos + 1);
          } else {
            // 0 or 2+ colons. Bare hostname or IPv6 literal.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Aug 22 20:55:57 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    		}
    		if len(items) > 0 {
    			operands = append(operands, items)
    			if colon >= 0 && len(operands) == colon+2 {
    				// AX:DX becomes DX, AX.
    				operands[colon], operands[colon+1] = operands[colon+1], operands[colon]
    				colon = -1
    			}
    		} else if len(operands) > 0 || tok == ',' || colon >= 0 {
    			// Had a separator with nothing after.
    			p.errorf("missing operand")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/net/url/url.go

    func splitHostPort(hostPort string) (host, port string) {
    	host = hostPort
    
    	colon := strings.LastIndexByte(host, ':')
    	if colon != -1 && validOptionalPort(host[colon:]) {
    		host, port = host[:colon], host[colon+1:]
    	}
    
    	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
    		host = host[1 : len(host)-1]
    	}
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  9. src/net/textproto/reader.go

    	}
    
    	for {
    		kv, err := r.readContinuedLineSlice(maxMemory, mustHaveFieldNameColon)
    		if len(kv) == 0 {
    			return m, err
    		}
    
    		// Key ends at first colon.
    		k, v, ok := bytes.Cut(kv, colon)
    		if !ok {
    			return m, ProtocolError("malformed MIME header line: " + string(kv))
    		}
    		key, ok := canonicalMIMEHeaderKey(k)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/net/HostAndPort.java

          portString = hostAndPort[1];
        } else {
          int colonPos = hostPortString.indexOf(':');
          if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) {
            // Exactly 1 colon. Split into host:port.
            host = hostPortString.substring(0, colonPos);
            portString = hostPortString.substring(colonPos + 1);
          } else {
            // 0 or 2+ colons. Bare hostname or IPv6 literal.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Aug 22 20:55:57 UTC 2023
    - 11.3K bytes
    - Viewed (0)
Back to top