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

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/compile_frontend.py

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/viewContainers.css ('k') | 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/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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 injected_script_externs_file = path.join(v8_inspector_path, 'injected_script_ext erns.js') 80 injected_script_externs_file = path.join(v8_inspector_path, 'injected_script_ext erns.js')
81 debugger_script_source_name = path.join(v8_inspector_path, 'DebuggerScript.js') 81 debugger_script_source_name = path.join(v8_inspector_path, 'DebuggerScript.js')
82 debugger_script_externs_file = path.join(v8_inspector_path, 'debugger_script_ext erns.js') 82 debugger_script_externs_file = path.join(v8_inspector_path, 'debugger_script_ext erns.js')
83 83
84 jsmodule_name_prefix = 'jsmodule_' 84 jsmodule_name_prefix = 'jsmodule_'
85 runtime_module_name = '_runtime' 85 runtime_module_name = '_runtime'
86 86
87 type_checked_jsdoc_tags_list = ['param', 'return', 'type', 'enum'] 87 type_checked_jsdoc_tags_list = ['param', 'return', 'type', 'enum']
88 type_checked_jsdoc_tags_or = '|'.join(type_checked_jsdoc_tags_list) 88 type_checked_jsdoc_tags_or = '|'.join(type_checked_jsdoc_tags_list)
89 89
90 # Basic regex for invalid JsDoc types: an object type name ([A-Z][A-Za-z0-9.]+[A -Za-z0-9]) not preceded by '!', '?', ':' (this, new), or '.' (object property). 90 # Basic regex for invalid JsDoc types: an object type name ([A-Z][_A-Za-z0-9.]+[ A-Za-z0-9]) not preceded by '!', '?', ':' (this, new), or '.' (object property).
91 invalid_type_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*\{. *(?<![!?:.A-Za-z0-9])([A-Z][A-Za-z0-9.]+[A-Za-z0-9])[^/]*\}') 91 invalid_type_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*\{. *(?<![!?:._A-Za-z0-9])([A-Z][_A-Za-z0-9.]+[A-Za-z0-9])[^/]*\}')
92 invalid_type_designator_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*.*(?<![{: ])([?!])=?\}') 92 invalid_type_designator_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*.*(?<![{: ])([?!])=?\}')
93 invalid_non_object_type_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*\{.*(![a-z]+)[^/]*\}') 93 invalid_non_object_type_regex = re.compile(r'@(?:' + type_checked_jsdoc_tags_or + r')\s*\{.*(![a-z]+)[^/]*\}')
94 error_warning_regex = re.compile(r'WARNING|ERROR') 94 error_warning_regex = re.compile(r'WARNING|ERROR')
95 loaded_css_regex = re.compile(r'(?:registerRequiredCSS|WebInspector\.View\.creat eStyleElement)\s*\(\s*"(.+)"\s*\)') 95 loaded_css_regex = re.compile(r'(?:registerRequiredCSS|WebInspector\.View\.creat eStyleElement)\s*\(\s*"(.+)"\s*\)')
96 96
97 java_build_regex = re.compile(r'^\w+ version "(\d+)\.(\d+)') 97 java_build_regex = re.compile(r'^\w+ version "(\d+)\.(\d+)')
98 errors_found = False 98 errors_found = False
99 99
100 generate_protocol_externs.generate_protocol_externs(protocol_externs_file, path. join(inspector_path, 'browser_protocol.json'), path.join(v8_inspector_path, 'js_ protocol.json')) 100 generate_protocol_externs.generate_protocol_externs(protocol_externs_file, path. join(inspector_path, 'browser_protocol.json'), path.join(v8_inspector_path, 'js_ protocol.json'))
101 101
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 print 'Validate InjectedScriptSource.js output:%s' % os.linesep, (validateInject edScriptOut if validateInjectedScriptOut else '<empty>') 516 print 'Validate InjectedScriptSource.js output:%s' % os.linesep, (validateInject edScriptOut if validateInjectedScriptOut else '<empty>')
517 errors_found |= hasErrors(validateInjectedScriptOut) 517 errors_found |= hasErrors(validateInjectedScriptOut)
518 518
519 if errors_found: 519 if errors_found:
520 print 'ERRORS DETECTED' 520 print 'ERRORS DETECTED'
521 521
522 os.remove(injectedScriptSourceTmpFile) 522 os.remove(injectedScriptSourceTmpFile)
523 os.remove(compiler_args_file.name) 523 os.remove(compiler_args_file.name)
524 os.remove(protocol_externs_file) 524 os.remove(protocol_externs_file)
525 shutil.rmtree(modules_dir, True) 525 shutil.rmtree(modules_dir, True)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/viewContainers.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698