in src/WorkerIndexingHelper.cs [156:172]
private static FunctionInformation CreateFunctionInformationFromFunctionAst(string powerShellFile, FunctionDefinitionAst potentialFunction)
{
FunctionInformation thisFunction = new FunctionInformation();
currentFunction = thisFunction;
thisFunction.Directory = new FileInfo(powerShellFile).Directory!.FullName;
thisFunction.ScriptFile = powerShellFile;
thisFunction.Name = potentialFunction.Name;
thisFunction.EntryPoint = potentialFunction.Name;
thisFunction.FunctionId = Guid.NewGuid().ToString();
ParamBlockAst paramBlock = (ParamBlockAst)potentialFunction.Find(x => x is ParamBlockAst, true);
ExtractBindings(thisFunction, paramBlock);
return thisFunction;
}