Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 41 of 41 for assertRun (0.25 sec)

  1. src/cmd/cgo/gcc.go

    // might contain a pointer.
    func (p *Package) needsPointerCheck(f *File, t ast.Expr, arg ast.Expr) bool {
    	// An untyped nil does not need a pointer check, and when
    	// _cgoCheckPointer returns the untyped nil the type assertion we
    	// are going to insert will fail.  Easier to just skip nil arguments.
    	// TODO: Note that this fails if nil is shadowed.
    	if id, ok := arg.(*ast.Ident); ok && id.Name == "nil" {
    		return false
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top