Example #1
0
 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();
 }
Example #2
0
        /// <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);
            }
        }
Example #3
0
 public HaxeCompletionCache(ASContext context, MemberList elements, MemberList otherElements)
     : base(context, elements)
 {
     OtherElements = otherElements;
 }