Chromium Code Reviews
DescriptionIDL compiler: Refactor attribute configuration from Python CG to Jinja template
Most of the attribute configuration is simple enough to compute in the
templates (via {% set %}), which avoids having to look back and forth
between the template and Python code to figure out what's going on.
This reduces the complexity of the CG, and puts the logic right where
it's actually being used.
setter_callback_name in the one exception -- it's complex and going
to get more complex when we support [PutForwards].
This also makes the naming clearer, as it's all lined up, and makes the
actual attribute line more legible without all the |attribute.| noise.
BUG=239771
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162078
Patch Set 1 #Patch Set 2 : Tweak #
Total comments: 7
Patch Set 3 : Revised #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||