Exemplo n.º 1
0
        public SMDefinition ProduceTemporaryExpandedDefinition(SMDefinition[] definitions)
        {
            SMDefinition def = new SMDefinition();

            def.MergeDefinitions(this);
            foreach (var definition in definitions)
            {
                if (definition != null)
                {
                    def.MergeDefinitions(definition);
                }
            }

            def.Sort();
            def.ProduceStringArrays();
            return(def);
        }
Exemplo n.º 2
0
        public SMDefinition ProduceTemporaryExpandedDefinition(SMDefinition[] definitions, int caret,
                                                               List <SMFunction> currentFunctions)
        {
            var def = new SMDefinition();

            def.MergeDefinitions(this);
            foreach (var definition in definitions)
            {
                if (definition != null)
                {
                    def.MergeDefinitions(definition);
                }
            }

            def.Sort();
            def.ProduceStringArrays(caret, currentFunctions);
            return(def);
        }
Exemplo n.º 3
0
        public SMDefinition ProduceTemporaryExpandedDefinition(SMDefinition[] definitions)
        {
            SMDefinition def = new SMDefinition();

            try
            {
                def.MergeDefinitions(this);
                for (int i = 0; i < definitions.Length; ++i)
                {
                    if (definitions[i] != null)
                    {
                        def.MergeDefinitions(definitions[i]);
                    }
                }
                def.Sort();
                def.ProduceStringArrays();
            } catch (Exception) { }
            return(def);
        }