Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getNewIdent (0.18 sec)

  1. src/cmd/cgo/gcc.go

    // If addPosition is true, add position info in the ident name.
    func (p *Package) rewriteName(f *File, r *Ref, addPosition bool) ast.Expr {
    	getNewIdent := ast.NewIdent
    	if addPosition {
    		getNewIdent = func(newName string) *ast.Ident {
    			mangledIdent := ast.NewIdent(newName)
    			if len(newName) == len(r.Name.Go) {
    				return mangledIdent
    			}
    			p := fset.Position((*r.Expr).End())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top