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

Side by Side Diff: Source/bindings/scripts/idl_types.py

Issue 390223004: initialize result variables in v8 bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixups for jens Created 6 years, 5 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 | « no previous file | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 """IDL type handling. 4 """IDL type handling.
5 5
6 Classes: 6 Classes:
7 IdlType 7 IdlType
8 IdlUnionType 8 IdlUnionType
9 """ 9 """
10 10
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 @property 315 @property
316 def is_numeric_type(self): 316 def is_numeric_type(self):
317 return False 317 return False
318 318
319 @property 319 @property
320 def is_primitivee_type(self): 320 def is_primitivee_type(self):
321 return False 321 return False
322 322
323 @property 323 @property
324 def is_string_type(self):
325 return False
326
327 @property
324 def is_sequence(self): 328 def is_sequence(self):
325 # We do not support sequences of union types 329 # We do not support sequences of union types
326 return False 330 return False
327 331
328 @property 332 @property
329 def is_union_type(self): 333 def is_union_type(self):
330 return True 334 return True
331 335
332 @property 336 @property
333 def may_raise_exception_on_conversion(self): 337 def may_raise_exception_on_conversion(self):
334 return False 338 return False
335 339
336 @property 340 @property
337 def name(self): 341 def name(self):
338 return 'Or'.join(member_type.name for member_type in self.member_types) 342 return 'Or'.join(member_type.name for member_type in self.member_types)
339 343
340 def resolve_typedefs(self, typedefs): 344 def resolve_typedefs(self, typedefs):
341 self.member_types = [ 345 self.member_types = [
342 typedefs.get(member_type, member_type) 346 typedefs.get(member_type, member_type)
343 for member_type in self.member_types] 347 for member_type in self.member_types]
344 return self 348 return self
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698