OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 '--summary_detail_level', | 237 '--summary_detail_level', |
238 '3', | 238 '3', |
239 '--jscomp_error', | 239 '--jscomp_error', |
240 'visibility', | 240 'visibility', |
241 '--jscomp_warning', | 241 '--jscomp_warning', |
242 'missingOverride', | 242 'missingOverride', |
243 '--compilation_level', | 243 '--compilation_level', |
244 'SIMPLE_OPTIMIZATIONS', | 244 'SIMPLE_OPTIMIZATIONS', |
245 '--warning_level', | 245 '--warning_level', |
246 'VERBOSE', | 246 'VERBOSE', |
247 '--language_in=ES6_STRICT', | 247 '--language_in=ECMASCRIPT_NEXT', |
248 '--language_out=ES5_STRICT', | 248 '--language_out=ES5_STRICT', |
249 '--extra_annotation_name', | 249 '--extra_annotation_name', |
250 'suppressReceiverCheck', | 250 'suppressReceiverCheck', |
251 '--extra_annotation_name', | 251 '--extra_annotation_name', |
252 'suppressGlobalPropertiesCheck', | 252 'suppressGlobalPropertiesCheck', |
253 '--checks-only', | 253 '--checks-only', |
254 ] | 254 ] |
255 | 255 |
256 | 256 |
257 def check_conditional_dependencies(modules_by_name): | 257 def check_conditional_dependencies(modules_by_name): |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 shutil.rmtree(temp_devtools_path, True) | 371 shutil.rmtree(temp_devtools_path, True) |
372 | 372 |
373 if errors_found: | 373 if errors_found: |
374 print 'ERRORS DETECTED' | 374 print 'ERRORS DETECTED' |
375 sys.exit(1) | 375 sys.exit(1) |
376 print 'DONE - compiled without errors' | 376 print 'DONE - compiled without errors' |
377 | 377 |
378 | 378 |
379 if __name__ == "__main__": | 379 if __name__ == "__main__": |
380 main() | 380 main() |
OLD | NEW |