Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FileVersion (0.26 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    		(*ast.File)(nil),
    		(*ast.Ident)(nil),
    	}
    	var fileVersion string // "" => no check
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		switch n := n.(type) {
    		case *ast.File:
    			if isGenerated(n) {
    				// Suppress diagnostics in generated files (such as cgo).
    				fileVersion = ""
    			} else {
    				fileVersion = versions.Lang(versions.FileVersion(pass.TypesInfo, n))
    				// (may be "" if unknown)
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/version.go

    func (check *Checker) allowVersion(at poser, v goVersion) bool {
    	fileVersion := check.conf.GoVersion
    	if pos := at.Pos(); pos.IsKnown() {
    		fileVersion = check.versions[pos.FileBase()]
    	}
    
    	// We need asGoVersion (which calls version.Lang) below
    	// because fileVersion may be the (unaltered) Config.GoVersion
    	// string which may contain dot-release information.
    	version := asGoVersion(fileVersion)
    
    	return !version.isValid() || version.cmp(v) >= 0
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/versions/types_go122.go

    package versions
    
    import (
    	"go/ast"
    	"go/types"
    )
    
    // FileVersion returns a file's Go version.
    // The reported version is an unknown Future version if a
    // version cannot be determined.
    func FileVersion(info *types.Info, file *ast.File) string {
    	// In tools built with Go >= 1.22, the Go version of a file
    	// follow a cascades of sources:
    	// 1) types.Info.FileVersion, which follows the cascade:
    	//   1.a) file version (ast.File.GoVersion),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top