Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10643] CodeProcessor: Add code annotation capabilities

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T20:11:19.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsCode Processor
Labelsn/a
ReporterIngo Muschenetz
AssigneeChris Barber
Created2012-08-27T11:14:25.000+0000
Updated2017-03-20T17:26:30.000+0000

Description

We should add the ability to add annotations for the code processor in code similar to how JSHint interprets /*global foo*/ There are a few key features we need to support: * Whether or not the file should be evaluated in ambiguous mode if it's not processed ** If it should be evaluated as a require or a Ti.include ** Conditionals (e.g. should only be evaluated if on Android) * Perhaps add hints for values being passed in to delayed functions (e.g. event handlers) * Ability to suppress warnings

Comments

  1. Bryan Hughes 2013-01-03

    We need a new AST parser that can preserve comments, which Uglify 1 doesn't do.
  2. Bryan Hughes 2013-02-08

    Note: this may or may not be done as this may not be either necessary or the best approach to solving this problem
  3. Chris Barber 2016-08-24

    Code processor is dead.
  4. Lee Morris 2017-03-20

    Closing ticket as code processor is no longer supported.

JSON Source