Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for fnest (0.26 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    		p.advance(_Lbrace, _Semi)
    	}
    
    	if p.tok == _Lbrace {
    		f.Body = p.funcBody()
    	}
    
    	return f
    }
    
    func (p *parser) funcBody() *BlockStmt {
    	p.fnest++
    	errcnt := p.errcnt
    	body := p.blockStmt("")
    	p.fnest--
    
    	// Don't check branches if there were syntax errors in the function
    	// as it may lead to spurious errors (e.g., see test/switch2.go) or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/validtype.go

    			}
    		}
    
    		// No cycle was found. Check the RHS of t.
    		// Every type added to nest is also added to path; thus every type that is in nest
    		// must also be in path (invariant). But not every type in path is in nest, since
    		// nest may be pruned (see below, *TypeParam case).
    		if !check.validType0(pos, t.Origin().fromRHS, append(nest, t), append(path, t)) {
    			return false
    		}
    
    		// see TODO above
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/go/types/validtype.go

    			}
    		}
    
    		// No cycle was found. Check the RHS of t.
    		// Every type added to nest is also added to path; thus every type that is in nest
    		// must also be in path (invariant). But not every type in path is in nest, since
    		// nest may be pruned (see below, *TypeParam case).
    		if !check.validType0(pos, t.Origin().fromRHS, append(nest, t), append(path, t)) {
    			return false
    		}
    
    		// see TODO above
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/vendor_complex.txt

    [!cross] [exec:gccgo] go build -compiler=gccgo -o complex.exe complex
    
    -- complex/main.go --
    package main
    
    import (
    	_ "complex/nest/sub/test12"
    	_ "complex/nest/sub/test23"
    	"complex/w"
    	"v"
    )
    
    func main() {
    	println(v.Hello + " " + w.World)
    }
    
    -- complex/nest/sub/test12/p.go --
    package test12
    
    // Check that vendor/v1 is used but vendor/v2 is NOT used (sub/vendor/v2 wins).
    
    import (
    	"v1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 14:52:30 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_get_patterns.txt

    cp go.mod.orig go.mod
    go mod edit -require example.com/nest@v1.0.0
    go get example.com/nest/sub/y...
    grep 'example.com/nest/sub v1.0.0' go.mod
    grep 'example.com/nest v1.0.0' go.mod
    
    # However, if the pattern matches the module path itself, the module
    # should be upgraded even if it contains no matching packages.
    go get example.com/n...t
    grep 'example.com/nest v1.1.0' go.mod
    grep 'example.com/nest/sub v1.0.0' go.mod
    
    -- go.mod.orig --
    module m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/JULRedirectorTest.groovy

                    'handlers = java.util.logging.ConsoleHandler' + EOL +
                    '.level = FINEST' + EOL +
                    'java.util.logging.ConsoleHandler.formatter = ' + DummyFormatter.class.name + EOL +
                    'java.util.logging.ConsoleHandler.level = FINEST' + EOL +
                    'hello.level = INFO' + EOL +
                    'hello.world.level = FINER' + EOL))
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/JavaUtilLoggingSystemIntegrationTest.groovy

                        assert logger.isLoggable(Level.CONFIG)
                        assert logger.isLoggable(Level.FINE)
                        assert !logger.isLoggable(Level.FINER)
                        assert !logger.isLoggable(Level.FINEST)
                    }
                }
            """
    
            when:
            executer.withArgument("--debug")
    
            then:
            succeeds('isLoggable')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. test/turing.go

    const prog = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.!"
    
    func scan(dir int) {
    	for nest := dir; dir*nest > 0; pc += dir {
    		switch prog[pc+dir] {
    		case ']':
    			nest--
    		case '[':
    			nest++
    		}
    	}
    }
    
    func main() {
    	r := ""
    	for {
    		switch prog[pc] {
    		case '>':
    			p++
    		case '<':
    			p--
    		case '+':
    			a[p]++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:48:19 UTC 2012
    - 893 bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue48018.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type Box[A any] struct {
    	value A
    }
    
    func Nest[A /* ERROR "instantiation cycle" */ any](b Box[A], n int) interface{} {
    	if n == 0 {
    		return b
    	}
    	return Nest(Box[Box[A]]{b}, n-1)
    }
    
    func main() {
    	Nest(Box[int]{0}, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 396 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/example.com_nest_v1.0.0.txt

    Written by hand.
    Test case for nested modules without an explicit relationship.
    This is the top-level module.
    
    -- .mod --
    module example.com/nest
    -- .info --
    {"Version": "v1.0.0"}
    -- go.mod --
    module example.com/nest
    -- sub/x/x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 19:29:47 UTC 2019
    - 244 bytes
    - Viewed (0)
Back to top