Beispiel #1
0
 /// <summary>
 /// Finds a custom function (a user defined function found in the parsed PHP code) by it's name
 /// </summary>
 /// <returns>The found custom function or null</returns>
 /// <param name="name">The name of the function to find.</param>
 public Function FindCustomFunctionByName(string name)
 {
     return(CustomFunctions.FirstOrDefault(x => x.Name == name) ??
            CustomFunctions.FirstOrDefault(x => x.Aliases.Any(y => y == name)));
 }