Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14989

Code Processor: Investigate efficacy of multi-pass analysis

    Details

    • Sprint:
      2013 Sprint 18

      Description

      To aid in increasing the accuracy of the code processor, a multi-pass mechanism could be implemented that will attempt to determine all of the functions in the project and where they are called from. This information will be fed into the final pass, which is the current implementation of the code processor. This information should help greatly in solving the following:

      function a() {
      	console.log('hi');
      }
       
      function b() {
      	console.log('world');
      }
       
      if (platform =='iphone') {
      	a();
      } else {
      	b();
      }
      

      which currently reports less than 100% coverage because either a or b will be unvisited. The information from the previous passes can be fed into the code processor so we can determine that b was called from the skipped block, and thus we can mark it as skipped.

        Attachments

          Activity

            People

            • Assignee:
              mlangston Matt Langston
              Reporter:
              ingo Ingo Muschenetz
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17299
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code