Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for rewriteFile (0.16 sec)

  1. src/cmd/gofmt/rewrite.go

    /*
    func dump(msg string, val reflect.Value) {
    	fmt.Printf("%s:\n", msg)
    	ast.Print(fileSet, val.Interface())
    	fmt.Println()
    }
    */
    
    // rewriteFile applies the rewrite rule 'pattern -> replace' to an entire file.
    func rewriteFile(fileSet *token.FileSet, pattern, replace ast.Expr, p *ast.File) *ast.File {
    	cmap := ast.NewCommentMap(fileSet, p, p.Comments)
    	m := make(map[string]reflect.Value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top