Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CheckExpr (0.12 sec)

  1. src/go/types/eval.go

    	if err != nil {
    		return TypeAndValue{}, err
    	}
    
    	info := &Info{
    		Types: make(map[ast.Expr]TypeAndValue),
    	}
    	err = CheckExpr(fset, pkg, pos, node, info)
    	return info.Types[node], err
    }
    
    // CheckExpr type checks the expression expr as if it had appeared at position
    // pos of package pkg. [Type] information about the expression is recorded in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/go/types/eval_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	checkExpr := func(pos token.Pos, str string) (Object, error) {
    		expr, err := parser.ParseExprFrom(fset, "eval", str, 0)
    		if err != nil {
    			return nil, err
    		}
    
    		info := &Info{
    			Uses:       make(map[*ast.Ident]Object),
    			Selections: make(map[*ast.SelectorExpr]*Selection),
    		}
    		if err := CheckExpr(fset, pkg, pos, expr, info); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/go/types/version.go

    // If there are no files, the result is nil.
    // The position must be valid.
    func (check *Checker) fileFor(pos token.Pos) *ast.File {
    	assert(pos.IsValid())
    	// Eval and CheckExpr tests may not have any source files.
    	if len(check.files) == 0 {
    		return nil
    	}
    	for _, file := range check.files {
    		if file.FileStart <= pos && pos < file.FileEnd {
    			return file
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/go/printer/testdata/parser.go

    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expect(token.RBRACE)
    	return &ast.CompositeLit{typ, lbrace, elts, rbrace}
    }
    
    // checkExpr checks that x is an expression (and not a type).
    func (p *parser) checkExpr(x ast.Expr) ast.Expr {
    	switch t := ast.Unparen(x).(type) {
    	case *ast.BadExpr:
    	case *ast.Ident:
    	case *ast.BasicLit:
    	case *ast.FuncLit:
    	case *ast.CompositeLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Basic", Type, 5},
    		{"BasicInfo", Type, 5},
    		{"BasicKind", Type, 5},
    		{"Bool", Const, 5},
    		{"Builtin", Type, 5},
    		{"Byte", Const, 5},
    		{"Chan", Type, 5},
    		{"ChanDir", Type, 5},
    		{"CheckExpr", Func, 13},
    		{"Checker", Type, 5},
    		{"Checker.Info", Field, 5},
    		{"Comparable", Func, 5},
    		{"Complex128", Const, 5},
    		{"Complex64", Const, 5},
    		{"Config", Type, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. api/go1.13.txt

    pkg go/constant, func Val(Value) interface{}
    pkg go/token, func IsExported(string) bool
    pkg go/token, func IsIdentifier(string) bool
    pkg go/token, func IsKeyword(string) bool
    pkg go/types, func CheckExpr(*token.FileSet, *Package, token.Pos, ast.Expr, *Info) error
    pkg log, func Writer() io.Writer
    pkg log/syslog (netbsd-arm64-cgo), const LOG_ALERT = 1
    pkg log/syslog (netbsd-arm64-cgo), const LOG_ALERT Priority
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top