Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 73 for pkgName (0.18 sec)

  1. src/go/types/resolver_test.go

    					obj := uses[x]
    					if obj == nil {
    						t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name)
    						return false
    					}
    					if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil {
    						t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name)
    						return false
    					}
    					return false
    				}
    				return true
    			}
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes.go

    func (*node) aNode()           {}
    
    // ----------------------------------------------------------------------------
    // Files
    
    // package PkgName; DeclList[0], DeclList[1], ...
    type File struct {
    	Pragma    Pragma
    	PkgName   *Name
    	DeclList  []Decl
    	EOF       Pos
    	GoVersion string
    	node
    }
    
    // ----------------------------------------------------------------------------
    // Declarations
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. src/internal/coverage/decodemeta/decode.go

    	return nil
    }
    
    func (d *CoverageMetaDataDecoder) PackagePath() string {
    	return d.strtab.Get(d.hdr.PkgPath)
    }
    
    func (d *CoverageMetaDataDecoder) PackageName() string {
    	return d.strtab.Get(d.hdr.PkgName)
    }
    
    func (d *CoverageMetaDataDecoder) ModulePath() string {
    	return d.strtab.Get(d.hdr.ModulePath)
    }
    
    func (d *CoverageMetaDataDecoder) NumFuncs() uint32 {
    	return d.hdr.NumFuncs
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/index_format.txt

    		synopsis - string offset
    		name - string offset
    		pkgName - string offset
    		ignoreFile - int32 bool // report the file in Ignored(Go|Other)Files because there was an error reading it or parsing its build constraints.
    		binaryOnly uint32 bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 13 00:22:50 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcshared/cshared_test.go

    		t.Error(out)
    	}
    }
    
    func testSignalHandlers(t *testing.T, pkgname, cfile, cmd string) {
    	if GOOS == "windows" {
    		t.Skipf("Skipping on %s", GOOS)
    	}
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	libname := pkgname + ".a"
    	run(t,
    		nil,
    		"go", "build",
    		"-buildmode=c-shared",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  6. api/go1.22.txt

    pkg go/types, method (*Alias) String() string #63223
    pkg go/types, method (*Alias) Underlying() Type #63223
    pkg go/types, method (*Info) PkgNameOf(*ast.ImportSpec) *PkgName #62037
    pkg go/types, method (Checker) PkgNameOf(*ast.ImportSpec) *PkgName #62037
    pkg go/types, type Alias struct #63223
    pkg go/types, type Info struct, FileVersions map[*ast.File]string #62605
    pkg go/version, func Compare(string, string) int #62039
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/named_test.go

    }
    
    func (*Tree[R]) N(r R) R { return r }
    
    type Node[T any] struct {
    	*Tree[T]
    }
    
    func (Node[Q]) M(Q) {}
    
    type Inst = *Tree[int]
    `
    
    	f := mustParse(src)
    	pkg := NewPackage("p", f.PkgName.Value)
    	if err := NewChecker(nil, pkg, nil).Files([]*syntax.File{f}); err != nil {
    		t.Fatal(err)
    	}
    
    	firstFieldType := func(n *Named) *Named {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/go/build/deps_test.go

    	}
    
    	ctxt := Default
    	all, err := listStdPkgs(ctxt.GOROOT)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, pkgname := range all {
    		if strings.ToLower(pkgname) != pkgname {
    			t.Errorf("package %q should not use upper-case path", pkgname)
    		}
    	}
    }
    
    // TestFindImports tests that findImports works.  See #43249.
    func TestFindImports(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/issues_test.go

    func _() {
    	A(B, nil // syntax error: missing ',' before newline in argument list
    }
    `
    	f, err := syntax.Parse(syntax.NewFileBase(pkgName(src)), strings.NewReader(src), func(error) {}, nil, 0)
    	if err == nil {
    		t.Fatal("expected syntax error")
    	}
    
    	var conf Config
    	conf.Check(f.PkgName.Value, []*syntax.File{f}, nil) // must not panic
    }
    
    func TestIssue61938(t *testing.T) {
    	const src = `
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/resolver_test.go

    				if x, ok := s.X.(*syntax.Name); ok {
    					obj := uses[x]
    					if obj == nil {
    						t.Errorf("%s: unresolved qualified identifier %s", x.Pos(), x.Value)
    						return false
    					}
    					if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil {
    						t.Errorf("%s: unresolved selector %s", s.Sel.Pos(), s.Sel.Value)
    						return false
    					}
    					return false
    				}
    				return true
    			}
    			return true
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top