diff --git a/analyzer2/Reader.js b/analyzer2/Reader.js index 77b8a81..d5187ca 100644 --- a/analyzer2/Reader.js +++ b/analyzer2/Reader.js @@ -23,6 +23,34 @@ enyo.kind({ }); }, fileLoaded: function(inFile, inCode, xhr) { + var code = inCode; + var comment = ""; + + if(inFile.path.search("onyx") != 1 || inFile.path.search("layout") != 1){ + inCode = ""; + for (var l = 0; l <= code.length; l++ ){ + if(code.charAt(l) === "/" && code.charAt(l+1) === "*"){ + for (l ; l <= code.length; l++ ){ + comment = comment + code.charAt(l); // comment stirng built here + if(code.charAt(l) === "*" && code.charAt(l+1) === "/"){ // stop strip here if we find */ + comment = comment + code.charAt(l) + code.charAt( l+ 1); // add the last two char of the comment + l++; + + if (comment.search("@lends") != -1){ + comment = comment + "/n"; // add a new line to end of comment here + }else{ + inCode = inCode + comment; + comment = ""; + } + break; + } + } + }else{ + inCode = inCode + code.charAt(l); + } + } + } + if (xhr.status >= 200 && xhr.status < 300) { this.addFile(inFile, inCode); } diff --git a/project.json b/project.json new file mode 100644 index 0000000..203b04e --- /dev/null +++ b/project.json @@ -0,0 +1,107 @@ +{ + "id": "com.examples.apps.myapp", + "name": "extra", + "version": "0.0.1", + "title": "Example: My Application", + "description": "My application description...", + "author": { + "name": "An Example Company", + "href": "http://www.example.com" + }, + "providers": { + "phonegap": { + "enabled": false, + "autoGenerateXML": true, + "minification": true, + "features": { + "battery": false, + "camera": false, + "contact": false, + "file": false, + "geolocation": false, + "media": false, + "network": false, + "notification": false, + "device": false + }, + "preferences": { + "phonegap-version": "3.1.0", + "orientation": "both", + "target-device": "universal", + "fullscreen": "false", + "android-installLocation": "internalOnly", + "android-minSdkVersion": "7", + "android-targetSdkVersion": "None", + "android-maxSdkVersion": "None", + "android-windowSoftInputMode": "stateVisible", + "splash-screen-duration": "5000", + "load-url-timeout": "20000", + "webviewbounce": "true", + "prerendered-icon": "false", + "ios-statusbarstyle": "black-opaque", + "detect-data-types": "true", + "exit-on-suspend": "false", + "show-splash-screen-spinner": "false", + "auto-hide-splash-screen": "true", + "disable-cursor": "false" + }, + "icon": { + "sharedConfiguration": { + "src": "", + "role": "default" + }, + "android": { + "src": "", + "density": "" + }, + "ios": { + "src": "", + "height": "", + "width": "" + }, + "winphone": { + "src": "" + }, + "blackberry": { + "src": "" + }, + "webos": { + "src": "" + } + }, + "splashScreen": { + "sharedConfiguration": { + "src": "", + "role": "default" + }, + "android": { + "src": "", + "density": "" + }, + "ios": { + "src": "", + "height": "", + "width": "" + }, + "winphone": { + "src": "" + }, + "blackberry": { + "src": "" + }, + "webos": { + "src": "" + } + }, + "plugins": {}, + "access": { + "origin": "" + }, + "targets": {}, + "appId": "" + } + }, + "preview": { + "top_file": "/debug.html" + } +} \ No newline at end of file