Skip to content

Commit

Permalink
togo.ASTFile
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Apr 10, 2022
1 parent 09a10ce commit 35a780d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ast/togo/goast.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ func goDecls(decls []gopast.Decl) []ast.Decl {

func ASTFile(f *gopast.File) *ast.File {
return &ast.File{
Decls: goDecls(f.Decls),
Package: f.Package,
Name: goIdent(f.Name),
Decls: goDecls(f.Decls),
}
}

Expand Down

0 comments on commit 35a780d

Please sign in to comment.