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

Unified Diff: third_party/WebKit/Source/build/scripts/name_utilities.py

Issue 2785013002: Add utility for joining names in generated code. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/name_utilities.py
diff --git a/third_party/WebKit/Source/build/scripts/name_utilities.py b/third_party/WebKit/Source/build/scripts/name_utilities.py
index ca3fa3aac820ae7fcef379af04a6c0a29e4d0b64..cd4dad7997dbf9d9a72829fe8c41cce744b164d8 100644
--- a/third_party/WebKit/Source/build/scripts/name_utilities.py
+++ b/third_party/WebKit/Source/build/scripts/name_utilities.py
@@ -153,3 +153,11 @@ def class_member_name(name):
def method_name(name):
return lower_camel_case(name)
+
+
+def join_name(*names):
+ """Given a list of names, join them into a single space-separated name."""
+ result = []
+ for name in names:
+ result.extend(split_name(name))
+ return ' '.join(result)
Bugs Nash 2017/03/30 01:39:34 why is the result space separated? wouldn't that b
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698