Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 300 for importPos (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/internal/types/testdata/check/importdecl0/importdecl0a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package importdecl0
    
    import ()
    
    import (
    	// we can have multiple blank imports (was bug)
    	_ "math"
    	_ "net/rpc"
    	init /* ERROR "cannot import package as init" */ "fmt"
    	// reflect defines a type "flag" which shows up in the gc export data
    	"reflect"
    	. /* ERROR "imported and not used" */ "reflect"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/go/ast/import.go

    // SortImports sorts runs of consecutive import lines in import blocks in f.
    // It also removes duplicate imports when it is possible to do so without data loss.
    func SortImports(fset *token.FileSet, f *File) {
    	for _, d := range f.Decls {
    		d, ok := d.(*GenDecl)
    		if !ok || d.Tok != token.IMPORT {
    			// Not an import declaration, so we're done.
    			// Imports are always first.
    			break
    		}
    
    		if !d.Lparen.IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/ProcessInBuildScriptIntegrationTest.groovy

            given:
            def snippets = snippetsFactory.newSnippets(execOperationsFixture)
            testDirectory.file(file) << """
                ${snippets.imports}
                ${snippets.body}
            """
    
            when:
            configurationCacheFails(":help")
    
            then:
            failure.assertOutputContains("Hello")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/compilerFacility/FirIdeNormalAnalysisLibrarySourceModuleCompilerFacilityTestGenerated.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)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtImportOptimizer.kt

    }
    
    public typealias KtImportOptimizer = KaImportOptimizer
    
    public interface KaImportOptimizerMixIn : KaSessionMixIn {
    
        /**
         * Takes [file] and inspects its imports and their usages,
         * so they can be optimized based on the resulting [KaImportOptimizerResult].
         *
         * Does **not** change the file.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/ImplicitImports.kt

    package org.gradle.kotlin.dsl.support
    
    import org.gradle.configuration.ImportsReader
    import org.gradle.internal.service.scopes.Scope
    import org.gradle.internal.service.scopes.ServiceScope
    
    
    /**
     * Holds the list of imports implicitly added to every Kotlin build script.
     */
    @ServiceScope(Scope.Global::class)
    class ImplicitImports internal constructor(
        @Transient
        private val importsReader: ImportsReader
    ) {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top