/Engine/Source/Editor/BlueprintGraph/Classes/EdGraphSchema_K2.h
Add the specified flags to the function entry node of the graph, to make sure they get compiled in to the generated function
void AddExtraFunctionFlags ( const [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * CurrentGraph, int32 ExtraFlags ) const