diff options
author | DHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-17 19:28:46 +0000 |
---|---|---|
committer | DHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-17 19:28:46 +0000 |
commit | 9c7830ba58277583ca0907237b7ab50b7d671aec (patch) | |
tree | dbd7b0a1acf06a493bf9e0a4e0811ffe332c8900 /tools/json_schema_compiler | |
parent | d61d98831db9088a483689c1578f982565571ab2 (diff) | |
download | chromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.zip chromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.tar.gz chromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.tar.bz2 |
Add a deprecated annotation for api documentation.
Example Image: http://i.imgur.com/CNGWOVS.png
NOTRY=true
BUG=239196
Review URL: https://codereview.chromium.org/26231004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r-- | tools/json_schema_compiler/model.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py index 2fcb4df..cc876df 100644 --- a/tools/json_schema_compiler/model.py +++ b/tools/json_schema_compiler/model.py @@ -208,6 +208,7 @@ class Function(object): available to - |params| a list of parameters to the function (order matters). A separate parameter is used for each choice of a 'choices' parameter + - |deprecated| a reason and possible alternative for a deprecated function - |description| a description of the function (if provided) - |callback| the callback parameter to the function. There should be exactly one @@ -228,6 +229,7 @@ class Function(object): self.platforms = _GetPlatforms(json) self.params = [] self.description = json.get('description') + self.deprecated = json.get('deprecated') self.callback = None self.optional = json.get('optional', False) self.parent = parent |