Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ExpressionList (0.23 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/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)
Back to top