Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for _Trace (0.12 sec)

  1. src/go/types/generate_test.go

    	"slice.go":         nil,
    	"subst.go":         func(f *ast.File) { fixTokenPos(f); renameSelectors(f, "Trace->_Trace") },
    	"termlist.go":      nil,
    	"termlist_test.go": nil,
    	"tuple.go":         nil,
    	"typelists.go":     nil,
    	"typeset.go":       func(f *ast.File) { fixTokenPos(f); renameSelectors(f, "Trace->_Trace") },
    	"typeparam.go":     nil,
    	"typeterm_test.go": nil,
    	"typeterm.go":      nil,
    	"typestring.go":    nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. src/go/types/check.go

    	for i := top; i < len(check.delayed); i++ {
    		a := &check.delayed[i]
    		if check.conf._Trace {
    			if a.desc != nil {
    				check.trace(a.desc.pos.Pos(), "-- "+a.desc.format, a.desc.args...)
    			} else {
    				check.trace(nopos, "-- delayed %p", a.f)
    			}
    		}
    		a.f() // may append to check.delayed
    		if check.conf._Trace {
    			fmt.Println()
    		}
    	}
    	assert(top <= len(check.delayed)) // stack must not have shrunk
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/go/types/api.go

    	// declarations within _cgo_gotypes.go.
    	//
    	// It is an error to set both FakeImportC and go115UsesCgo.
    	go115UsesCgo bool
    
    	// If _Trace is set, a debug trace is printed to stdout.
    	_Trace bool
    
    	// If Error != nil, it is called with each error found
    	// during type checking; err has dynamic type Error.
    	// Secondary errors (for instance, to enumerate all types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/go/types/builtins.go

    		}
    		// result is constant - no need to record signature
    
    	case _Trace:
    		// trace(x, y, z, ...) dumps the positions, expressions, and
    		// values of its arguments. The result of trace is the value
    		// of the first argument.
    		// Note: trace is only available in self-test mode.
    		// (no argument evaluated yet)
    		if nargs == 0 {
    			check.dump("%v: trace() without arguments", call.Pos())
    			x.mode = novalue
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  5. src/go/types/typexpr.go

    	if check.conf._Trace {
    		check.trace(e0.Pos(), "-- type %s", e0)
    		check.indent++
    		defer func() {
    			check.indent--
    			var under Type
    			if T != nil {
    				// Calling under() here may lead to endless instantiations.
    				// Test case: type T[P any] *T[P]
    				under = safeUnderlying(T)
    			}
    			if T == under {
    				check.trace(e0.Pos(), "=> %s // %s", T, goTypeName(T))
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins.go

    		}
    		// result is constant - no need to record signature
    
    	case _Trace:
    		// trace(x, y, z, ...) dumps the positions, expressions, and
    		// values of its arguments. The result of trace is the value
    		// of the first argument.
    		// Note: trace is only available in self-test mode.
    		// (no argument evaluated yet)
    		if nargs == 0 {
    			check.dump("%v: trace() without arguments", atPos(call))
    			x.mode = novalue
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/go/types/decl.go

    			// ignored for now
    		default:
    			panic("unreachable")
    		}
    	}
    
    	if check.conf._Trace {
    		check.trace(obj.Pos(), "## cycle detected: objPath = %s->%s (len = %d)", pathString(cycle), obj.Name(), len(cycle))
    		if tparCycle {
    			check.trace(obj.Pos(), "## cycle contains: generic type in a type parameter list")
    		} else {
    			check.trace(obj.Pos(), "## cycle contains: %d values, %d type definitions", nval, ndef)
    		}
    		defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. src/go/types/validtype.go

    func (check *Checker) validType0(pos token.Pos, typ Type, nest, path []*Named) bool {
    	typ = Unalias(typ)
    
    	if check.conf._Trace {
    		if t, _ := typ.(*Named); t != nil && t.obj != nil /* obj should always exist but be conservative */ {
    			pos = t.obj.pos
    		}
    		check.indent++
    		check.trace(pos, "validType(%s) nest %v, path %v", typ, pathString(makeObjList(nest)), pathString(makeObjList(path)))
    		defer func() {
    			check.indent--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/go/types/check_test.go

    	if listErrors && len(errlist) > 0 {
    		t.Errorf("--- %s:", pkgName)
    		for _, err := range errlist {
    			t.Error(err)
    		}
    	}
    
    	// set up typechecker
    	var conf Config
    	*boolFieldAddr(&conf, "_Trace") = manual && testing.Verbose()
    	conf.Importer = importer.Default()
    	conf.Error = func(err error) {
    		if *haltOnError {
    			defer panic(err)
    		}
    		if listErrors {
    			t.Error(err)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. src/go/types/typeset.go

    	}
    
    	if check != nil && check.conf._Trace {
    		// Types don't generally have position information.
    		// If we don't have a valid pos provided, try to use
    		// one close enough.
    		if !pos.IsValid() && len(ityp.methods) > 0 {
    			pos = ityp.methods[0].pos
    		}
    
    		check.trace(pos, "-- type set for %s", ityp)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(pos, "=> %s ", ityp.typeSet())
    		}()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top