示例#1
0
        public static IEnumerable <ShowExpensiveCallsBulbAction> GetExpensiveCallsActions(IMethodDeclaration methodDeclaration)
        {
            // var incoming = new ShowExpensiveCallsBulbAction(methodDeclaration, ShowCallsType.INCOMING);
            var outgoing = new ShowExpensiveCallsBulbAction(methodDeclaration, ShowCallsType.OUTGOING);

            return(new[]
            {
                // incoming,
                outgoing
            });
        }
        protected override IEnumerable <BulbMenuItem> GetActions(IMethodDeclaration methodDeclaration, ITextControl textControl)
        {
            var actions = ShowExpensiveCallsBulbAction.GetExpensiveCallsActions(methodDeclaration);

            return(actions.ToMenuItems(textControl, Solution));
        }