- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 105 for SelectorExpr (0.26 sec)
-
src/cmd/fix/fix.go
case *ast.CompositeLit: walkBeforeAfter(&n.Type, before, after) walkBeforeAfter(&n.Elts, before, after) case *ast.ParenExpr: walkBeforeAfter(&n.X, before, after) case *ast.SelectorExpr: walkBeforeAfter(&n.X, before, after) case *ast.IndexExpr: walkBeforeAfter(&n.X, before, after) walkBeforeAfter(&n.Index, before, after) case *ast.IndexListExpr: walkBeforeAfter(&n.X, before, after)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 14.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
// ignore - error reported before case novalue: check.errorf(&x, NotAType, "%s used as type", &x) default: check.errorf(&x, NotAType, "%s is not a type", &x) } case *syntax.SelectorExpr: var x operand check.selector(&x, e, def, true) switch x.mode { case typexpr: typ := x.typ setDefType(def, typ) return typ case invalid:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
// Implicits map[syntax.Node]Object // Selections maps selector expressions (excluding qualified identifiers) // to their corresponding selections. Selections map[*syntax.SelectorExpr]*Selection // Scopes maps syntax.Nodes to the scopes they define. Package scopes are not // associated with a specific node but with all files belonging to a package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/go/parser/parser.go
} if ident == nil { ident = p.parseIdent() } if p.tok == token.PERIOD { // ident is a package name p.next() sel := p.parseIdent() return &ast.SelectorExpr{X: ident, Sel: sel} } return ident } // "[" has already been consumed, and lbrack is its position. // If len != nil it is the already consumed array length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
wrapperFn.WrappedFunc = wrapped.Func } visit(&call.Fun) visitList(call.Args) case ir.OCALLINTER: call := call.(*ir.CallExpr) argps = append(argps, &call.Fun.(*ir.SelectorExpr).X) // must be first for OCHECKNIL; see below visitList(call.Args) case ir.OAPPEND, ir.ODELETE, ir.OPRINT, ir.OPRINTLN, ir.ORECOVERFP: call := call.(*ir.CallExpr) visitList(call.Args) visit(&call.RType)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0) -
src/go/types/assignments.go
// expression, or the blank identifier. Operands may be parenthesized." switch x.mode { case invalid: return Typ[Invalid] case variable, mapindex: // ok default: if sel, ok := x.expr.(*ast.SelectorExpr); ok { var op operand check.expr(nil, &op, sel.X) if op.mode == mapindex { check.errorf(&x, UnaddressableFieldAssign, "cannot assign to struct field %s in map", ExprString(x.expr)) return Typ[Invalid]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 16.4K bytes - Viewed (0) -
src/go/types/typexpr.go
case invalid: // ignore - error reported before case novalue: check.errorf(&x, NotAType, "%s used as type", &x) default: check.errorf(&x, NotAType, "%s is not a type", &x) } case *ast.SelectorExpr: var x operand check.selector(&x, e, def, true) switch x.mode { case typexpr: typ := x.typ setDefType(def, typ) return typ case invalid:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/assignments.go
// expression, or the blank identifier. Operands may be parenthesized." switch x.mode { case invalid: return Typ[Invalid] case variable, mapindex: // ok default: if sel, ok := x.expr.(*syntax.SelectorExpr); ok { var op operand check.expr(nil, &op, sel.X) if op.mode == mapindex { check.errorf(&x, UnaddressableFieldAssign, "cannot assign to struct field %s in map", ExprString(x.expr)) return Typ[Invalid]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0) -
src/go/parser/resolver.go
// Expressions. case *ast.Ident: r.resolve(n, true) case *ast.FuncLit: r.openScope(n.Pos()) defer r.closeScope() r.walkFuncType(n.Type) r.walkBody(n.Body) case *ast.SelectorExpr: ast.Walk(r, n.X) // Note: don't try to resolve n.Sel, as we don't support qualified // resolution. case *ast.StructType: r.openScope(n.Pos()) defer r.closeScope()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 15.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)