Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/compress/flate/example_test.go

    	// substrings that match those in the dictionary.
    	const data = `<?xml version="1.0"?>
    <book>
    	<meta name="title" content="The Go Programming Language"/>
    	<meta name="authors" content="Alan Donovan and Brian Kernighan"/>
    	<meta name="published" content="2015-10-26"/>
    	<meta name="isbn" content="978-0134190440"/>
    	<data>...</data>
    </book>
    `
    
    	var b bytes.Buffer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 18:42:35 UTC 2016
    - 6.5K 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top