Beispiel #1
0
 private static ActionSymbolWithTypeCollection GetActionsFromGraphImpl(this ITypeSymbol graph, PXContext pxContext,
                                                                       bool includeActionsFromInheritanceChain)
 {
     if (includeActionsFromInheritanceChain)
     {
         return(graph.GetBaseTypesAndThis()
                .TakeWhile(baseGraph => !baseGraph.IsGraphBaseType())
                .Reverse()
                .SelectMany(baseGraph => baseGraph.GetActionsFromGraphOrGraphExtensionImpl(pxContext)));
     }
     else
     {
         return(graph.GetActionsFromGraphOrGraphExtensionImpl(pxContext));
     }
 }