コード例 #1
0
 public Args(ISledLanguagePlugin plugin, IEnumerable <SledProjectFilesFileType> files, object userData, SledSyntaxCheckerFilesCheckDelegate func)
 {
     Plugin   = plugin;
     Files    = new List <SledProjectFilesFileType>(files);
     UserData = userData;
     Function = func;
 }
コード例 #2
0
        /// <summary>
        /// Register a syntax checking function with a particular language plugin and allow optional user data
        /// </summary>
        /// <param name="plugin">Plugin</param>
        /// <param name="func">Multi-thread safe syntax checking function</param>
        /// <param name="userData">Optional userdata</param>
        public void RegisterFilesCheckFunction(ISledLanguagePlugin plugin, SledSyntaxCheckerFilesCheckDelegate func, object userData)
        {
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }

            if (func == null)
            {
                throw new ArgumentNullException("func");
            }

            if (m_dictFileCheckFuncs.ContainsKey(plugin))
            {
                return;
            }

            m_dictFileCheckFuncs.Add(plugin, new Pair <SledSyntaxCheckerFilesCheckDelegate, object>(func, userData));
        }
コード例 #3
0
 public Args(ISledLanguagePlugin plugin, IEnumerable<SledProjectFilesFileType> files, object userData, SledSyntaxCheckerFilesCheckDelegate func)
 {
     Plugin = plugin;
     Files = new List<SledProjectFilesFileType>(files);
     UserData = userData;
     Function = func;
 }
コード例 #4
0
        /// <summary>
        /// Register a syntax checking function with a particular language plugin and allow optional user data
        /// </summary>
        /// <param name="plugin">Plugin</param>
        /// <param name="func">Multi-thread safe syntax checking function</param>
        /// <param name="userData">Optional userdata</param>
        public void RegisterFilesCheckFunction(ISledLanguagePlugin plugin, SledSyntaxCheckerFilesCheckDelegate func, object userData)
        {
            if (plugin == null)
                throw new ArgumentNullException("plugin");

            if (func == null)
                throw new ArgumentNullException("func");

            if (m_dictFileCheckFuncs.ContainsKey(plugin))
                return;

            m_dictFileCheckFuncs.Add(plugin, new Pair<SledSyntaxCheckerFilesCheckDelegate, object>(func, userData));
        }