Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for _Colon (0.55 sec)

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

    			}
    
    			// x[i:...
    			// For better error message, don't simply use p.want(_Colon) here (go.dev/issue/47704).
    			if !p.got(_Colon) {
    				p.syntaxError("expected comma, : or ]")
    				p.advance(_Comma, _Colon, _Rbrack)
    			}
    			p.xnest++
    			t := new(SliceExpr)
    			t.pos = pos
    			t.X = x
    			t.Index[0] = i
    			if p.tok != _Colon && p.tok != _Rbrack {
    				// x[i:j...
    				t.Index[1] = p.expr()
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/tokens.go

    	_Arrow    // <-
    	_Star     // *
    
    	// delimiters
    	_Lparen    // (
    	_Lbrack    // [
    	_Lbrace    // {
    	_Rparen    // )
    	_Rbrack    // ]
    	_Rbrace    // }
    	_Comma     // ,
    	_Semi      // ;
    	_Colon     // :
    	_Dot       // .
    	_DotDotDot // ...
    
    	// keywords
    	_Break       // break
    	_Case        // case
    	_Chan        // chan
    	_Const       // const
    	_Continue    // continue
    	_Default     // default
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. 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)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammar.kt

        }
    
        val singleAnnotation by debug {
            annotationMarker * optional(annotationUseSiteTarget) * unescapedAnnotation
        }
    
        val multiAnnotation by debug {
            annotationMarker * optional(annotationUseSiteTarget) * listOfUnescapedAnnotations
        }
    
        val parameter by debug {
            simpleIdentifier * token(COLON) * type
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. 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)
  6. src/net/ipsock.go

    		case len(hostport):
    			// There can't be a ':' behind the ']' now.
    			return addrErr(hostport, missingPort)
    		case i:
    			// The expected result.
    		default:
    			// Either ']' isn't followed by a colon, or it is
    			// followed by a colon that is not the last one.
    			if hostport[end+1] == ':' {
    				return addrErr(hostport, tooManyColons)
    			}
    			return addrErr(hostport, missingPort)
    		}
    		host = hostport[1:end]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/go/parser/parser.go

    	return x
    }
    
    func (p *parser) parseElement() ast.Expr {
    	if p.trace {
    		defer un(trace(p, "Element"))
    	}
    
    	x := p.parseValue()
    	if p.tok == token.COLON {
    		colon := p.pos
    		p.next()
    		x = &ast.KeyValueExpr{Key: x, Colon: colon, Value: p.parseValue()}
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    		defer un(trace(p, "ElementList"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  8. src/go/printer/testdata/parser.go

    	}
    
    	if p.tok == token.LBRACE {
    		return p.parseLiteralValue(nil)
    	}
    
    	x := p.parseExpr(keyOk) // don't resolve if map key
    	if keyOk {
    		if p.tok == token.COLON {
    			colon := p.pos
    			p.next()
    			return &ast.KeyValueExpr{x, colon, p.parseElement(false)}
    		}
    		p.resolve(x) // not a map key
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  9. 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)
  10. src/encoding/pem/pem.go

    			continue
    		}
    		result[n] = b
    		n++
    	}
    
    	return result[0:n]
    }
    
    var pemStart = []byte("\n-----BEGIN ")
    var pemEnd = []byte("\n-----END ")
    var pemEndOfLine = []byte("-----")
    var colon = []byte(":")
    
    // Decode will find the next PEM formatted block (certificate, private key
    // etc) in the input. It returns that block and the remainder of the input. If
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top