- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ExpressionList (0.19 sec)
-
test/fixedbugs/gcc61253.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // PR61253: gccgo incorrectly parsed the // `RecvStmt = ExpressionList "=" RecvExpr` production. package main func main() { c := make(chan int) v := new(int) b := new(bool) select { case (*v), (*b) = <-c: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 390 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
return isTypeElem(x.X) || (x.Y != nil && isTypeElem(x.Y)) || x.Op == Tilde case *ParenExpr: return isTypeElem(x.X) } return false } // VarSpec = IdentifierList ( Type [ "=" ExpressionList ] | "=" ExpressionList ) . func (p *parser) varDecl(group *Group) Decl { if trace { defer p.trace("varDecl")() } d := new(VarDecl) d.pos = p.pos() d.Group = group d.Pragma = p.takePragma()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
doc/go1.17_spec.html
right. </p> <pre class="ebnf"> ConstDecl = "const" ( ConstSpec | "(" { ConstSpec ";" } ")" ) . ConstSpec = IdentifierList [ [ Type ] "=" ExpressionList ] . IdentifierList = identifier { "," identifier } . ExpressionList = Expression { "," Expression } . </pre> <p> If the type is present, all constants take the type specified, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
right. </p> <pre class="ebnf"> ConstDecl = "const" ( ConstSpec | "(" { ConstSpec ";" } ")" ) . ConstSpec = IdentifierList [ [ Type ] "=" ExpressionList ] . IdentifierList = identifier { "," identifier } . ExpressionList = Expression { "," Expression } . </pre> <p> If the type is present, all constants take the type specified, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
src/go/printer/testdata/parser.go
// Common productions // If lhs is set, result list elements which are identifiers are not resolved. func (p *parser) parseExprList(lhs bool) (list []ast.Expr) { if p.trace { defer un(trace(p, "ExpressionList")) } list = append(list, p.parseExpr(lhs)) for p.tok == token.COMMA { p.next() list = append(list, p.parseExpr(lhs)) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/go/parser/parser.go
// Common productions // If lhs is set, result list elements which are identifiers are not resolved. func (p *parser) parseExprList() (list []ast.Expr) { if p.trace { defer un(trace(p, "ExpressionList")) } list = append(list, p.parseExpr()) for p.tok == token.COMMA { p.next() list = append(list, p.parseExpr()) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0)