commit | e22dfba782fbedc56bca4ed0818f2113cc3f914f | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Tue Jan 15 04:45:48 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 15 04:45:48 2019 |
tree | babbc8b65ba43434ef4e6f21728ba6901671762f | |
parent | ed8ef3b5b856fb58a361437db144042c55108b3a [diff] |
[lucicfg] docgen: Add AST parser for the documentation generator. It takes a Starlark's AST and reduces it only to structures important for the documentation generation purposes, preserving their docstring and comments. It works on a single file only. It will be used by a higher level parser that understands relations between modules in a package, e.g. if a symbol is defined in an internal module, but then publicly exposed through an alias in another module, the documentation generator will be able to trace the references back to the original definition, to grab a documentation from it. R=tandrii@chromium.org BUG=833946 Change-Id: Ic5ae1ac25978cb3964f20d3ae43bc3265fc7078c Reviewed-on: https://chromium-review.googlesource.com/c/1407728 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
Contributing uses the same flow as Chromium contributions.