Пример #1
0
 /// <summary>
 /// Creates LuaCommandFilter singleton instance.
 /// </summary>
 /// <param name="languageService">The language service.</param>
 /// <returns></returns>
 public static LuaCommandFilter GetCommandFilter(LanguageService languageService)
 {
     lock (syncLock)
     {
         if (commandFilter == null)
             commandFilter = new LuaCommandFilter(languageService);
         return commandFilter;
     }
 }
Пример #2
0
 /// <summary>
 /// Creates LuaCommandFilter singleton instance.
 /// </summary>
 /// <param name="languageService">The language service.</param>
 /// <returns></returns>
 public static LuaCommandFilter GetCommandFilter(LanguageService languageService)
 {
     lock (syncLock)
     {
         if (commandFilter == null)
         {
             commandFilter = new LuaCommandFilter(languageService);
         }
         return(commandFilter);
     }
 }