Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for IgnoreFuncBodies (0.32 sec)

  1. src/go/types/self_test.go

    			path := filepath.Join("..", "..", p)
    			for _, ignoreFuncBodies := range []bool{false, true} {
    				name := "funcbodies"
    				if ignoreFuncBodies {
    					name = "nofuncbodies"
    				}
    				b.Run(name, func(b *testing.B) {
    					b.Run("info", func(b *testing.B) {
    						runbench(b, path, ignoreFuncBodies, true)
    					})
    					b.Run("noinfo", func(b *testing.B) {
    						runbench(b, path, ignoreFuncBodies, false)
    					})
    				})
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/self_test.go

    			for _, ignoreFuncBodies := range []bool{false, true} {
    				name := "funcbodies"
    				if ignoreFuncBodies {
    					name = "nofuncbodies"
    				}
    				b.Run(name, func(b *testing.B) {
    					b.Run("info", func(b *testing.B) {
    						runbench(b, path, ignoreFuncBodies, true)
    					})
    					b.Run("noinfo", func(b *testing.B) {
    						runbench(b, path, ignoreFuncBodies, false)
    					})
    				})
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api.go

    	// version checks. If the format is invalid, invoking the type checker will
    	// result in an error.
    	GoVersion string
    
    	// If IgnoreFuncBodies is set, function bodies are not
    	// type-checked.
    	IgnoreFuncBodies bool
    
    	// If FakeImportC is set, `import "C"` (for packages requiring Cgo)
    	// declares an empty "C" package and errors are omitted for qualified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. src/go/types/api.go

    	// version checks. If the format is invalid, invoking the type checker will
    	// result in an error.
    	GoVersion string
    
    	// If IgnoreFuncBodies is set, function bodies are not
    	// type-checked.
    	IgnoreFuncBodies bool
    
    	// If FakeImportC is set, `import "C"` (for packages requiring Cgo)
    	// declares an empty "C" package and errors are omitted for qualified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/go/internal/srcimporter/srcimporter.go

    	files, err := p.parseFiles(bp.Dir, filenames)
    	if err != nil {
    		return nil, err
    	}
    
    	// type-check package files
    	var firstHardErr error
    	conf := types.Config{
    		IgnoreFuncBodies: true,
    		// continue type-checking after the first error
    		Error: func(err error) {
    			if firstHardErr == nil && !err.(types.Error).Soft {
    				firstHardErr = err
    			}
    		},
    		Importer: p,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/resolver.go

    // unusedImports checks for unused imports.
    func (check *Checker) unusedImports() {
    	// If function bodies are not checked, packages' uses are likely missing - don't check.
    	if check.conf.IgnoreFuncBodies {
    		return
    	}
    
    	// spec: "It is illegal (...) to directly import a package without referring to
    	// any of its exported identifiers. To import a package solely for its side-effects
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. src/go/types/resolver.go

    // unusedImports checks for unused imports.
    func (check *Checker) unusedImports() {
    	// If function bodies are not checked, packages' uses are likely missing - don't check.
    	if check.conf.IgnoreFuncBodies {
    		return
    	}
    
    	// spec: "It is illegal (...) to directly import a package without referring to
    	// any of its exported identifiers. To import a package solely for its side-effects
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/decl.go

    		check.softErrorf(fdecl, BadDecl, "generic function is missing function body")
    	}
    
    	// function body must be type-checked after global declarations
    	// (functions implemented elsewhere have no body)
    	if !check.conf.IgnoreFuncBodies && fdecl.Body != nil {
    		check.later(func() {
    			check.funcBody(decl, obj.name, sig, fdecl.Body, nil)
    		}).describef(obj, "func %s", obj.name)
    	}
    }
    
    func (check *Checker) declStmt(list []syntax.Decl) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  9. src/go/types/stmt.go

    	"go/token"
    	"internal/buildcfg"
    	. "internal/types/errors"
    	"sort"
    )
    
    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf._Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    	// save/restore current environment and set up function environment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/stmt.go

    	"go/constant"
    	"internal/buildcfg"
    	. "internal/types/errors"
    	"sort"
    )
    
    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *syntax.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf.Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    	// save/restore current environment and set up function environment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top