Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,261 for checkDir (0.15 sec)

  1. src/cmd/compile/internal/types2/api.go

    // Package types2 declares the data types and implements
    // the algorithms for type-checking of Go packages. Use
    // Config.Check to invoke the type checker for a package.
    // Alternatively, create a new type checker with NewChecker
    // and invoke it incrementally by calling Checker.Files.
    //
    // Type-checking consists of several interdependent phases:
    //
    // Name resolution maps each identifier (syntax.Name) in the program to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ConsumingQueueIterator.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An Iterator implementation which draws elements from a queue, removing them from the queue as it
     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/runtime/unsafe.go

    	unsafestring64(ptr, len64)
    
    	// Check that underlying array doesn't straddle multiple heap objects.
    	// unsafestring64 has already checked for overflow.
    	if checkptrStraddles(ptr, uintptr(len64)) {
    		throw("checkptr: unsafe.String result straddles multiple allocations")
    	}
    }
    
    func panicunsafestringlen() {
    	panic(errorString("unsafe.String: len out of range"))
    }
    
    func panicunsafestringnilptr() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/go/types/alias.go

    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/return.go

    		}
    	}
    
    	return false
    }
    
    func (check *Checker) isTerminatingList(list []syntax.Stmt, label string) bool {
    	// trailing empty statements are permitted - skip them
    	for i := len(list) - 1; i >= 0; i-- {
    		if _, ok := list[i].(*syntax.EmptyStmt); !ok {
    			return check.isTerminating(list[i], label)
    		}
    	}
    	return false // all statements are empty
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/const.go

    	. "internal/types/errors"
    	"math"
    )
    
    // overflow checks that the constant x is representable by its type.
    // For untyped constants, it checks that the value doesn't become
    // arbitrarily large.
    func (check *Checker) overflow(x *operand, opPos syntax.Pos) {
    	assert(x.mode == constant_)
    
    	if x.val.Kind() == constant.Unknown {
    		// TODO(gri) We should report exactly what went wrong. At the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue34966.go

    // compile -d=checkptr
    
    // Copyright 2019 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 p
    
    import "unsafe"
    
    type ptr unsafe.Pointer
    
    func f(p ptr) *int { return (*int)(p) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 17 21:10:22 UTC 2019
    - 327 bytes
    - Viewed (0)
  8. src/go/types/expr.go

    // and if x is the (formerly untyped) lhs operand of a non-constant
    // shift, it must be an integer value.
    func (check *Checker) updateExprType(x ast.Expr, typ Type, final bool) {
    	check.updateExprType0(nil, x, typ, final)
    }
    
    func (check *Checker) updateExprType0(parent, x ast.Expr, typ Type, final bool) {
    	old, found := check.untyped[x]
    	if !found {
    		return // nothing to do
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/util/traffic/result.go

    			minimumPercent, r.SuccessfulRequests, r.TotalRequests, r.PercentSuccess(), r.Error)
    	}
    	if r.SuccessfulRequests == r.TotalRequests {
    		t.Log("traffic checker succeeded with all successful requests")
    	} else {
    		t.Logf("traffic checker met minimum threshold, with %d/%d successes, but encountered some failures: %v", r.SuccessfulRequests, r.TotalRequests, r.Error)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 22:50:35 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/printers/sourcechecker_test.go

    			pkgPath:         "k8s.io/bar/foo/baz/etc",
    			shouldBeAllowed: true,
    		},
    	}
    
    	checker := &illegalPackageSourceChecker{disallowedPrefixes}
    
    	for _, tc := range testCases {
    		if checker.IsForbidden(tc.pkgPath) {
    			if tc.shouldBeAllowed {
    				t.Fatalf("expected package path %q to have been allowed", tc.pkgPath)
    			}
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 1.7K bytes
    - Viewed (0)
Back to top