Skip to content

Commit

Permalink
Merge pull request chai2010#52 from ns-cn/master
Browse files Browse the repository at this point in the history
wrong navigation number: 4.5 -> 4.4
  • Loading branch information
chai2010 authored Jul 21, 2023
2 parents b00141c + fa693fc commit 326bf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch4/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ myNodeVisitor.Visit: main

所以说,语法树的很多处理原理是相通的,`ast.Inspect`函数只是`ast.Walk`更简化版的包装而已。有了语法树之后,对import进行花样排序就变成了对`File.Decls`列表元素的处理问题。

## 4.5 总结
## 4.4 总结

`parser.ParseDir`解析目录结构返回包含多个包的map,返回包的总体逻辑关系如下图所示:

Expand Down

0 comments on commit 326bf3f

Please sign in to comment.