Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword Str Expr Call NameLoad Str keyword NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return IfExp NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad NameStore body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str NameLoad Return Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr If NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad Str attr NameLoad If AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad Call AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword ListLoad AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A re N/A subprocess pants.backend.codegen.subsystems.thrift_defaults ThriftDefaults pants.backend.codegen.tasks.simple_codegen_task SimpleCodegenTask pants.base.build_environment get_buildroot pants.base.exceptions TaskError pants.base.workunit WorkUnitLabel pants.binaries.thrift_binary ThriftBinary pants.util.dirutil safe_mkdir pants.util.memo memoized_property twitter.common.collections OrderedSet pants.contrib.go.targets.go_thrift_library GoThriftGenLibrary GoThriftLibrary GoThriftGen N/A SimpleCodegenTask N/A register_options N/A N/A cls register N/A N/A N/A N/A N/A N/A super GoThriftGen cls register_options register N/A N/A register --strict default True fingerprint True type bool help Run thrift compiler with strict warnings. N/A N/A register --gen-options advanced True fingerprint True help Use these apache thrift go gen options. N/A N/A register --thrift-import advanced True help Use this thrift-import gen option to thrift. N/A N/A register --thrift-import-target advanced True help Use this thrift import on symbolic defs. N/A classmethod global_subsystems N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super GoThriftGen cls global_subsystems N/A ThriftDefaults N/A classmethod task_subsystems N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super GoThriftGen cls task_subsystems N/A N/A ThriftBinary Factory N/A classmethod subsystem_dependencies N/A N/A cls N/A N/A N/A N/A N/A N/A N/A super GoThriftGen cls subsystem_dependencies N/A ThriftDefaults N/A N/A N/A ThriftBinary Factory scoped cls N/A classmethod _thrift_binary N/A N/A self N/A N/A N/A thrift_binary N/A N/A N/A N/A N/A ThriftBinary Factory scoped_instance self create N/A N/A thrift_binary path N/A memoized_property _deps N/A N/A self N/A N/A N/A thrift_import_target N/A N/A N/A self get_options thrift_import_target N/A thrift_imports N/A N/A N/A self context resolve thrift_import_target N/A thrift_imports N/A memoized_property _service_deps N/A N/A self N/A N/A N/A service_deps N/A N/A N/A self get_options service_deps N/A N/A service_deps N/A list N/A N/A self resolve_deps service_deps N/A self _deps N/A memoized_property N/A SERVICE_PARSER N/A N/A re compile ^\s*service\s+(?:[^\s{]+) N/A NAMESPACE_PARSER N/A N/A re compile ^\s*namespace go\s+([^\s]+) N/A re MULTILINE _declares_service N/A N/A self source N/A N/A N/A N/A open source thrift N/A N/A N/A any N/A line N/A line thrift N/A N/A N/A self SERVICE_PARSER search line N/A _get_go_namespace N/A N/A self source N/A N/A N/A N/A open source thrift N/A N/A namespace N/A N/A N/A self NAMESPACE_PARSER search N/A N/A thrift read N/A N/A namespace N/A N/A N/A TaskError Thrift file {} must contain "namespace go " source N/A N/A N/A namespace group 1 N/A synthetic_target_extra_dependencies N/A N/A self target target_workdir N/A N/A N/A source N/A N/A target sources_relative_to_buildroot N/A N/A N/A N/A self _declares_service N/A N/A N/A os path join N/A get_buildroot source N/A N/A N/A self _service_deps N/A N/A self _deps N/A synthetic_target_type N/A N/A self target N/A N/A N/A GoThriftGenLibrary N/A is_gentarget N/A N/A self target N/A N/A N/A N/A isinstance target GoThriftLibrary N/A _thrift_cmd N/A N/A self N/A N/A N/A cmd N/A N/A self _thrift_binary N/A thrift_import N/A N/A thrift_import={} format N/A N/A N/A self get_options thrift_import N/A gen_options N/A N/A N/A self get_options gen_options N/A gen_options N/A N/A gen_options N/A , thrift_import N/A N/A gen_options thrift_import N/A N/A N/A cmd extend N/A --gen N/A N/A go:{} format gen_options N/A N/A N/A N/A self get_options strict N/A N/A N/A N/A cmd append -strict N/A N/A N/A N/A N/A self get_options level debug N/A N/A N/A N/A cmd append -verbose N/A cmd N/A memoized_property _generate_thrift N/A N/A self target target_workdir N/A N/A N/A target_cmd N/A N/A self _thrift_cmd N/A N/A bases N/A OrderedSet N/A N/A tgt target_base N/A tgt N/A N/A target closure N/A N/A self is_gentarget tgt N/A base bases N/A N/A N/A N/A target_cmd extend N/A -I base N/A N/A N/A target_cmd extend N/A -o target_workdir N/A all_sources N/A list N/A N/A target sources_relative_to_buildroot N/A N/A N/A len all_sources 1 N/A N/A N/A TaskError go_thrift_library only supports a single .thrift source file for {}. target N/A source N/A all_sources N/A 0 N/A N/A N/A target_cmd append N/A N/A N/A os path join N/A get_buildroot source N/A N/A N/A N/A self context new_workunit name source labels N/A N/A WorkUnitLabel TOOL cmd N/A N/A join target_cmd workunit N/A N/A result N/A N/A subprocess call target_cmd stdout N/A N/A workunit output stdout stderr N/A N/A workunit output stderr N/A N/A result 0 N/A N/A N/A TaskError N/A N/A {} ... exited non-zero ({}) format N/A self _thrift_binary result N/A gen_dir N/A N/A N/A os path join target_workdir gen-go N/A src_dir N/A N/A N/A os path join target_workdir src N/A N/A safe_mkdir src_dir N/A go_dir N/A N/A N/A os path join target_workdir src go N/A N/A N/A os rename gen_dir go_dir N/A product_types N/A N/A cls N/A N/A N/A N/A go N/A classmethod execute_codegen N/A N/A self target target_workdir N/A N/A N/A N/A N/A self _generate_thrift target target_workdir N/A synthetic_target_dir N/A N/A self target target_workdir N/A N/A N/A all_sources N/A list N/A N/A target sources_relative_to_buildroot N/A source N/A all_sources N/A 0 N/A namespace N/A N/A self _get_go_namespace source N/A N/A N/A N/A os path join target_workdir src go N/A N/A namespace replace . N/A N/A os path sep N/A N/A