Пример #1
0
        protected IEnumerable <TextEditorPopupItem> CreatePopupInstanceFunctions(string conceptName, CodeScope scope)
        {
            NativeXConceptDeclaration concept = scope.Find(conceptName) as NativeXConceptDeclaration;

            if (concept != null && concept.Functions != null && concept.Functions.Count > 0)
            {
                Bitmap functionImage = Images.Function;
                var    members       = concept.Functions
                                       .Select(f => new TextEditorPopupItem()
                {
                    Image = functionImage,
                    Text  = f.Name
                });
                return(members);
            }
            return(new TextEditorPopupItem[] { });
        }