Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Implementing extracting symbols from load()s and adding them to stubs. #38

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

davidzchen
Copy link
Member

This change adds LoadExtractor, which walks the AST of the .bzl file and
extracts information from the load() statements about symbols that are loaded
from other .bzl files. These symbols are then added to the set of global stubs
in RuleDocExtractor so that, as a first step, if any of these symbols loaded
from other .bzl files are referenced in the global scope, Skydoc would not
raise a NameError.

Issue #21

@@ -1,4 +1,4 @@
# Copyright 2016 The Bazel Authors. All rights reserved.
# Copyright 2017 The Bazel Authors. All rights reserved.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not update the date on existing file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

This change adds LoadExtractor, which walks the AST of the .bzl file and
extracts information from the load() statements about symbols that are loaded
from other .bzl files. These symbols are then added to the set of global stubs
in RuleDocExtractor so that, as a first step, if any of these symbols loaded
from other .bzl files are referenced in the global scope, Skydoc would not
raise a NameError.
@davidzchen davidzchen merged commit 180e1ef into bazelbuild:master Jan 11, 2017
@davidzchen
Copy link
Member Author

Thanks for reviewing, @damienmg!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants