Home | History | Annotate | Download | only in Docs

Lines Matching defs:function

24 # STATE_INITIAL: looking for rpc or function defintion
26 # STATE_FUNCTION_DECORATOR: in the middle of a multi-line function definition
27 # STATE_COMPLETE: done parsing a function
42 # RE to match a function definition and extract out the function name.
46 class Function(object):
47 """Represents a RPC-exported function."""
50 """Constructs a function object given its RPC and function signature."""
71 """Parse function definition."""
89 def function(self):
147 # Multi-line function definition
167 # Done with function definition
170 # Multi-line function definition
174 """Store a function definition from the current parse state."""
177 f = Function(self._current_rpc, self._current_function)
178 if f.function:
201 (func.function, func.function.lower()))
207 f.write('## %s\n\n' % func.function)