Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 35 of 35 for SelectorExpr (0.16 sec)

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

    		w.exprList(n.ElemList)
    
    	case *KeyValueExpr:
    		w.node(n.Key)
    		w.node(n.Value)
    
    	case *FuncLit:
    		w.node(n.Type)
    		w.node(n.Body)
    
    	case *ParenExpr:
    		w.node(n.X)
    
    	case *SelectorExpr:
    		w.node(n.X)
    		w.node(n.Sel)
    
    	case *IndexExpr:
    		w.node(n.X)
    		w.node(n.Index)
    
    	case *SliceExpr:
    		w.node(n.X)
    		for _, x := range n.Index {
    			if x != nil {
    				w.node(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    	},
    	"Record": map[string]int{
    		"Add": 0,
    	},
    }
    
    // isMethodExpr reports whether a call is to a MethodExpr.
    func isMethodExpr(info *types.Info, c *ast.CallExpr) bool {
    	s, ok := c.Fun.(*ast.SelectorExpr)
    	if !ok {
    		return false
    	}
    	sel := info.Selections[s]
    	return sel != nil && sel.Kind() == types.MethodExpr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/nodes.go

    		expr
    	}
    
    	// func Type { Body }
    	FuncLit struct {
    		Type *FuncType
    		Body *BlockStmt
    		expr
    	}
    
    	// (X)
    	ParenExpr struct {
    		X Expr
    		expr
    	}
    
    	// X.Sel
    	SelectorExpr struct {
    		X   Expr
    		Sel *Name
    		expr
    	}
    
    	// X[Index]
    	// X[T1, T2, ...] (with Ti = Index.(*ListExpr).ElemList[i])
    	IndexExpr struct {
    		X     Expr
    		Index Expr
    		expr
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/nodes_test.go

    	{"CompositeLit", `T@{}`},
    	{"CompositeLit", `struct{x, y int}@{}`},
    
    	{"KeyValueExpr", `"foo"@: true`},
    	{"KeyValueExpr", `"a"@: b`},
    
    	{"FuncLit", `@func (){}`},
    	{"ParenExpr", `@(x)`},
    	{"SelectorExpr", `a@.b`},
    	{"IndexExpr", `a@[i]`},
    
    	{"SliceExpr", `a@[:]`},
    	{"SliceExpr", `a@[i:]`},
    	{"SliceExpr", `a@[:j]`},
    	{"SliceExpr", `a@[i:j]`},
    	{"SliceExpr", `a@[i:j:k]`},
    
    	{"AssertExpr", `x@.(T)`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    // that picks the correct abbrev.
    func pvacfgvisit(pvacfg *pvacfgnode, abbrevs map[string]int) ast.Stmt {
    	r := &ast.IfStmt{Cond: &ast.BinaryExpr{
    		Op: token.EQL,
    		X:  &ast.SelectorExpr{X: &ast.Ident{Name: "v"}, Sel: &ast.Ident{Name: "Tag"}},
    		Y:  &ast.Ident{Name: "DW_TAG_variable"}}}
    	r.Body = &ast.BlockStmt{List: []ast.Stmt{
    		pvacfgvisitnode(pvacfg, "DW_TAG_variable", []*pvacfgnode{}, abbrevs),
    	}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top