parameters: (self, node)
return_statement: return -1
docstring: What is the stream index for node? 0..n-1
          Return -1 if node not found.
docstring_summary: What is the stream index for node? 0..n-1
          Return -1 if node not found.
docstring_tokens: What is the stream index for node? 0 .. n - 1 Return - 1 if node not found .
function: def getNodeIndex(self, node):
          """What is the stream index for node? 0..n-1
          Return -1 if node not found.
          """
          
          if self.p == -1:
              self.fillBuffer()
  
          for i, t in enumerate(self.nodes):
              if t == node:
                  return i
  
          return -1
function_tokens: def getNodeIndex ( self , node ) : if self . p == - 1 : self . fillBuffer ( ) for i , t in enumerate ( self . nodes ) : if t == node : return i return - 1