Class: Protobuf::Node::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/protobuf/compiler/nodes.rb

Instance Method Summary collapse

Instance Method Details

#accept_descriptor_visitor(visitor) ⇒ Object



17
18
# File 'lib/protobuf/compiler/nodes.rb', line 17

def accept_descriptor_visitor(visitor)
end

#accept_message_visitor(visitor) ⇒ Object



11
12
# File 'lib/protobuf/compiler/nodes.rb', line 11

def accept_message_visitor(visitor)
end

#accept_rpc_visitor(vistor) ⇒ Object



14
15
# File 'lib/protobuf/compiler/nodes.rb', line 14

def accept_rpc_visitor(vistor)
end

#define_in_the_file(visitor) ⇒ Object



7
8
9
# File 'lib/protobuf/compiler/nodes.rb', line 7

def define_in_the_file(visitor)
  visitor.write("defined_in __FILE__") if visitor.attach_proto?
end