| OLD | NEW |
| 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
| 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
| 5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
| 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
| 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } else { | 100 } else { |
| 101 $code .= $content; | 101 $code .= $content; |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 $code .= $footer . "\n" if $footer; | 104 $code .= $footer . "\n" if $footer; |
| 105 $code .= "/* END " . $object->{name} . " */\n" if $verbose; | 105 $code .= "/* END " . $object->{name} . " */\n" if $verbose; |
| 106 return $code; | 106 return $code; |
| 107 } | 107 } |
| 108 | 108 |
| 109 | 109 |
| 110 package deprecated_code_generator_v8; | 110 package code_generator_v8; |
| 111 | 111 |
| 112 use strict; | 112 use strict; |
| 113 use Cwd; | 113 use Cwd; |
| 114 use File::Basename; | 114 use File::Basename; |
| 115 use File::Find; | 115 use File::Find; |
| 116 use File::Spec; | 116 use File::Spec; |
| 117 | 117 |
| 118 my $idlDocument; | 118 my $idlDocument; |
| 119 my $idlDirectories; | 119 my $idlDirectories; |
| 120 my $preprocessor; | 120 my $preprocessor; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 return $cachedInterfaces->{$interfaceName}; | 297 return $cachedInterfaces->{$interfaceName}; |
| 298 } | 298 } |
| 299 | 299 |
| 300 # Step #1: Find the IDL file associated with 'interface' | 300 # Step #1: Find the IDL file associated with 'interface' |
| 301 my $filename = IDLFileForInterface($interfaceName) | 301 my $filename = IDLFileForInterface($interfaceName) |
| 302 or die("Could NOT find IDL file for interface \"$interfaceName\" $!\n"); | 302 or die("Could NOT find IDL file for interface \"$interfaceName\" $!\n"); |
| 303 | 303 |
| 304 print " | |> Parsing parent IDL \"$filename\" for interface \"$interfaceN
ame\"\n" if $verbose; | 304 print " | |> Parsing parent IDL \"$filename\" for interface \"$interfaceN
ame\"\n" if $verbose; |
| 305 | 305 |
| 306 # Step #2: Parse the found IDL file (in quiet mode). | 306 # Step #2: Parse the found IDL file (in quiet mode). |
| 307 my $parser = deprecated_idl_parser->new(1); | 307 my $parser = idl_parser->new(1); |
| 308 my $document = $parser->Parse($filename, $preprocessor); | 308 my $document = $parser->Parse($filename, $preprocessor); |
| 309 | 309 |
| 310 foreach my $interface (@{$document->interfaces}) { | 310 foreach my $interface (@{$document->interfaces}) { |
| 311 if ($interface->name eq $interfaceName or $interface->isPartial) { | 311 if ($interface->name eq $interfaceName or $interface->isPartial) { |
| 312 $cachedInterfaces->{$interfaceName} = $interface; | 312 $cachedInterfaces->{$interfaceName} = $interface; |
| 313 return $interface; | 313 return $interface; |
| 314 } | 314 } |
| 315 } | 315 } |
| 316 | 316 |
| 317 die("Could NOT find interface definition for $interfaceName in $filename"); | 317 die("Could NOT find interface definition for $interfaceName in $filename"); |
| (...skipping 5706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6024 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6024 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
| 6025 $found = 1; | 6025 $found = 1; |
| 6026 } | 6026 } |
| 6027 return 1 if $found; | 6027 return 1 if $found; |
| 6028 }, 0); | 6028 }, 0); |
| 6029 | 6029 |
| 6030 return $found; | 6030 return $found; |
| 6031 } | 6031 } |
| 6032 | 6032 |
| 6033 1; | 6033 1; |
| OLD | NEW |