Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for IsType (0.1 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationsFixture.groovy

            return getTree().first(type, predicate)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
        public <T extends BuildOperationType<?, ?>> boolean isType(BuildOperationRecord record, Class<T> type) {
            return getTree().isType(record, type)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    	// Report node status.
    	kubelet.updateRuntimeUp()
    	assert.NoError(t, kubelet.updateNodeStatus(ctx))
    
    	actions := kubeClient.Actions()
    	assert.Len(t, actions, 2)
    	assert.IsType(t, core.GetActionImpl{}, actions[0])
    	assert.IsType(t, core.PatchActionImpl{}, actions[1])
    	patchAction := actions[1].(core.PatchActionImpl)
    
    	updatedNode, err := applyNodeStatusPatch(existingNode, patchAction.GetPatch())
    	require.NoError(t, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/type.go

    type TypeAndValue struct {
    	Type  Type
    	Value constant.Value
    	exprFlags
    }
    
    type exprFlags uint16
    
    func (f exprFlags) IsVoid() bool          { return f&1 != 0 }
    func (f exprFlags) IsType() bool          { return f&2 != 0 }
    func (f exprFlags) IsBuiltin() bool       { return f&4 != 0 } // a language builtin that resembles a function call, e.g., "make, append, new"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompilerDaemonReuseIntegrationTest.groovy

            def taskOperations =
                compilerOperations.collectEntries {
                    def op = buildOperations.parentsOf(it).reverse().find {
                        parent -> buildOperations.isType(parent, ExecuteTaskBuildOperationType)
                    }
                    [op.displayName, it]
                }
    
            def tasks = ['Task :compileJava', 'Task :compileMain2Java']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    func HasSideEffects(info *types.Info, e ast.Expr) bool {
    	safe := true
    	ast.Inspect(e, func(node ast.Node) bool {
    		switch n := node.(type) {
    		case *ast.CallExpr:
    			typVal := info.Types[n.Fun]
    			switch {
    			case typVal.IsType():
    				// Type conversion, which is safe.
    			case typVal.IsBuiltin():
    				// Builtin func, conservatively assumed to not
    				// be safe for now.
    				safe = false
    				return false
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationTreeFixture.groovy

            }
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
        public <T extends BuildOperationType<?, ?>> boolean isType(BuildOperationRecord record, Class<T> type) {
            assert record.detailsType
            def detailsType = BuildOperationTypes.detailsType(type)
            detailsType.isAssignableFrom(record.detailsType)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    		// importMap(s.pkg.Imports()).
    		// TODO(adonovan): opt: implement "shallow" facts.
    		if k.pkg != s.pkg {
    			if k.obj == nil {
    				continue // imported package fact
    			}
    			if _, isType := k.obj.(*types.TypeName); !isType &&
    				k.obj.Parent() == k.obj.Pkg().Scope() {
    				continue // imported fact about package-level non-type object
    			}
    		}
    
    		var object objectpath.Path
    		if k.obj != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api.go

    // IsVoid reports whether the corresponding expression
    // is a function call without results.
    func (tv TypeAndValue) IsVoid() bool {
    	return tv.mode == novalue
    }
    
    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/go/types/api.go

    // IsVoid reports whether the corresponding expression
    // is a function call without results.
    func (tv TypeAndValue) IsVoid() bool {
    	return tv.mode == novalue
    }
    
    // IsType reports whether the corresponding expression specifies a type.
    func (tv TypeAndValue) IsType() bool {
    	return tv.mode == typexpr
    }
    
    // IsBuiltin reports whether the corresponding expression denotes
    // a (possibly parenthesized) built-in function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskCreationBuildOperationIntegrationTest.groovy

            realize.children.size() == 1
            def configure = realize.children[0]
            configure.children.size() == 1
            buildOperations.isType(configure.children[0], RealizeTaskBuildOperationType)
            withPath(":", ":bar").isSatisfiedBy(configure.children[0])
        }
    
        def "emits registration, realization build ops when tasks later realized"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top