Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 105 for SelectorExpr (0.2 sec)

  1. src/cmd/compile/internal/ssagen/ssa.go

    		}
    	case ir.ODEREF:
    		n := n.(*ir.StarExpr)
    		return s.exprPtr(n.X, n.Bounded(), n.Pos())
    	case ir.ODOT:
    		n := n.(*ir.SelectorExpr)
    		p := s.addr(n.X)
    		return s.newValue1I(ssa.OpOffPtr, t, n.Offset(), p)
    	case ir.ODOTPTR:
    		n := n.(*ir.SelectorExpr)
    		p := s.exprPtr(n.X, n.Bounded(), n.Pos())
    		return s.newValue1I(ssa.OpOffPtr, t, n.Offset(), p)
    	case ir.OCONVNOP:
    		n := n.(*ir.ConvExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    	switch t := x.(type) {
    	case *ast.Ident:
    		return t.Name, false
    	case *ast.IndexExpr:
    		return baseTypeName(t.X)
    	case *ast.IndexListExpr:
    		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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. src/go/types/builtins.go

    		}
    		x.typ = Typ[Uintptr]
    
    	case _Offsetof:
    		// unsafe.Offsetof(x T) uintptr, where x must be a selector
    		// (no argument evaluated yet)
    		arg0 := argList[0]
    		selx, _ := ast.Unparen(arg0).(*ast.SelectorExpr)
    		if selx == nil {
    			check.errorf(arg0, BadOffsetofSyntax, invalidArg+"%s is not a selector expression", arg0)
    			check.use(arg0)
    			return
    		}
    
    		check.expr(nil, x, selx.X)
    		if x.mode == invalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    		// Resulting in an untyped constant (e.g., built-in complex).
    		// The respective calls take care of calling updateExprType
    		// for the arguments if necessary.
    
    	case *syntax.Name, *syntax.BasicLit, *syntax.SelectorExpr:
    		// An identifier denoting a constant, a constant literal,
    		// or a qualified identifier (imported untyped constant).
    		// No operands to take care of.
    
    	case *syntax.ParenExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/test.go

    	// but at least check that it's *M or *something.M.
    	// Same applies for B, F and T.
    	if name, ok := ptr.X.(*ast.Ident); ok && name.Name == arg {
    		return true
    	}
    	if sel, ok := ptr.X.(*ast.SelectorExpr); ok && sel.Sel.Name == arg {
    		return true
    	}
    	return false
    }
    
    // isTest tells whether name looks like a test (or benchmark, according to prefix).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins.go

    		}
    		x.typ = Typ[Uintptr]
    
    	case _Offsetof:
    		// unsafe.Offsetof(x T) uintptr, where x must be a selector
    		// (no argument evaluated yet)
    		arg0 := argList[0]
    		selx, _ := syntax.Unparen(arg0).(*syntax.SelectorExpr)
    		if selx == nil {
    			check.errorf(arg0, BadOffsetofSyntax, invalidArg+"%s is not a selector expression", arg0)
    			check.use(arg0)
    			return
    		}
    
    		check.expr(nil, x, selx.X)
    		if x.mode == invalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/switch.go

    // typeHashFieldOf returns an expression to select the type hash field
    // from an interface's descriptor word (whether a *runtime._type or
    // *runtime.itab pointer).
    func typeHashFieldOf(pos src.XPos, itab *ir.UnaryExpr) *ir.SelectorExpr {
    	if itab.Op() != ir.OITAB {
    		base.Fatalf("expected OITAB, got %v", itab.Op())
    	}
    	var hashField *types.Field
    	if itab.X.Type().IsEmptyInterface() {
    		// runtime._type's hash field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/call.go

    	"_Ctype_",
    	"_Cvar_", // actually a pointer to the var
    	"_Cfpvar_fp_",
    	"_Cfunc_",
    	"_Cmacro_", // function to evaluate the expanded expression
    }
    
    func (check *Checker) selector(x *operand, e *syntax.SelectorExpr, def *TypeName, wantType bool) {
    	// these must be declared before the "goto Error" statements
    	var (
    		obj      Object
    		index    []int
    		indirect bool
    	)
    
    	sel := e.Sel.Value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	}
    	args := call.Args
    	if len(args) <= firstArg {
    		// Skip calls without variadic args.
    		return
    	}
    	args = args[firstArg:]
    
    	if firstArg == 0 {
    		if sel, ok := call.Args[0].(*ast.SelectorExpr); ok {
    			if x, ok := sel.X.(*ast.Ident); ok {
    				if x.Name == "os" && strings.HasPrefix(sel.Sel.Name, "Std") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. src/go/types/call.go

    	"_Ctype_",
    	"_Cvar_", // actually a pointer to the var
    	"_Cfpvar_fp_",
    	"_Cfunc_",
    	"_Cmacro_", // function to evaluate the expanded expression
    }
    
    func (check *Checker) selector(x *operand, e *ast.SelectorExpr, def *TypeName, wantType bool) {
    	// these must be declared before the "goto Error" statements
    	var (
    		obj      Object
    		index    []int
    		indirect bool
    	)
    
    	sel := e.Sel.Name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top