Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Side by Side Diff: tools/dom/dom.py

Issue 19475003: Update dom script with analyzer changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # A script which makes it easy to execute common DOM-related tasks 7 # A script which makes it easy to execute common DOM-related tasks
8 8
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 22 matching lines...) Expand all
33 '\n' 33 '\n'
34 'Or re-generate DOM classes and run the Dart analyzer:\n' 34 'Or re-generate DOM classes and run the Dart analyzer:\n'
35 ' dom.py gen analyze\n') 35 ' dom.py gen analyze\n')
36 print('Commands: ') 36 print('Commands: ')
37 for cmd in sorted(commands.keys()): 37 for cmd in sorted(commands.keys()):
38 print('\t%s - %s' % (cmd, commands[cmd][1])) 38 print('\t%s - %s' % (cmd, commands[cmd][1]))
39 39
40 def analyze(): 40 def analyze():
41 ''' Runs the dart analyzer. ''' 41 ''' Runs the dart analyzer. '''
42 return call([ 42 return call([
43 os.path.join(dart_out_dir, 'dart-sdk', 'bin', 'dart_analyzer'), 43 os.path.join(dart_out_dir, 'dart-sdk', 'bin', 'dartanalyzer'),
44 os.path.join('tests', 'html', 'element_test.dart'), 44 os.path.join('tests', 'html', 'element_test.dart'),
45 '--dart-sdk', 'sdk', 45 '--dart-sdk=sdk',
46 '--show-sdk-warnings', 46 '--show-package-warnings',
47 ]) 47 ])
48 48
49 def build(): 49 def build():
50 ''' Builds the Dart binary ''' 50 ''' Builds the Dart binary '''
51 return call([ 51 return call([
52 os.path.join('tools', 'build.py'), 52 os.path.join('tools', 'build.py'),
53 '--mode=release', 53 '--mode=release',
54 '--arch=ia32', 54 '--arch=ia32',
55 'runtime', 55 'runtime',
56 ]) 56 ])
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 help(); 209 help();
210 success = False 210 success = False
211 break 211 break
212 returncode = commands[command][0]() 212 returncode = commands[command][0]()
213 success = success and not bool(returncode) 213 success = success and not bool(returncode)
214 214
215 sys.exit(not success) 215 sys.exit(not success)
216 216
217 if __name__ == '__main__': 217 if __name__ == '__main__':
218 main() 218 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698