Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 313 for walkIf (0.16 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/naming/from_stack.go

    limitations under the License.
    */
    
    package naming
    
    import (
    	"fmt"
    	"regexp"
    	goruntime "runtime"
    	"runtime/debug"
    	"strconv"
    	"strings"
    )
    
    // GetNameFromCallsite walks back through the call stack until we find a caller from outside of the ignoredPackages
    // it returns back a shortpath/filename:line to aid in identification of this reflector when it starts logging
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 01:31:42 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/gofmt/simplify.go

    					if keyType != nil {
    						s.simplifyLiteral(ktyp, keyType, t.Key, &t.Key)
    					}
    					x = t.Value
    					px = &t.Value
    				}
    				s.simplifyLiteral(typ, eltType, x, px)
    			}
    			// node was simplified - stop walk (there are no subnodes to simplify)
    			return nil
    		}
    
    	case *ast.SliceExpr:
    		// a slice expression of the form: s[a:len(s)]
    		// can be simplified to: s[a:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:06:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

        return true;
      };
    
      func_op.walk([&should_fold_op_func](TF::IdentityOp op) {
        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        if (should_fold_op_func(op.getOperand(), op_device)) {
          op.replaceAllUsesWith(op.getOperand());
          op.erase();
        }
        return WalkResult::advance();
      });
    
      func_op.walk([&should_fold_op_func](TF::IdentityNOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. test/fixedbugs/issue29870b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Make sure we're compiling "_" functions at least enough
    // to get to an error which is generated during walk.
    
    package main
    
    func _() {
    	x := 7 // ERROR "declared and not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 357 bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/search.go

    		// Add a trailing separator to force that to happen.
    		root = str.WithFilePathSeparator(filepath.Clean(root))
    		err := fsys.Walk(root, func(pkgDir string, fi fs.FileInfo, err error) error {
    			if err != nil {
    				m.AddError(err)
    				return nil
    			}
    
    			want := true
    			elem := ""
    
    			// Don't use GOROOT/src but do walk down into it.
    			if pkgDir == root {
    				if importPathRoot == "" {
    					return nil
    				}
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    // s1 = {a1, a2}
    // s2 = {a2, a3}
    // s1.Intersection(s2) = {a2}
    func (s1 Set[T]) Intersection(s2 Set[T]) Set[T] {
    	var walk, other Set[T]
    	result := New[T]()
    	if s1.Len() < s2.Len() {
    		walk = s1
    		other = s2
    	} else {
    		walk = s2
    		other = s1
    	}
    	for key := range walk {
    		if other.Has(key) {
    			result.Insert(key)
    		}
    	}
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue8154.go

    // compile
    
    // Copyright 2015 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.
    
    // Issue 8154: cmd/5g: ICE in walkexpr walk.c
    
    package main
    
    func main() {
    	c := make(chan int)
    	_ = [1][]func(){[]func(){func() { <-c }}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 313 bytes
    - Viewed (0)
  8. pkg/kubelet/cm/containermap/container_map.go

    		return "", "", fmt.Errorf("containerID %s not in ContainerMap", containerID)
    	}
    	return cm[containerID].podUID, cm[containerID].containerName, nil
    }
    
    // Visit invoke visitor function to walks all of the entries in the container map
    func (cm ContainerMap) Visit(visitor func(podUID, containerName, containerID string)) {
    	for k, v := range cm {
    		visitor(v.podUID, v.containerName, k)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 30 15:25:05 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc

    // function. This is a no-op for the ops which are not wrapped.
    LogicalResult UnwrapTFCustomOps(func::FuncOp fn, OpBuilder& builder) {
      llvm::SmallVector<Operation*, 4> wrapped_ops;
      fn.walk([&](TFL::CustomTfOp custom_op) {
        auto* real_op = &custom_op.getBody().front().front();
        wrapped_ops.push_back(real_op);
      });
    
      for (auto* op : wrapped_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/cmd/cgo/ast_go1.go

    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	error_(token.NoPos, "unexpected type %T in walk", x)
    	panic("unexpected type")
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return nil
    }
    
    func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 578 bytes
    - Viewed (0)
Back to top