Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for ifelse (0.26 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    			b.stmt(s.Init)
    		}
    		then := b.newBlock(KindIfThen, s)
    		done := b.newBlock(KindIfDone, s)
    		_else := done
    		if s.Else != nil {
    			_else = b.newBlock(KindIfElse, s)
    		}
    		b.add(s.Cond)
    		b.ifelse(then, _else)
    		b.current = then
    		b.stmt(s.Body)
    		b.jump(done)
    
    		if s.Else != nil {
    			b.current = _else
    			b.stmt(s.Else)
    			b.jump(done)
    		}
    
    		b.current = done
    
    	case *ast.SwitchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/RestrictiveCodeVisitor.java

            restrict(loop);
        }
    
        @Override
        public void visitDoWhileLoop(DoWhileStatement loop) {
            restrict(loop);
        }
    
        @Override
        public void visitIfElse(IfStatement ifElse) {
            restrict(ifElse);
        }
    
        @Override
        public void visitExpressionStatement(ExpressionStatement statement) {
            restrict(statement);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    //
    // For example, this source code:
    //
    //	if x := f(); x != nil {
    //		T()
    //	} else {
    //		F()
    //	}
    //
    // produces this CFG:
    //
    //	1:  x := f()		Body
    //	    x != nil
    //	    succs: 2, 3
    //	2:  T()			IfThen
    //	    succs: 4
    //	3:  F()			IfElse
    //	    succs: 4
    //	4:			IfDone
    //
    // The CFG does contain Return statements; even implicit returns are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/go/parser/parser_test.go

    	{name: "if", format: "package main; func main() { «if true { «» }»}", parseMultiplier: 2, scope: true, scopeMultiplier: 2}, // Parser nodes: IfStmt, BlockStmt. Scopes: IfStmt, BlockStmt
    	{name: "ifelse", format: "package main; func main() { «if true {} else » {} }", scope: true},
    	{name: "switch", format: "package main; func main() { «switch { default: «» }»}", scope: true, scopeMultiplier: 2},               // Scopes: TypeSwitchStmt, CaseClause
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. test/syntax/else.go

    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	if true {
    	} else ;  // ERROR "else must be followed by if or statement block|expected .if. or .{."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 306 bytes
    - Viewed (0)
  6. releasenotes/notes/endpoints-false-negative.yaml

    dwq <******@****.***> 1702923949 +0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 18:25:49 UTC 2023
    - 176 bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

          assertThat(expected.message)
            .isEqualTo("At least one cipher suite is required")
        }
      }
    
      @Test
      fun cleartextBuilder() {
        val cleartextSpec = ConnectionSpec.Builder(false).build()
        assertThat(cleartextSpec.isTls).isFalse()
      }
    
      @Test
      fun tlsBuilder_explicitCiphers() {
        val tlsSpec =
          ConnectionSpec.Builder(true)
            .cipherSuites(CipherSuite.TLS_RSA_WITH_RC4_128_MD5)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/renderer/ConsoleConfigurationReportRenderer.java

        private void printHeader(Runnable action) {
            output.style(StyledTextOutput.Style.Header);
            indent(false);
            output.println("--------------------------------------------------");
            indent(false);
            action.run();
            output.style(StyledTextOutput.Style.Header);
            indent(false);
            output.println("--------------------------------------------------");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 16:17:12 UTC 2022
    - 18.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

        def "zip orElse chain used as task input"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
            buildFile '''
                def userProvider = providers.gradleProperty("ci").map { "" }.orElse(providers.systemProperty("user"))
                def versionMajorProvider = providers.gradleProperty("versionMajor").orElse("1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Providers.java

                return this;
            }
    
            @Override
            public Provider<T> orElse(T value) {
                return Providers.of(value);
            }
    
            @Override
            public Provider<T> orElse(Provider<? extends T> provider) {
                return Cast.uncheckedCast(provider);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top