- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UnaryPrec (0.26 sec)
-
src/go/token/token.go
// precedence serves as "catch-all" precedence for selector, // indexing, and other operator and delimiter tokens. const ( LowestPrec = 0 // non-operators UnaryPrec = 6 HighestPrec = 7 ) // Precedence returns the operator precedence of the binary // operator op. If op is not a binary operator, the result // is LowestPrecedence. func (op Token) Precedence() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 6.4K bytes - Viewed (0) -
src/go/printer/nodes.go
p.expr(x.Value) case *ast.StarExpr: const prec = token.UnaryPrec if prec < prec1 { // parenthesis needed p.print(token.LPAREN) p.print(token.MUL) p.expr(x.X) p.print(token.RPAREN) } else { // no parenthesis needed p.print(token.MUL) p.expr(x.X) } case *ast.UnaryExpr: const prec = token.UnaryPrec if prec < prec1 { // parenthesis needed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"STRING", Const, 0}, {"STRUCT", Const, 0}, {"SUB", Const, 0}, {"SUB_ASSIGN", Const, 0}, {"SWITCH", Const, 0}, {"TILDE", Const, 18}, {"TYPE", Const, 0}, {"Token", Type, 0}, {"UnaryPrec", Const, 0}, {"VAR", Const, 0}, {"XOR", Const, 0}, {"XOR_ASSIGN", Const, 0}, }, "go/types": { {"(*Alias).Obj", Method, 22}, {"(*Alias).String", Method, 22},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)