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); }
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); }
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); }