Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for Donovan (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    	"log"
    	"os"
    	"reflect"
    	"runtime/debug"
    	"strconv"
    	"strings"
    
    	"golang.org/x/telemetry/internal/counter"
    )
    
    // Supported reports whether the runtime supports [runtime.SetCrashOutput].
    //
    // TODO(adonovan): eliminate once go1.23+ is assured.
    func Supported() bool { return setCrashOutput != nil }
    
    var setCrashOutput func(*os.File) error // = runtime.SetCrashOutput on go1.23+
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    // This package does not depend on go/packages.
    // If you need a standalone tool, use multichecker,
    // which supports this mode but can also load packages
    // from source using go/packages.
    package unitchecker
    
    // TODO(adonovan):
    // - with gccgo, go build does not build standard library,
    //   so we will not get to analyze it. Yet we must in order
    //   to create base facts for, say, the fmt package for the
    //   printf checker.
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go

    					TextEdits: missingKeys,
    				}}
    			}
    			pass.Report(diag)
    			return
    		}
    	})
    	return nil, nil
    }
    
    // isLocalType reports whether typ belongs to the same package as pass.
    // TODO(adonovan): local means "internal to a function"; rename to isSamePackageType.
    func isLocalType(pass *analysis.Pass, typ types.Type) bool {
    	switch x := aliases.Unalias(typ).(type) {
    	case *types.Struct:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    // within file f, or NoPos if there is no line of that number.
    func LineStart(f *token.File, line int) token.Pos {
    	// Use binary search to find the start offset of this line.
    	//
    	// TODO(adonovan): eventually replace this function with the
    	// simpler and more efficient (*go/token.File).LineStart, added
    	// in go1.12.
    
    	min := 0        // inclusive
    	max := f.Size() // exclusive
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    // flags
    var funcs, stringMethods stringSetFlag
    
    func init() {
    	// TODO(adonovan): provide a comment or declaration syntax to
    	// allow users to add their functions to this set using facts.
    	// For example:
    	//
    	//    func ignoringTheErrorWouldBeVeryBad() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    // The name encodes the stack.
    func EncodeStack(pcs []uintptr, prefix string) string {
    	var locs []string
    	lastImport := ""
    	frs := runtime.CallersFrames(pcs)
    	for {
    		fr, more := frs.Next()
    		// TODO(adonovan): this CutLast(".") operation isn't
    		// appropriate for generic function symbols.
    		path, fname := cutLastDot(fr.Function)
    		if path == lastImport {
    			path = `"` // (a ditto mark)
    		} else {
    			lastImport = path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/alias.go

    	}
    
    	// Memoize the type only if valid.
    	// In the presence of unfinished cyclic declarations, Unalias
    	// would otherwise latch the invalid value (#66704).
    	// TODO(adonovan): rethink, along with checker.typeDecl's use
    	// of Invalid to mark unfinished aliases.
    	if t != Typ[Invalid] {
    		a0.actual = t
    	}
    
    	return t
    }
    
    // asNamed returns t as *Named if that is t's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top