def getSnippetsByFileName(fileName, functionName):
 fileText = archive.getFileText(fileName)
 snippets = []
 functionStart = functionName[:(functionName.find('(') + 1)]
 tokenEnd = getTokenEnd(0, fileText, functionStart)
 while (tokenEnd != (-1)):
  snippet = Snippet(tokenEnd, fileText)
  snippets.append(snippet)
  tokenEnd = getTokenEnd(snippet.characterIndex, fileText, functionStart)
 return snippets

def getSnippetsByFileName ( fileName , functionName ) : fileText = archive . getFileText ( fileName ) snippets = [ ] functionStart = functionName [ : ( functionName . find ( '(' ) + 1 ) ] tokenEnd = getTokenEnd ( 0 , fileText , functionStart ) while ( tokenEnd != ( - 1 ) ) : snippet = Snippet ( tokenEnd , fileText ) snippets . append ( snippet ) tokenEnd = getTokenEnd ( snippet . characterIndex , fileText , functionStart ) return snippets
get the function signature snippets by the file name .