Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Donovan (0.18 sec)

  1. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * LocalCache emulation for GWT.
     *
     * @param <K> the base key type
     * @param <V> the base value type
     * @author Charles Fry
     * @author Jon Donovan
     */
    public class LocalCache<K, V> implements ConcurrentMap<K, V> {
      private static final int UNSET_INT = CacheBuilder.UNSET_INT;
    
      private final LinkedHashMap<K, Timestamped<V>> cachingHashMap;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    		return nil, nil
    	}
    
    	// Don't report diagnostics for modules marked before go1.21,
    	// since at that time the go directive wasn't clearly
    	// specified as a toolchain requirement.
    	//
    	// TODO(adonovan): after go1.21, call GoVersion directly.
    	pkgVersion := any(pass.Pkg).(interface{ GoVersion() string }).GoVersion()
    	if !versions.AtLeast(pkgVersion, "go1.21") {
    		return nil, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    			tok(n.Rparen, len(")")))
    
    	case *ast.TypeSpec:
    		// TODO(adonovan): TypeSpec.{Doc,Comment}?
    
    	case *ast.TypeSwitchStmt:
    		children = append(children, tok(n.Switch, len("switch")))
    
    	case *ast.UnaryExpr:
    		children = append(children, tok(n.OpPos, len(n.Op.String())))
    
    	case *ast.ValueSpec:
    		// TODO(adonovan): ValueSpec.{Doc,Comment}?
    
    	case *ast.BadDecl, *ast.BadExpr, *ast.BadStmt:
    		// nop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go

    // license that can be found in the LICENSE file.
    
    // Package shift defines an Analyzer that checks for shifts that exceed
    // the width of an integer.
    package shift
    
    // TODO(adonovan): integrate with ctrflow (CFG-based) dead code analysis. May
    // have impedance mismatch due to its (non-)treatment of constant
    // expressions (such as runtime.GOARCH=="386").
    
    import (
    	"go/ast"
    	"go/constant"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		return nil
    	}
    	for _, f := range pass.Files {
    		// TODO(adonovan): use go1.20 f.FileStart
    		if pass.Fset.File(f.Pos()).Name() == filename {
    			return nil
    		}
    	}
    	return fmt.Errorf("Pass.ReadFile: %s is not among OtherFiles, IgnoredFiles, or names of Files", filename)
    }
    
    // TODO(adonovan): use go1.21 slices.Contains.
    func slicesContains[S ~[]E, E comparable](slice S, x E) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    		// we aren't careful about which structs or methods
    		// we rexport: it should be only those referenced
    		// from the API of s.pkg.
    		// TODO(adonovan): opt: be more precise. e.g.
    		// intersect with the set of objects computed by
    		// importMap(s.pkg.Imports()).
    		// TODO(adonovan): opt: implement "shallow" facts.
    		if k.pkg != s.pkg {
    			if k.obj == nil {
    				continue // imported package fact
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    // if t's core type is a pointer; otherwise it returns t.
    //
    // Do not assume that Deref(T)==T implies T is not a pointer:
    // consider "type T *T", for example.
    //
    // TODO(adonovan): ideally this would live in typesinternal, but that
    // creates an import cycle. Move there when we melt this package down.
    func Deref(t types.Type) types.Type {
    	if ptr, ok := CoreType(t).(*types.Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    // Copyright 2013 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 assign
    
    // TODO(adonovan): check also for assignments to struct fields inside
    // methods that are on T instead of *T.
    
    import (
    	_ "embed"
    	"fmt"
    	"go/ast"
    	"go/token"
    	"go/types"
    	"reflect"
    
    	"golang.org/x/tools/go/analysis"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    	}
    
    	// This replicates the minimal subset of
    	// cmd/internal/objabi.AddVersionFlag, which is private to the
    	// go tool yet forms part of our command-line interface.
    	// TODO(adonovan): clarify the contract.
    
    	// Print the tool version so the build system can track changes.
    	// Formats:
    	//   $progname version devel ... buildID=...
    	//   $progname version go1.9.1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    // This function scales very poorly with packages' transitive object
    // references, which can be more than a million for each package near
    // the top of a large project. (This was a significant contributor to
    // #60621.)
    // TODO(adonovan): opt: compute this information more efficiently
    // by obtaining it from the internals of the gcexportdata decoder.
    func importMap(imports []*types.Package) map[string]*types.Package {
    	objects := make(map[types.Object]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top