Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ExpressionList (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
Back to top