Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Galt (0.17 sec)

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

    		// spec: "For a base type, the non-blank names of methods bound
    		// to it must be unique."
    		assert(m.name != "_")
    		if alt := mset.insert(m); alt != nil {
    			if alt.Pos().IsKnown() {
    				check.errorf(m.pos, DuplicateMethod, "method %s.%s already declared at %v", obj.Name(), m.name, alt.Pos())
    			} else {
    				check.errorf(m.pos, DuplicateMethod, "method %s.%s already declared", obj.Name(), m.name)
    			}
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/resolver.go

    		for name, obj := range scope.elems {
    			if alt := pkg.scope.Lookup(name); alt != nil {
    				obj = resolve(name, obj)
    				err := check.newError(DuplicateDecl)
    				if pkg, ok := obj.(*PkgName); ok {
    					err.addf(alt, "%s already declared through import of %s", alt.Name(), pkg.Imported())
    					err.addAltDecl(pkg)
    				} else {
    					err.addf(alt, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/instantiate.go

    	var alt Type
    	if Ti.typeSet().is(func(t *term) bool {
    		if !t.includes(V) {
    			// If V ∉ t.typ but V ∈ ~t.typ then remember this type
    			// so we can suggest it as an alternative in the error
    			// message.
    			if alt == nil && !t.tilde && Identical(t.typ, under(t.typ)) {
    				tt := *t
    				tt.tilde = true
    				if tt.includes(V) {
    					alt = t.typ
    				}
    			}
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/scope.go

    // If s already contains an alternative object alt with
    // the same name, Insert leaves s unchanged and returns alt.
    // Otherwise it inserts obj, sets the object's parent scope
    // if not already set, and returns nil.
    func (s *Scope) Insert(obj Object) Object {
    	name := obj.Name()
    	if alt := s.Lookup(name); alt != nil {
    		return alt
    	}
    	s.insert(name, obj)
    	if obj.Parent() == nil {
    		obj.setParent(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    	results, _ := check.collectParams(scope, ftyp.ResultList, false, scopePos)
    	scope.Squash(func(obj, alt Object) {
    		err := check.newError(DuplicateDecl)
    		err.addf(obj, "%s redeclared in this block", obj.Name())
    		err.addAltDecl(alt)
    		err.report()
    	})
    
    	if recvPar != nil {
    		// recv parameter list present (may be empty)
    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/check_test.go

    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"reflect"
    	"regexp"
    	"runtime"
    	"strconv"
    	"strings"
    	"testing"
    
    	. "cmd/compile/internal/types2"
    )
    
    var (
    	haltOnError  = flag.Bool("halt", false, "halt on error")
    	verifyErrors = flag.Bool("verify", false, "verify errors (rather than list them) in TestManual")
    )
    
    func parseFiles(t *testing.T, filenames []string, srcs [][]byte, mode syntax.Mode) ([]*syntax.File, []error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testplugin/plugin_test.go

    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	tmpDir = GOPATH
    	fmt.Printf("TMPDIR=%s\n", tmpDir)
    
    	modRoot := filepath.Join(GOPATH, "src", "testplugin")
    	altRoot := filepath.Join(GOPATH, "alt", "src", "testplugin")
    	for srcRoot, dstRoot := range map[string]string{
    		"testdata":                           modRoot,
    		filepath.Join("altpath", "testdata"): altRoot,
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/stmt.go

    			// with the same name as a result parameter is in scope at the place of the return."
    			for _, obj := range res.vars {
    				if alt := check.lookup(obj.name); alt != nil && alt != obj {
    					err := check.newError(OutOfScopeResult)
    					err.addf(s, "result parameter %s not in scope at return", obj.name)
    					err.addf(alt, "inner declaration of %s", obj)
    					err.report()
    					// ok to continue
    				}
    			}
    		} else {
    			var lhs []*Var
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/call.go

    			}
    			goto Error
    		}
    
    		var why string
    		if isInterfacePtr(x.typ) {
    			why = check.interfacePtrError(x.typ)
    		} else {
    			alt, _, _ := lookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel, true)
    			why = check.lookupError(x.typ, sel, alt, false)
    		}
    		check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (%s)", x.expr, sel, why)
    		goto Error
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/script/cmds.go

    			RegexpArgs: firstNonFlag,
    		},
    		func(s *State, args ...string) (WaitFunc, error) {
    			return nil, match(s, args, s.Stdout(), "stdout")
    		})
    }
    
    // Stop returns a sentinel error that causes script execution to halt
    // and s.Execute to return with a nil error.
    func Stop() Cmd {
    	return Command(
    		CmdUsage{
    			Summary: "stop execution of the script",
    			Args:    "[msg]",
    			Detail: []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top