diff options
author | 2016-12-01 21:38:25 +0000 | |
---|---|---|
committer | 2016-12-02 07:44:08 +0000 | |
commit | 7f534231c3fcf652f34d45ff2ee59b60220e3433 (patch) | |
tree | 6c82b2ad22dac0db8c4a83c6e8d020b739ebaf22 /src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java | |
parent | 9d837844c7651a8de6323f5efab41e86e096fea8 (diff) |
Clean up RuleContext's attribute access API.
All calls now go through RuleContext.attributes(), which
guarantees both native and aspect-supplied attributes are checked.
For aspect attributes, only type queries are supported (e.g. "does
this attribute exist?", "what is its type?"). Not value queries.
This is because the code this is cleaning up accesses aspect
attributes through a String->Attribute map, which doesn't include
values. If ever needed we could further extend with something
more robust.
--
MOS_MIGRATED_REVID=140771242
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java')
0 files changed, 0 insertions, 0 deletions