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

Issue 9834088: Make json_schema_compiler resolve type names via resolution rules. (Closed)

Created:
8 years, 9 months ago by Garret Kelly
Modified:
8 years, 9 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Make json_schema_compiler resolve type names via resolution rules. Instead of sharing a single namespace internally for types, makes json_schema_compiler treat types as their fully-qualified selfs. This allows two different namespaces to have types with the same name, and to be able to reference the others' types by a fully-qualified name. This change also causes namespaces to not be added twice to their CppTypeGenerators. BUG=119954 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129251

Patch Set 1 #

Total comments: 2

Patch Set 2 : Naming fix type_ -> type_name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -5 lines) Patch
M tools/json_schema_compiler/compiler.py View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 4 chunks +30 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Garret Kelly
8 years, 9 months ago (2012-03-24 20:55:42 UTC) #1
miket_OOO
lgtm http://codereview.chromium.org/9834088/diff/1/tools/json_schema_compiler/cpp_type_generator.py File tools/json_schema_compiler/cpp_type_generator.py (right): http://codereview.chromium.org/9834088/diff/1/tools/json_schema_compiler/cpp_type_generator.py#newcode207 tools/json_schema_compiler/cpp_type_generator.py:207: for (type_, namespace) in self._type_namespaces.items(): This is probably ...
8 years, 9 months ago (2012-03-26 17:55:48 UTC) #2
asargent_no_longer_on_chrome
LGTM https://chromiumcodereview.appspot.com/9834088/diff/1/tools/json_schema_compiler/cpp_type_generator.py File tools/json_schema_compiler/cpp_type_generator.py (right): https://chromiumcodereview.appspot.com/9834088/diff/1/tools/json_schema_compiler/cpp_type_generator.py#newcode207 tools/json_schema_compiler/cpp_type_generator.py:207: for (type_, namespace) in self._type_namespaces.items(): On 2012/03/26 17:55:48, ...
8 years, 9 months ago (2012-03-26 18:30:06 UTC) #3
Garret Kelly
Yep, it's only files in this directory that seem to have used this naming convention. ...
8 years, 9 months ago (2012-03-26 18:43:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/9834088/5002
8 years, 9 months ago (2012-03-26 18:43:37 UTC) #5
Garret Kelly
Oops! Ran my git grep in the wrong place. It's _very_ rarely (4 instances) used ...
8 years, 9 months ago (2012-03-26 18:46:45 UTC) #6
commit-bot: I haz the power
Try job failure for 9834088-5002 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-26 21:57:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/9834088/5002
8 years, 9 months ago (2012-03-26 22:23:36 UTC) #8
commit-bot: I haz the power
Try job failure for 9834088-5002 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-27 01:47:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/9834088/5002
8 years, 9 months ago (2012-03-27 17:10:42 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-27 20:03:25 UTC) #11
Change committed as 129251

Powered by Google App Engine
This is Rietveld 408576698