Searched refs:ProtoNode (Results 1 – 5 of 5) sorted by relevance
/external/pigweed/pw_protobuf/py/pw_protobuf/ |
D | proto_tree.py | 28 class ProtoNode(abc.ABC): class 192 class ProtoPackage(ProtoNode): 194 def type(self) -> ProtoNode.Type: 195 return ProtoNode.Type.PACKAGE 197 def _supports_child(self, child: ProtoNode) -> bool: argument 201 class ProtoEnum(ProtoNode): 207 def type(self) -> ProtoNode.Type: 208 return ProtoNode.Type.ENUM 216 def _supports_child(self, child: ProtoNode) -> bool: argument 221 class ProtoMessage(ProtoNode): [all …]
|
D | codegen_pwpb.py | 27 from pw_protobuf.proto_tree import ProtoNode 50 scope: ProtoNode, argument 51 root: ProtoNode, argument 60 self._scope: ProtoNode = scope 61 self._root: ProtoNode = root 510 def generate_code_for_message(message: ProtoMessage, root: ProtoNode, argument 513 assert message.type() == ProtoNode.Type.MESSAGE 553 def define_not_in_class_methods(message: ProtoMessage, root: ProtoNode, argument 556 assert message.type() == ProtoNode.Type.MESSAGE 576 def generate_code_for_enum(enum: ProtoEnum, root: ProtoNode, argument [all …]
|
/external/pigweed/pw_rpc/py/pw_rpc/ |
D | codegen.py | 22 from pw_protobuf.proto_tree import ProtoNode, ProtoService, ProtoServiceMethod 41 ServiceGenerator = Callable[[ProtoService, ProtoNode, OutputFile], None] 42 IncludesGenerator = Callable[[Any, ProtoNode], Iterable[str]] 45 def package(file_descriptor_proto, proto_package: ProtoNode, argument 49 assert proto_package.type() == ProtoNode.Type.PACKAGE 81 if node.type() == ProtoNode.Type.SERVICE: 89 def service_class(service: ProtoService, root: ProtoNode, output: OutputFile, argument 232 def package_stubs(proto_package: ProtoNode, output: OutputFile, argument 247 if node.type() == ProtoNode.Type.SERVICE
|
D | codegen_raw.py | 20 from pw_protobuf.proto_tree import ProtoNode, ProtoService, ProtoServiceMethod 58 unused_root: ProtoNode, argument 64 def _generate_code_for_service(service: ProtoService, root: ProtoNode, argument 71 def _generate_code_for_package(proto_file, package: ProtoNode, argument
|
D | codegen_nanopb.py | 20 from pw_protobuf.proto_tree import ProtoNode, ProtoService, ProtoServiceMethod 66 def _generate_code_for_service(service: ProtoService, root: ProtoNode, argument 112 def _generate_code_for_client(service: ProtoService, root: ProtoNode, argument 147 def includes(proto_file, unused_package: ProtoNode) -> Iterator[str]: argument 158 def _generate_code_for_package(proto_file, package: ProtoNode, argument
|