Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for usage (0.5 sec)

  1. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/duplicatedCallableWithImplicitType.kt

    // MODULE: lib1
    // FILE: dependency.kt
    package usage
    
    fun implicitType() = 1
    
    // MODULE: dep(lib1)
    // FILE: annotation.kt
    package usage
    
    fun implicitTypeFromAnotherModule() = implicitType()
    
    // MODULE: lib2
    // FILE: dependency.kt
    package usage
    
    fun implicitType() = "str"
    
    // MODULE: main(lib2, dep)
    // FILE: usage.kt
    package usage
    
    fun usage(): Int = run {
        implicitType()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Mar 18 21:14:36 UTC 2024
    - 414 bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/errors.go

    }
    
    func (e *UsageError) Error() string {
    	usage := e.Command.Usage()
    	suffix := ""
    	if usage.Async {
    		suffix = " [&]"
    	}
    	return fmt.Sprintf("usage: %s %s%s", e.Name, usage.Args, suffix)
    }
    
    // ErrUsage may be returned by a Command to indicate that it was called with
    // invalid arguments; its Usage method may be called to obtain details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/script/conds.go

    func Condition(summary string, eval func(*State) (bool, error)) Cond {
    	return &funcCond{eval: eval, usage: CondUsage{Summary: summary}}
    }
    
    type funcCond struct {
    	eval  func(*State) (bool, error)
    	usage CondUsage
    }
    
    func (c *funcCond) Usage() *CondUsage { return &c.usage }
    
    func (c *funcCond) Eval(s *State, suffix string) (bool, error) {
    	if suffix != "" {
    		return false, ErrUsage
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 5K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/help.txt

    stdout 'bug.*start a bug report'
    
    # go help bug shows usage for bug
    go help bug
    stdout 'usage: go bug'
    stdout 'bug report'
    
    # go bug help is an error (bug takes no arguments)
    ! go bug help
    stderr 'bug takes no arguments'
    
    # go help mod shows mod subcommands
    go help mod
    stdout 'go mod <command>'
    stdout tidy
    
    # go help mod tidy explains tidy
    go help mod tidy
    stdout 'usage: go mod tidy'
    
    # go mod help tidy does too
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/savedir.go

    	os.Exit(2)
    }
    
    const goCmd = "vgo"
    
    func main() {
    	flag.Usage = usage
    	flag.Parse()
    	if flag.NArg() != 1 {
    		usage()
    	}
    
    	log.SetPrefix("savedir: ")
    	log.SetFlags(0)
    
    	dir := flag.Arg(0)
    
    	a := new(txtar.Archive)
    	dir = filepath.Clean(dir)
    	filepath.WalkDir(dir, func(path string, info fs.DirEntry, err error) error {
    		if path == dir {
    			return nil
    		}
    		name := info.Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:41:54 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/PACTest.java

         */
        private static void verifyAESMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
            verifyAESHMAC(usage, expect, key, Hex.decode(data));
        }
    
    
        private static void verifyArcfourHMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
            verifyArcfourHMAC(usage, expect, key, Hex.decode(data));
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  7. build-logic/jvm/src/main/kotlin/gradlebuild/ConfigurationExtensions.kt

    import org.gradle.api.attributes.LibraryElements
    import org.gradle.api.attributes.Usage
    import org.gradle.api.attributes.java.TargetJvmEnvironment
    import org.gradle.api.model.ObjectFactory
    import org.gradle.kotlin.dsl.named
    
    
    fun ConsumableConfiguration.configureAsRuntimeElements(objects: ObjectFactory) {
        attributes {
            attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/script/engine.go

    	//
    	// If the condition's usage reports that it is a prefix,
    	// the condition must be used with a suffix.
    	// Otherwise, the passed-in suffix argument is always the empty string.
    	Eval(s *State, suffix string) (bool, error)
    
    	// Usage returns the usage for the condition, which the caller must not modify.
    	Usage() *CondUsage
    }
    
    // A CondUsage describes the usage of a Cond, independent of its name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  9. src/cmd/buildid/buildid.go

    	"strings"
    
    	"cmd/internal/buildid"
    	"cmd/internal/telemetry"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool buildid [-w] file\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    var wflag = flag.Bool("w", false, "write build ID")
    
    func main() {
    	log.SetPrefix("buildid: ")
    	log.SetFlags(0)
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("buildid/invocations")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/annotationWithEnumFromDuplicatedLibrary.kt

    // MODULE: lib2
    // FILE: anno.kt
    package kotlin.annotation
    
    public enum class AnnotationTarget {
        CLASS;
    }
    
    // MODULE: main(lib2, dep)
    // FILE: usage.kt
    package usage
    
    import my.pack.Deprecated
    
    @Deprecated
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Mar 18 21:14:36 UTC 2024
    - 521 bytes
    - Viewed (0)
Back to top