Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for typexpr (0.29 sec)

  1. src/cmd/compile/internal/types2/api.go

    func (tv TypeAndValue) IsVoid() bool {
    	return tv.mode == novalue
    }
    
    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/go/types/api.go

    func (tv TypeAndValue) IsVoid() bool {
    	return tv.mode == novalue
    }
    
    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    		if i > 0 {
    			s += "->"
    		}
    		s += p.Name()
    	}
    	return s
    }
    
    // objDecl type-checks the declaration of obj in its respective (file) environment.
    // For the meaning of def, see Checker.definedType, in typexpr.go.
    func (check *Checker) objDecl(obj Object, def *TypeName) {
    	if check.conf.Trace && obj.Type() == nil {
    		if check.indent == 0 {
    			fmt.Println() // empty line between top-level objects for readability
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    		switch x.mode {
    		default:
    			if kind == statement {
    				return
    			}
    			msg = "is not used"
    			code = UnusedExpr
    		case builtin:
    			msg = "must be called"
    			code = UncalledBuiltin
    		case typexpr:
    			msg = "is not an expression"
    			code = NotAnExpr
    		}
    		check.errorf(&x, code, "%s %s", &x, msg)
    
    	case *ast.SendStmt:
    		var ch, val operand
    		check.expr(nil, &ch, s.Chan)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    		switch x.mode {
    		default:
    			if kind == statement {
    				return
    			}
    			msg = "is not used"
    			code = UnusedExpr
    		case builtin:
    			msg = "must be called"
    			code = UncalledBuiltin
    		case typexpr:
    			msg = "is not an expression"
    			code = NotAnExpr
    		}
    		check.errorf(&x, code, "%s %s", &x, msg)
    
    	case *syntax.SendStmt:
    		var ch, val operand
    		check.expr(nil, &ch, s.Chan)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/go/types/decl.go

    		if i > 0 {
    			s += "->"
    		}
    		s += p.Name()
    	}
    	return s
    }
    
    // objDecl type-checks the declaration of obj in its respective (file) environment.
    // For the meaning of def, see Checker.definedType, in typexpr.go.
    func (check *Checker) objDecl(obj Object, def *TypeName) {
    	if check.conf._Trace && obj.Type() == nil {
    		if check.indent == 0 {
    			fmt.Println() // empty line between top-level objects for readability
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		return ast.NewIdent("nil")
    	case *types.Struct:
    		texpr := TypeExpr(f, pkg, typ) // typ because we want the name here.
    		if texpr == nil {
    			return nil
    		}
    		return &ast.CompositeLit{
    			Type: texpr,
    		}
    	}
    	return nil
    }
    
    // IsZeroValue checks whether the given expression is a 'zero value' (as determined by output of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. pilot/pkg/model/extensions.go

    }
    
    func workloadModeForListenerClass(class istionetworking.ListenerClass) typeapi.WorkloadMode {
    	switch class {
    	case istionetworking.ListenerClassGateway:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassSidecarInbound:
    		return typeapi.WorkloadMode_SERVER
    	case istionetworking.ListenerClassSidecarOutbound:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassUndefined:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/go/build/constraint/expr.go

    	isExpr()
    }
    
    // A TagExpr is an [Expr] for the single tag Tag.
    type TagExpr struct {
    	Tag string // for example, “linux” or “cgo”
    }
    
    func (x *TagExpr) isExpr() {}
    
    func (x *TagExpr) Eval(ok func(tag string) bool) bool {
    	return ok(x.Tag)
    }
    
    func (x *TagExpr) String() string {
    	return x.Tag
    }
    
    func tag(tag string) Expr { return &TagExpr{tag} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. src/database/sql/fakedb_test.go

    	case "bool":
    		return reflect.TypeFor[bool]()
    	case "nullbool":
    		return reflect.TypeFor[NullBool]()
    	case "int16":
    		return reflect.TypeFor[int16]()
    	case "nullint16":
    		return reflect.TypeFor[NullInt16]()
    	case "int32":
    		return reflect.TypeFor[int32]()
    	case "nullint32":
    		return reflect.TypeFor[NullInt32]()
    	case "string":
    		return reflect.TypeFor[string]()
    	case "nullstring":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top