Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for Donovan (0.1 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    // but consistently.
    package objectpath
    
    import (
    	"fmt"
    	"go/types"
    	"strconv"
    	"strings"
    
    	"golang.org/x/tools/internal/aliases"
    	"golang.org/x/tools/internal/typesinternal"
    )
    
    // TODO(adonovan): think about generic aliases.
    
    // A Path is an opaque name that identifies a types.Object
    // relative to its package. Conceptually, the name consists of a
    // sequence of destructuring operations applied to the package scope
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    }
    
    type importerFunc func(path string) (*types.Package, error)
    
    func (f importerFunc) Import(path string) (*types.Package, error) { return f(path) }
    
    // TODO(adonovan): make this a library function or method of Info.
    func imported(info *types.Info, spec *ast.ImportSpec) *types.Package {
    	obj, ok := info.Implicits[spec]
    	if !ok {
    		obj = info.Defs[spec.Name] // renaming import
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    		_break: done,
    	}
    	b.stmtList(cc.Body)
    	b.targets = b.targets.tail
    	b.jump(done)
    }
    
    func (b *builder) selectStmt(s *ast.SelectStmt, label *lblock) {
    	// First evaluate channel expressions.
    	// TODO(adonovan): fix: evaluate only channel exprs here.
    	for _, clause := range s.Body.List {
    		if comm := clause.(*ast.CommClause).Comm; comm != nil {
    			b.stmt(comm)
    		}
    	}
    
    	done := b.newBlock(KindSelectDone, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. src/cmd/vet/vet_test.go

    		})
    	}
    
    	// The loopclosure analyzer (aka "rangeloop" before CL 140578)
    	// is a no-op for files whose version >= go1.22, so we use a
    	// go.mod file in the rangeloop directory to "downgrade".
    	//
    	// TOOD(adonovan): delete when go1.21 goes away.
    	t.Run("loopclosure", func(t *testing.T) {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "vet", "-vettool="+vetPath(t), ".")
    		cmd.Env = append(os.Environ(), "GOWORK=off")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    	}
    
    	// Use a temporary scope for all parameter declarations and then
    	// squash that scope into the parent scope (and report any
    	// redeclarations at that time).
    	//
    	// TODO(adonovan): now that each declaration has the correct
    	// scopePos, there should be no need for scope squashing.
    	// Audit to ensure all lookups honor scopePos and simplify.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/object.go

    	if sig != nil {
    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    		// We can't simply replace it with new(Signature) either,
    		// as this would violate object.{Type,color} invariants.
    		// TODO(adonovan): propose to disallow NewFunc with nil *Signature.
    	}
    	return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, false, nil}
    }
    
    // Signature returns the signature (type) of the function or method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. src/go/types/object.go

    	if sig != nil {
    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    		// We can't simply replace it with new(Signature) either,
    		// as this would violate object.{Type,color} invariants.
    		// TODO(adonovan): propose to disallow NewFunc with nil *Signature.
    	}
    	return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, false, nil}
    }
    
    // Signature returns the signature (type) of the function or method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/resolver.go

    			check.collectMethods(obj)
    		}
    	}
    
    	if false && check.conf.EnableAlias {
    		// With Alias nodes we can process declarations in any order.
    		//
    		// TODO(adonovan): unfortunately, Alias nodes
    		// (GODEBUG=gotypesalias=1) don't entirely resolve
    		// problems with cycles. For example, in
    		// GOROOT/test/typeparam/issue50259.go,
    		//
    		// 	type T[_ any] struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  9. src/go/types/resolver.go

    			check.collectMethods(obj)
    		}
    	}
    
    	if false && check.conf._EnableAlias {
    		// With Alias nodes we can process declarations in any order.
    		//
    		// TODO(adonovan): unfortunately, Alias nodes
    		// (GODEBUG=gotypesalias=1) don't entirely resolve
    		// problems with cycles. For example, in
    		// GOROOT/test/typeparam/issue50259.go,
    		//
    		// 	type T[_ any] struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/decl.go

    			// TODO(gri) Should be able to use nil instead of Typ[Invalid] to mark
    			//           the alias as incomplete. Currently this causes problems
    			//           with certain cycles. Investigate.
    			//
    			// NOTE(adonovan): to avoid the Invalid being prematurely observed
    			// by (e.g.) a var whose type is an unfinished cycle,
    			// Unalias does not memoize if Invalid. Perhaps we should use a
    			// special sentinel distinct from Invalid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
Back to top