Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for rewriteUnsafe (0.09 sec)

  1. src/cmd/cgo/gcc.go

    	case *ast.SelectorExpr:
    		return p.isVariable(x.X)
    	case *ast.IndexExpr:
    		return true
    	}
    	return false
    }
    
    // rewriteUnsafe returns a version of t with references to unsafe.Pointer
    // rewritten to use _cgo_unsafe.Pointer instead.
    func (p *Package) rewriteUnsafe(t ast.Expr) ast.Expr {
    	switch t := t.(type) {
    	case *ast.Ident:
    		// We don't see a SelectorExpr for unsafe.Pointer;
    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