Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 316 for importPos (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

          message = "Moved to extension function. Put the 'content' argument first to fix Java",
          replaceWith =
            ReplaceWith(
              expression = "content.toRequestBody(contentType)",
              imports = ["okhttp3.RequestBody.Companion.toRequestBody"],
            ),
          level = DeprecationLevel.WARNING,
        )
        fun create(
          contentType: MediaType?,
          content: String,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Jan 25 14:41:37 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcs/vcs.go

    		}
    		if len(imports) == 0 {
    			err = fmt.Errorf("fetching %s: no go-import meta tag found in %s", importPrefix, resp.URL)
    		}
    		return setCache(fetchResult{url: url, imports: imports, err: err})
    	})
    	res := resi.(fetchResult)
    	return res.url, res.imports, res.err
    }
    
    type fetchResult struct {
    	url     *urlpkg.URL
    	imports []metaImport
    	err     error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/context.kt

        }
    }
    
    
    interface TypeRefContext {
        fun resolveRef(dataTypeRef: DataTypeRef): DataType
    }
    
    
    interface AnalysisContextView : TypeRefContext {
        val schema: AnalysisSchema
        val imports: Map<String, FqName>
        val currentScopes: List<AnalysisScopeView>
        val assignments: List<AssignmentRecord>
    }
    
    
    class SchemaTypeRefContext(val schema: AnalysisSchema) : TypeRefContext {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/compilerFacility/FirIdeNormalAnalysisSourceModuleCompilerFacilityTestGenerated.java

        runTest("analysis/analysis-api/testData/components/compilerFacility/compilation/dependencyBetweenBinaryLibraries.kt");
      }
    
      @Test
      @TestMetadata("imports.kt")
      public void testImports() {
        runTest("analysis/analysis-api/testData/components/compilerFacility/compilation/imports.kt");
      }
    
      @Test
      @TestMetadata("internalUsage.kt")
      public void testInternalUsage() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 19:18:28 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modcmd/vendor.go

    		f, err := fsys.Open(filepath.Join(dir, info.Name()))
    		if err != nil {
    			base.Fatal(err)
    		}
    		defer f.Close()
    
    		content, err := imports.ReadImports(f, false, nil)
    		if err == nil && !imports.ShouldBuild(content, imports.AnyTags()) {
    			// The file is explicitly tagged "ignore", so it can't affect the build.
    			// Leave it out.
    			return false
    		}
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	var ret []types.Object
    	// Search through the imports to see if any of them define name.
    	// It's hard to tell in general which package is being tested, so
    	// for the purposes of the analysis, allow the object to appear
    	// in any of the imports. This guarantees there are no false positives
    	// because the example needs to use the object so it must be defined
    	// in the package or one if its imports. On the other hand, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/go/types/format.go

    		if len(check.pkgPathMap[pkg.name]) > 1 {
    			return strconv.Quote(pkg.path)
    		}
    		return pkg.name
    	}
    	return ""
    }
    
    // markImports recursively walks pkg and its imports, to record unique import
    // paths in pkgPathMap.
    func (check *Checker) markImports(pkg *Package) {
    	if check.seenPkgMap[pkg] {
    		return
    	}
    	check.seenPkgMap[pkg] = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top