Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getLastComment (0.17 sec)

  1. src/go/printer/printer.go

    	}
    	return nil
    }
    
    func getLastComment(n ast.Node) *ast.CommentGroup {
    	switch n := n.(type) {
    	case *ast.Field:
    		return n.Comment
    	case *ast.ImportSpec:
    		return n.Comment
    	case *ast.ValueSpec:
    		return n.Comment
    	case *ast.TypeSpec:
    		return n.Comment
    	case *ast.GenDecl:
    		if len(n.Specs) > 0 {
    			return getLastComment(n.Specs[len(n.Specs)-1])
    		}
    	case *ast.File:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
Back to top