- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for ParenExpr (0.38 sec)
-
src/go/types/expr.go
case *ast.Ident, *ast.BasicLit, *ast.SelectorExpr: // An identifier denoting a constant, a constant literal, // or a qualified identifier (imported untyped constant). // No operands to take care of. case *ast.ParenExpr: check.updateExprType0(x, x.X, typ, final) case *ast.UnaryExpr: // If x is a constant, the operands were constants. // The operands don't need to be updated since they
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/go/doc/reader.go
return baseTypeName(t.X) case *ast.SelectorExpr: if _, ok := t.X.(*ast.Ident); ok { // only possible for qualified type names; // assume type is imported return t.Sel.Name, true } case *ast.ParenExpr: return baseTypeName(t.X) case *ast.StarExpr: return baseTypeName(t.X) } return "", false } // An embeddedSet describes a set of embedded types. type embeddedSet map[*namedType]bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
// work for other invalid receivers, but we don't care. The // validity of receiver expressions is checked elsewhere. for { switch t := rtyp.(type) { case *syntax.ParenExpr: rtyp = t.X // case *ast.StarExpr: // ptr = true // rtyp = t.X case *syntax.Operation: if t.Op != syntax.Mul || t.Y != nil { break } ptr = true rtyp = t.X
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/go/types/resolver.go
// work for other invalid receivers, but we don't care. The // validity of receiver expressions is checked elsewhere. for { switch t := rtyp.(type) { case *ast.ParenExpr: rtyp = t.X case *ast.StarExpr: ptr = true rtyp = t.X default: break L } } // unpack type parameters, if any switch rtyp.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
// An identifier denoting a constant, a constant literal, // or a qualified identifier (imported untyped constant). // No operands to take care of. case *syntax.ParenExpr: check.updateExprType0(x, x.X, typ, final) // case *syntax.UnaryExpr: // // If x is a constant, the operands were constants. // // The operands don't need to be updated since they
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
} return n } // typecheck1 should ONLY be called from typecheck. func typecheck1(n ir.Node, top int) ir.Node { // Skip over parens. for n.Op() == ir.OPAREN { n = n.(*ir.ParenExpr).X } switch n.Op() { default: ir.Dump("typecheck", n) base.Fatalf("typecheck %v", n.Op()) panic("unreachable") case ir.ONAME: n := n.(*ir.Name) if n.BuiltinOp != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
case *ast.SelectorExpr: u.node(node.X) case *ast.UnaryExpr: u.node(node.X) case *ast.BinaryExpr: u.node(node.X) u.node(node.Y) case *ast.StarExpr: u.node(node.X) case *ast.ParenExpr: u.node(node.X) case *ast.IndexExpr: u.node(node.X) u.node(node.Index) case *ast.TypeAssertExpr: u.node(node.X) u.node(node.Type) case *ast.Ident:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Package.Imports", Field, 0}, {"Package.Name", Field, 0}, {"Package.Scope", Field, 0}, {"PackageExports", Func, 0}, {"ParenExpr", Type, 0}, {"ParenExpr.Lparen", Field, 0}, {"ParenExpr.Rparen", Field, 0}, {"ParenExpr.X", Field, 0}, {"Pkg", Const, 0}, {"Print", Func, 0}, {"RECV", Const, 0}, {"RangeStmt", Type, 0}, {"RangeStmt.Body", 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) -
src/cmd/cgo/gcc.go
"rune", "string", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr": return true } if strings.HasPrefix(t.Name, "_Ctype_") { return true } case *ast.ParenExpr: return p.isType(t.X) case *ast.StarExpr: return p.isType(t.X) case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType: return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0)