Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 300 for importPos (0.2 sec)

  1. src/cmd/compile/internal/types2/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: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_tidy_compat_added.txt

    
    # For this module, Go 1.17 produces an error for one module, and Go 1.16
    # produces a different error for a different module.
    
    cp go.mod go.mod.orig
    
    ! go mod tidy
    
    stderr '^go: example\.com/m imports\n\texample\.net/added: module example\.net/added@latest found \(v0\.3\.0, replaced by \./a1\), but does not contain package example\.net/added$'
    
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. cmd/import-boss/README.md

    packages" which are more sophisticated than Go's `internal` convention.
    
    If inverse rules are found, then all known imports of the package are checked
    against each such rule, in the same fashion as regular rules.  Note that this
    can only handle known imports, which is defined as any package which is also
    being considered by this `import-boss` run.  For most repositories, `./...` will
    suffice.
    
    Example:
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:36 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/DynamicGroovyPluginMixin.groovy

     */
    trait DynamicGroovyPluginMixin {
        void withPluginCode(String imports, String codeUnderTest, boolean enableIndy) {
            file("buildSrc/src/main/groovy/SomePlugin.groovy") << """
                import ${Plugin.name}
                import ${Project.name}
    
                $imports
    
                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/references/FirIdeNormalAnalysisScriptSourceModuleReferenceImportAliasTestGenerated.java

    /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
    @SuppressWarnings("all")
    @TestMetadata("analysis/analysis-api/testData/imports/importAliases")
    @TestDataPath("$PROJECT_ROOT")
    public class FirIdeNormalAnalysisScriptSourceModuleReferenceImportAliasTestGenerated extends AbstractReferenceImportAliasTest {
      @NotNull
      @Override
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Feb 27 20:30:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_tidy_compat_implicit.txt

    # 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 tested by\n\texample\.net/lazy.test 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top