aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native
diff options
context:
space:
mode:
authorGravatar Greg Estren <gregce@google.com>2016-12-01 21:38:25 +0000
committerGravatar Irina Iancu <elenairina@google.com>2016-12-02 07:44:08 +0000
commit7f534231c3fcf652f34d45ff2ee59b60220e3433 (patch)
tree6c82b2ad22dac0db8c4a83c6e8d020b739ebaf22 /examples/py_native
parent9d837844c7651a8de6323f5efab41e86e096fea8 (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 'examples/py_native')
0 files changed, 0 insertions, 0 deletions