- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 111 for imposes (0.25 sec)
-
src/go/internal/gcimporter/gcimporter_test.go
} // import go/internal/gcimporter which imports go/types partially fset := token.NewFileSet() imports := make(map[string]*types.Package) _, err := Import(fset, imports, "go/internal/gcimporter", ".", nil) if err != nil { t.Fatal(err) } // look for go/types package var goTypesPkg *types.Package for path, pkg := range imports { if path == "go/types" { goTypesPkg = pkg break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
src/go/build/deps_test.go
continue } if bytes.Contains(info.header, buildIgnore) { continue } for _, imp := range info.imports { path := imp.path if !haveImport[path] { haveImport[path] = true imports = append(imports, path) } } } slices.Sort(imports) return imports, nil } // depsPolicy returns a map m such that m[p][d] == true when p can import d.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
if p.Doc == "" && !isTest && !isXTest { if synopsis := tf.synopsis(); synopsis != "" { p.Doc = synopsis } } // Record Imports and information about cgo. isCgo := false imports := tf.imports() for _, imp := range imports { if imp.path == "C" { if isTest { badGoFile(name, fmt.Errorf("use of cgo in test %s not supported", name)) continue } isCgo = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/go/ast/filter.go
// - 2 imports exist but only one has a comment // - 2 imports exist and they both have (possibly // different) comments imports = append(imports, imp) seen[path] = true } } } } else { // Iterate over filenames for deterministic order. for _, filename := range filenames { f := pkg.Files[filename] imports = append(imports, f.Imports...) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/types/resolver.go
// into their respective scopes. It also performs imports and associates // methods with receiver base type names. func (check *Checker) collectObjects() { pkg := check.pkg // pkgImports is the set of packages already imported by any package file seen // so far. Used to avoid duplicate entries in pkg.imports. Allocate and populate // it (pkg.imports may not be empty if we are checking test files incrementally).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
cmd/import-boss/main.go
to string } adj := make(map[edge]bool) imports := make(map[string]struct{}) for from, tos := range in { for _, to := range tos { adj[edge{from, to}] = true imports[to] = struct{}{} } } // Warshal's algorithm for k := range in { for i := range in { if !adj[edge{i, k}] { continue } for j := range imports { if adj[edge{i, j}] { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtScopeProvider.kt
/** * Represents [KaScope] containing declarations from imports. */ public sealed class ImportingScope : NonLocalScope() /** * Represents [KaScope] containing declarations from explicit non-star imports. */ public class ExplicitSimpleImportingScope(override val indexInTower: Int) : ImportingScope() /**
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 15.4K bytes - Viewed (0) -
src/go/doc/example.go
} } // Use unresolved identifiers to determine the imports used by this // example. The heuristic assumes package names match base import // paths for imports w/o renames (should be good enough most of the time). var namedImports []ast.Spec var blankImports []ast.Spec // _ imports // To preserve the blank lines between groups of imports, find the // start position of each group, and assign that position to all
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/go/build/read.go
info.parseErr = scanner.Error{Pos: info.fset.Position(spec.Pos()), Msg: "invalid import path: " + path} info.imports = nil return nil } if path == "embed" { hasEmbed = true } doc := spec.Doc if doc == nil && len(d.Specs) == 1 { doc = d.Doc } info.imports = append(info.imports, fileImport{path, spec.Pos(), doc}) } } // Extract directives.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
// unified IR export data decoder. func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[string]*types.Package, input pkgbits.PkgDecoder) *types.Package { pr := pkgReader{ PkgDecoder: input, fake: fakeFileSet{ fset: fset, files: make(map[string]*fileInfo), }, ctxt: ctxt, imports: imports, posBases: make([]string, input.NumElems(pkgbits.RelocPosBase)),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0)