Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for mainModules (1.1 sec)

  1. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/builder/KtModuleProviderBuilder.kt

    public class KtModuleProviderBuilder(
        public val kotlinCoreProjectEnvironment: KotlinCoreProjectEnvironment,
    ) {
        private val mainModules: MutableList<KtModule> = mutableListOf()
    
        public fun <M : KtModule> addModule(module: M): M {
            mainModules.add(module)
            return module
        }
    
        public lateinit var platform: TargetPlatform
    
        public fun build(): KtStaticProjectStructureProvider {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jan 05 16:04:14 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/search.go

    			continue
    		}
    
    		var (
    			root, modPrefix string
    			isLocal         bool
    		)
    		if MainModules.Contains(mod.Path) {
    			if MainModules.ModRoot(mod) == "" {
    				continue // If there is no main module, we can't search in it.
    			}
    			root = MainModules.ModRoot(mod)
    			modPrefix = MainModules.PathPrefix(mod)
    			isLocal = true
    		} else {
    			var err error
    			root, isLocal, err = fetch(ctx, mod)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/godebug.go

    // list additional directives from the package under test.
    func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string {
    	if p.Name != "main" {
    		return ""
    	}
    	goVersion := modload.MainModules.GoVersion()
    	if modload.RootMode == modload.NoRoot && p.Module != nil {
    		// This is go install pkg@version or go run pkg@version.
    		// Use the Go version from the package.
    		// If there isn't one, then assume Go 1.20,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/workcmd/sync.go

    	mms := modload.MainModules
    
    	opts := modload.PackageOpts{
    		Tags:                     imports.AnyTags(),
    		VendorModulesInGOROOTSrc: true,
    		ResolveMissingImports:    false,
    		LoadTests:                true,
    		AllowErrors:              true,
    		SilencePackageErrors:     true,
    		SilenceUnmatchedWarnings: true,
    	}
    	for _, m := range mms.Versions() {
    		opts.MainModule = m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/work_empty_panic_GOPATH.txt

    # Regression test for https://go.dev/issue/58767:
    # with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a
    # package named "main" panicked in modload.MainModules.GoVersion.
    
    env GO111MODULE=off
    cd example
    go list example/m
    
    -- example/go.work --
    go 1.21
    -- example/m/main.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 18:50:18 UTC 2023
    - 329 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_verify_work.txt

    # modules being checked for correct sums. Specifically this would happen when
    # the module name sorted after the virtual 'go' version module name because
    # it could not get chopped off when we removed the MainModules.Len() modules
    # at the beginning of the build list and we would remove the go module instead.
    
    go mod verify
    
    -- go.work --
    go 1.21
    
    use (
        ./a
        ./b
    )
    -- a/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 724 bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/mvs.go

    // with any exclusions or replacements applied internally.
    type mvsReqs struct {
    	roots []module.Version
    }
    
    func (r *mvsReqs) Required(mod module.Version) ([]module.Version, error) {
    	if mod.Version == "" && MainModules.Contains(mod.Path) {
    		// Use the build list as it existed when r was constructed, not the current
    		// global build list.
    		return r.roots, nil
    	}
    
    	if mod.Version == "none" {
    		return nil, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:01:38 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/psiTypeProvider/AbstractAnalysisApiKtTypeByPsiTypeProviderTest.kt

    private fun getTestDataContext(testServices: TestServices): TestDataContext {
        var psiDeclaration: PsiElement? = null
        var useSitePosition: PsiElement? = null
    
        testServices.ktTestModuleStructure.mainModules.forEach { ktTestModule ->
            val psiFiles = ktTestModule.files
            for (psiFile in psiFiles) {
                val targetOffset = testServices.expressionMarkerProvider.getCaretPositionOrNull(psiFile)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/klibSourceFileProvider/AbstractGetKlibSourceFileNameTest.kt

        override fun doTest(testServices: TestServices) {
            val mainModule = testServices.ktTestModuleStructure.mainModules
                .let { modules -> if (modules.size == 1) modules.first() else fail("Expected single main module. Found $modules") }
    
            val libraryModule = mainModule.ktModule as? KtLibraryModule
                ?: fail("Expected main module '${mainModule.ktModule}' to be '${KtLibraryModule::class.simpleName}'")
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/tests/org/jetbrains/kotlin/analysis/api/fe10/test/configurator/AnalysisApiFe10TestServiceRegistrar.kt

                registerService(ModuleVisibilityManager::class.java, CliModuleVisibilityManagerImpl(enabled = true))
            }
    
            testServices.ktTestModuleStructure.mainModules.forEach { ktTestModule ->
                val sourceModule = ktTestModule.ktModule as? KtSourceModule ?: return@forEach
                AnalysisHandlerExtension.registerExtension(project, KaFe10AnalysisHandlerExtension(sourceModule))
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 15:49:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top