Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ElementList (0.16 sec)

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

    	}
    
    	if p.tok == _Lbrace {
    		// '{' start_complit braced_keyval_list '}'
    		return p.complitexpr()
    	}
    
    	return p.expr()
    }
    
    // LiteralValue = "{" [ ElementList [ "," ] ] "}" .
    func (p *parser) complitexpr() *CompositeLit {
    	if trace {
    		defer p.trace("complitexpr")()
    	}
    
    	x := new(CompositeLit)
    	x.pos = p.pos()
    
    	p.xnest++
    	p.want(_Lbrace)
    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

    <pre class="ebnf">
    CompositeLit  = LiteralType LiteralValue .
    LiteralType   = StructType | ArrayType | "[" "..." "]" ElementType |
                    SliceType | MapType | TypeName .
    LiteralValue  = "{" [ ElementList [ "," ] ] "}" .
    ElementList   = KeyedElement { "," KeyedElement } .
    KeyedElement  = [ Key ":" ] Element .
    Key           = FieldName | Expression | LiteralValue .
    FieldName     = identifier .
    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

    CompositeLit  = LiteralType LiteralValue .
    LiteralType   = StructType | ArrayType | "[" "..." "]" ElementType |
                    SliceType | MapType | TypeName [ TypeArgs ] .
    LiteralValue  = "{" [ ElementList [ "," ] ] "}" .
    ElementList   = KeyedElement { "," KeyedElement } .
    KeyedElement  = [ Key ":" ] Element .
    Key           = FieldName | Expression | LiteralValue .
    FieldName     = identifier .
    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