Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for combinesWithName (0.19 sec)

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

    	// (or an enclosing interface as in [P interface(*T)]), so that the type parameter list
    	// is not parsed as an array length [P*T].
    	if tok == _Type && len(list) == 1 && combinesWithName(list[0].Type) {
    		p.print(_Comma)
    	}
    	p.print(close)
    }
    
    // combinesWithName reports whether a name followed by the expression x
    // syntactically combines to another valid (value) expression. For instance
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/go/printer/nodes.go

    	p.print(closeTok)
    }
    
    // combinesWithName reports whether a name followed by the expression x
    // syntactically combines to another valid (value) expression. For instance
    // using *T for x, "name *T" syntactically appears as the expression x*T.
    // On the other hand, using  P|Q or *P|~Q for x, "name P|Q" or name *P|~Q"
    // cannot be combined into a valid (value) expression.
    func combinesWithName(x ast.Expr) bool {
    	switch x := x.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
Back to top