Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str If CompareGtE NameLoad BinOpSub NameLoad Num body AugAssignAdd NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad NameLoad body If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr keyword Str keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse AugAssignAdd NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad If CompareGt NameLoad BinOpAdd NameLoad Num body Break Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Dict For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad If CompareIn NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A logging N/A warnings N/A six N/A logger N/A N/A logging getLogger __name__ BuildFileParser N/A object N/A N/A Parses BUILD files for a given repo build configuration. BuildFileParserError N/A Exception N/A N/A Base class for all exceptions raised in BuildFileParser to make exception handling easier N/A N/A BuildFileScanError N/A BuildFileParserError N/A N/A Raised if there was a problem when gathering all addresses in a BUILD file N/A N/A AddressableConflictException N/A BuildFileParserError N/A N/A Raised if the same address is redefined in a BUILD file N/A N/A SiblingConflictException N/A BuildFileParserError N/A N/A Raised if the same address is redefined in another BUILD file in the same directory N/A N/A ParseError N/A BuildFileParserError N/A N/A An exception was encountered in the python parser N/A ExecuteError N/A BuildFileParserError N/A N/A An exception was encountered executing code in the BUILD file N/A __init__ N/A N/A self build_configuration root_dir N/A N/A N/A N/A self _build_configuration build_configuration N/A N/A self _root_dir root_dir N/A root_dir N/A N/A self N/A N/A N/A N/A self _root_dir N/A property registered_aliases N/A N/A self N/A N/A N/A Returns a copy of the registered build file aliases this build file parser uses. N/A N/A N/A N/A self _build_configuration registered_aliases N/A address_map_from_build_files N/A N/A self build_files N/A N/A N/A family_address_map_by_build_file N/A N/A self parse_build_files build_files N/A address_map N/A N/A N/A build_file sibling_address_map N/A N/A family_address_map_by_build_file items N/A N/A N/A N/A address_map update sibling_address_map N/A address_map N/A parse_build_files N/A N/A self build_files N/A N/A N/A family_address_map_by_build_file N/A N/A bf build_files N/A N/A bf_address_map N/A N/A self parse_build_file bf N/A N/A address addressable N/A N/A bf_address_map items N/A N/A N/A sibling_build_file sibling_address_map N/A N/A family_address_map_by_build_file items N/A N/A N/A address sibling_address_map N/A N/A N/A N/A self SiblingConflictException N/A N/A Both {conflicting_file} and {addressable_file} define the same address: '{target_name}' format conflicting_file sibling_build_file addressable_file N/A address build_file target_name N/A address target_name N/A N/A family_address_map_by_build_file N/A bf bf_address_map N/A family_address_map_by_build_file N/A parse_build_file N/A N/A self build_file N/A N/A N/A Capture Addressable instances from parsing `build_file`.
    Prepare a context for parsing, read a BUILD file from the filesystem, and return the
    Addressable instances generated by executing the code.
     _format_context_msg N/A N/A lineno offset error_type message N/A N/A N/A Show the line of the BUILD file that has the error along with a few line of context N/A build_contents N/A N/A N/A N/A build_file source decode utf-8 N/A context N/A N/A While parsing {build_file}:
 format build_file build_file N/A curr_lineno 0 N/A line N/A N/A build_contents split N/A N/A line N/A N/A line encode ascii backslashreplace N/A curr_lineno 1 N/A N/A curr_lineno lineno N/A N/A highlight * N/A N/A highlight N/A N/A curr_lineno N/A lineno 3 N/A N/A context N/A N/A {highlight}{curr_lineno:4d}: {line}
 format highlight highlight line line curr_lineno curr_lineno N/A N/A lineno curr_lineno N/A N/A offset N/A N/A context N/A N/A        {caret:>{width}} {error_type}: {message}

 format caret ^ width N/A int offset error_type error_type message message N/A N/A context N/A N/A         {error_type}: {message}

 format error_type error_type message message N/A N/A curr_lineno N/A lineno 3 N/A N/A N/A context N/A N/A N/A N/A logger debug N/A N/A Parsing BUILD file {build_file}. format build_file build_file N/A N/A N/A build_file_code N/A N/A build_file code N/A N/A N/A SyntaxError N/A e N/A N/A N/A N/A self ParseError N/A _format_context_msg N/A e lineno N/A e offset N/A N/A e __class__ __name__ e N/A N/A Exception N/A e N/A N/A N/A N/A self ParseError N/A N/A {error_type}: {message}
 while parsing BUILD file {build_file} format error_type N/A N/A e __class__ __name__ message e build_file build_file N/A parse_state N/A N/A N/A self _build_configuration initialize_parse_state build_file N/A N/A N/A N/A N/A warnings catch_warnings record True warns N/A N/A N/A N/A six exec_ build_file_code N/A parse_state parse_globals N/A warn warns N/A N/A N/A N/A logger warning N/A _format_context_msg lineno N/A warn lineno offset None error_type N/A N/A warn category __name__ message N/A warn message N/A N/A N/A Exception N/A e N/A N/A N/A N/A self ExecuteError N/A N/A {message}
 while executing BUILD file {build_file} format message e build_file build_file N/A address_map N/A N/A N/A address addressable N/A parse_state registered_addressable_instances N/A N/A N/A N/A logger debug N/A N/A Adding {addressable} to the BuildFileParser address map with {address} format addressable addressable address address N/A N/A address address_map N/A N/A N/A N/A self AddressableConflictException N/A N/A File {conflicting_file} defines address '{target_name}' more than once. format conflicting_file N/A address build_file target_name N/A address target_name N/A N/A address_map N/A address addressable N/A N/A N/A logger debug N/A N/A {build_file} produced the following Addressables: format build_file build_file N/A N/A address addressable N/A N/A address_map items N/A N/A N/A N/A logger debug N/A N/A   * {address}: {addressable} format address address addressable addressable N/A address_map N/A N/A