summaryrefslogtreecommitdiffstats
path: root/o3d/plugin/o3d_binding.py
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 05:48:47 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 05:48:47 +0000
commit86968a095f38ed1d001c61b2d38ee29d91ece729 (patch)
tree3167f43828f52f0f4fb72e2ddb1955196cf80196 /o3d/plugin/o3d_binding.py
parent0b3ecdff064fee37b35adaad608427c13cd32ddd (diff)
downloadchromium_src-86968a095f38ed1d001c61b2d38ee29d91ece729.zip
chromium_src-86968a095f38ed1d001c61b2d38ee29d91ece729.tar.gz
chromium_src-86968a095f38ed1d001c61b2d38ee29d91ece729.tar.bz2
Adds a bunch of svn:ignore properties so that svn status
doesn't show stuff we don't care about. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/o3d_binding.py')
-rw-r--r--o3d/plugin/o3d_binding.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/o3d/plugin/o3d_binding.py b/o3d/plugin/o3d_binding.py
index 7d7490c..c0ae572 100644
--- a/o3d/plugin/o3d_binding.py
+++ b/o3d/plugin/o3d_binding.py
@@ -28,7 +28,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
"""o3d binding model module.
This module implements the glue functions for the o3d binding model, binding
@@ -300,6 +299,21 @@ def CppGetStatic(scope, type_defn, field):
cpp_utils.GetGetterName(field))
+def JSDocTypeString(type_defn):
+ """Gets the representation of a type in JSDoc notation.
+
+ Args:
+ type_defn: a Definition for the type.
+
+ Returns:
+ a string that is the JSDoc notation of type_defn.
+ """
+ type_defn = type_defn.GetFinalType()
+ type_stack = type_defn.GetParentScopeStack()
+ name = type_defn.name
+ return '!' + '.'.join([s.name for s in type_stack[1:]] + [name])
+
+
_binding_glue_header_template = string.Template('')