[TIMOB-10643] CodeProcessor: Add code annotation capabilities
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-08-24T20:11:19.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Code Processor |
Labels | n/a |
Reporter | Ingo Muschenetz |
Assignee | Chris Barber |
Created | 2012-08-27T11:14:25.000+0000 |
Updated | 2017-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
We need a new AST parser that can preserve comments, which Uglify 1 doesn't do.
Note: this may or may not be done as this may not be either necessary or the best approach to solving this problem
Code processor is dead.
Closing ticket as code processor is no longer supported.