public CompletionCache(ASContext context, MemberList elements) { if (context.CurrentModel == null) { Package = ""; Classname = ""; } else { Package = context.CurrentModel.Package; Classname = context.CurrentModel.GetPublicClass().Name; } AllTypes = null; Elements = elements; Keywords = GetKeywords(); }
/// <summary> /// Init completion engine context /// </summary> /// <param name="mainForm">Reference to MainForm</param> static internal void GlobalInit(PluginMain pluginMain) { dirSeparatorChar = Path.DirectorySeparatorChar; dirSeparator = dirSeparatorChar.ToString(); dirAltSeparatorChar = Path.AltDirectorySeparatorChar; dirAltSeparator = dirAltSeparatorChar.ToString(); doPathNormalization = (dirSeparator != dirAltSeparator); // language contexts plugin = pluginMain; validContexts = new List<IASContext>(); context = null; try { context = defaultContext = new ASContext(); } catch(Exception ex) { ErrorManager.ShowError(ex); } }
public HaxeCompletionCache(ASContext context, MemberList elements, MemberList otherElements) : base(context, elements) { OtherElements = otherElements; }