Exemple #1
0
 private void OnLocalFunction(IFunctionStream functionStream)
 {
     try
     {
         functionStream.AdvanceToNextFunction();
     }
     catch (CCCParserSuccessException info)
     {
         OnFunction(info.Function, info.StreamOffset, functionStream);
     }
 }
Exemple #2
0
        public void Analyze()
        {
            try
            {
                IFunctionStream functionFinder = CreateFunctionStream(this.parser, this.filename, this.suppressMethodSignatures);

                while (true)
                {
                    try
                    {
                        functionFinder.AdvanceToNextFunction(); // will throw CCCParserSuccessException when it finds a function
                    }
                    catch (CCCParserSuccessException info)
                    {
                        OnFunction(info.Function, info.StreamOffset, functionFinder);
                    }
                }
            }
            catch (EndOfStreamException)
            {
                // we are done!
            }
        }
Exemple #3
0
 private void OnLocalFunction(IFunctionStream functionStream)
 {
     try
       {
     functionStream.AdvanceToNextFunction();
       }
       catch (CCCParserSuccessException info)
       {
     OnFunction(info.Function, info.StreamOffset, functionStream);
       }
 }