Chromium Code Reviews
DescriptionIDL: Avoid global variables in compute_interfaces_info_individual.py
compute_interfaces_info_individual has global variables. These variables
are updated each time we call compute_info_individual(). This could be
a problem when we want to call compute_info_individual() for separate
components in the same process. Such cases could happen in
run-bindings-test when we add union types collection in
compute_info_individual(). We would want to collect all union types
which are used by IDL files under Source/bindings/test/idls, but we
don't want to collect them for IDL files under Source/{core,modules}.
This CL introduces a class and moves global variables into the class
as instance variables.
This CL doesn't change generated bindings code at this moment.
BUG=425916
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184314
Patch Set 1 : #
Total comments: 4
Patch Set 2 : #Patch Set 3 : Don't use cache #
Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||