private void LuaVariableParserServiceParsedFile(object sender, SledLuaVariableParserServiceEventArgs e)
        {
            var luaFunctions = e.Results
                               .Where(r => r.Is <SledLuaVariableParserService.FunctionResult>())
                               .Select(
                result =>
            {
                var funcResult = result.As <SledLuaVariableParserService.FunctionResult>();

                var function =
                    new DomNode(SledLuaSchema.SledLuaFunctionType.Type)
                    .As <SledLuaFunctionType>();

                function.Name            = funcResult.Name;
                function.LineDefined     = funcResult.LineDefined;
                function.LastLineDefined = funcResult.LastLineDefined;

                return(function);
            })
                               .ToList();

            // Add new entries for this file
            m_dictFuncInfo.Add(e.File, luaFunctions);

            // Add Lua functions to this file
            foreach (var luaFunction in luaFunctions)
            {
                e.File.Functions.Add(luaFunction);
            }

            ParsedFunctions.Raise(
                this,
                new SledLuaFunctionParserServiceEventArgs(e.File, luaFunctions));
        }
        private void LuaVariableParserServiceParsingFile(object sender, SledLuaVariableParserServiceEventArgs e)
        {
            // Remove existing entries for this file
            m_dictFuncInfo.Remove(e.File);

            var funcsToRemove = e.File.Functions
                                .Where(f => f.Is <SledLuaFunctionType>())
                                .ToList();

            // Remove Lua functions from this file
            foreach (var funcToRemove in funcsToRemove)
            {
                e.File.Functions.Remove(funcToRemove);
            }
        }
        private void LuaVariableParserServiceParsedFile(object sender, SledLuaVariableParserServiceEventArgs e)
        {
            var luaFunctions = e.Results
                .Where(r => r.Is<SledLuaVariableParserService.FunctionResult>())
                .Select(
                    result =>
                    {
                        var funcResult = result.As<SledLuaVariableParserService.FunctionResult>();

                        var function =
                            new DomNode(SledLuaSchema.SledLuaFunctionType.Type)
                            .As<SledLuaFunctionType>();

                        function.Name = funcResult.Name;
                        function.LineDefined = funcResult.LineDefined;
                        function.LastLineDefined = funcResult.LastLineDefined;

                        return function;
                    })
                .ToList();

            // Add new entries for this file
            m_dictFuncInfo.Add(e.File, luaFunctions);

            // Add Lua functions to this file
            foreach (var luaFunction in luaFunctions)
                e.File.Functions.Add(luaFunction);

            ParsedFunctions.Raise(
                this,
                new SledLuaFunctionParserServiceEventArgs(e.File, luaFunctions));
        }
        private void LuaVariableParserServiceParsingFile(object sender, SledLuaVariableParserServiceEventArgs e)
        {
            // Remove existing entries for this file
            m_dictFuncInfo.Remove(e.File);
            
            var funcsToRemove = e.File.Functions
                .Where(f => f.Is<SledLuaFunctionType>())
                .ToList();

            // Remove Lua functions from this file
            foreach (var funcToRemove in funcsToRemove)
                e.File.Functions.Remove(funcToRemove);
        }