Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 35 of 35 for KeyValueExpr (0.26 sec)

  1. src/go/printer/testdata/parser.go

    		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)
  2. src/cmd/compile/internal/syntax/parser.go

    	p.xnest++
    	p.want(_Lbrace)
    	x.Rbrace = p.list("composite literal", _Comma, _Rbrace, func() bool {
    		// value
    		e := p.bare_complitexpr()
    		if p.tok == _Colon {
    			// key ':' value
    			l := new(KeyValueExpr)
    			l.pos = p.pos()
    			p.next()
    			l.Key = e
    			l.Value = p.bare_complitexpr()
    			e = l
    			x.NKeys++
    		}
    		x.ElemList = append(x.ElemList, e)
    		return false
    	})
    	p.xnest--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"InterfaceType.Interface", Field, 0},
    		{"InterfaceType.Methods", Field, 0},
    		{"IsExported", Func, 0},
    		{"IsGenerated", Func, 21},
    		{"KeyValueExpr", Type, 0},
    		{"KeyValueExpr.Colon", Field, 0},
    		{"KeyValueExpr.Key", Field, 0},
    		{"KeyValueExpr.Value", Field, 0},
    		{"LabeledStmt", Type, 0},
    		{"LabeledStmt.Colon", Field, 0},
    		{"LabeledStmt.Label", Field, 0},
    		{"LabeledStmt.Stmt", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. src/go/parser/parser.go

    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)
  5. api/go1.txt

    pkg go/ast, type InterfaceType struct, Interface token.Pos
    pkg go/ast, type InterfaceType struct, Methods *FieldList
    pkg go/ast, type KeyValueExpr struct
    pkg go/ast, type KeyValueExpr struct, Colon token.Pos
    pkg go/ast, type KeyValueExpr struct, Key Expr
    pkg go/ast, type KeyValueExpr struct, Value Expr
    pkg go/ast, type LabeledStmt struct
    pkg go/ast, type LabeledStmt struct, Colon token.Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top