import { getBody , getDefinition , getFunctionName , parseParameters , tokenizeDefinition } from "." ; import { DocstringParts } from "../docstring_parts" ; export function parse ( document , positionLine ) { const definition = getDefinition ( document , positionLine ) ; const body = getBody ( document , positionLine ) ; const parameterTokens = tokenizeDefinition ( definition ) ; const functionName = getFunctionName ( definition ) ; return parseParameters ( parameterTokens , body , functionName ) ; }