Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 316 for importPos (0.33 sec)

  1. cmd/preferredimports/preferredimports.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // verify that all the imports have our preferred alias(es).
    package main
    
    import (
    	"bytes"
    	"encoding/json"
    	"flag"
    	"fmt"
    	"go/ast"
    	"go/build"
    	"go/format"
    	"go/parser"
    	"go/token"
    	"log"
    	"os"
    	"path/filepath"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/compile/internal/types2/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: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/go/testdata/script/mod_tidy_compat_ambiguous.txt

    # does not privilege roots above other dependencies).
    #
    # However, the overall build list is identical for both versions.
    
    cp go.mod go.mod.orig
    
    ! go mod tidy
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/ProcessInPluginIntegrationTest.groovy

                }
    
                ${mavenCentralRepository(GradleDsl.KOTLIN)}
            """
            def conventionPluginFile = testDirectory.file(file)
            conventionPluginFile << """
                ${snippets.imports}
    
                ${snippets.body}
            """
    
            buildFile("""
                plugins {
                    id("test-convention-plugin")
                }
            """)
    
            executer.noDeprecationChecks()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/ArgumentsConverterGenerator.kt

            val imports = buildList {
                add("org.jetbrains.kotlin.analysis.api.fir.KaSymbolByFirBuilder")
                add("org.jetbrains.kotlin.analysis.api.fir.KaFirSession")
                convertersMap.values.flatMapTo(this) { it.importsToAdd }
                convertersMap.keys.mapNotNullTo(this) { it.qualifiedName }
            }
            printImports(imports)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_tidy_compat_incompatible.txt

    # 'go mod tidy' should by default diagnose the difference in dependencies as an
    # error, with useful suggestions about how to resolve it.
    
    cp go.mod go.mod.orig
    ! go mod tidy
    stderr '^go: example\.com/m imports\n\texample\.net/lazy imports\n\texample\.com/retract/incompatible loaded from example\.com/retract/incompatible@v1\.0\.0,\n\tbut go 1\.16 would select v2\.0\.0\+incompatible\n\n'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/go/types/api_test.go

    		if pkg == nil {
    			t.Errorf("for %s importer, type-checking failed to return a package", compiler)
    			continue
    		}
    
    		imports := pkg.Imports()
    		if len(imports) != 1 {
    			t.Errorf("for %s importer, got %d imports, want 1", compiler, len(imports))
    			continue
    		}
    		imp := imports[0]
    		if imp.Name() != "foo" {
    			t.Errorf(`for %s importer, got %q, want "foo"`, compiler, imp.Name())
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/list/list.go

            // Dependency information
            Imports      []string          // import paths used by this package
            ImportMap    map[string]string // map from source import to ImportPath (identity entries omitted)
            Deps         []string          // all (recursively) imported dependencies
            TestImports  []string          // imports from TestGoFiles
            XTestImports []string          // imports from XTestGoFiles
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
Back to top