Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for copyConstType (0.21 sec)

  1. src/go/doc/exports.go

    				r.shadowedPredecl = make(map[string]bool)
    			}
    			r.shadowedPredecl[name] = true
    		}
    	}
    	return false
    }
    
    // copyConstType returns a copy of typ with position pos.
    // typ must be a valid constant type.
    // In practice, only (possibly qualified) identifiers are possible.
    func copyConstType(typ ast.Expr, pos token.Pos) ast.Expr {
    	switch typ := typ.(type) {
    	case *ast.Ident:
    		return &ast.Ident{Name: typ.Name, NamePos: pos}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top