Closed ChALkeR closed 8 years ago
+1 This (and the corresponding change in qmlweb) fixes parsing of a use-case I have that's setting a module-qualified attached property (e.g. ModuleQualifer.AttachedObject.property: "foo"
).
I'm not 100% convinced to be honest. Wouldn't it be better to create proper AST for the names? See #19 for an alternative approach, that creates proper AST.
Closing in favor of #19.
qmlobjdef
supported only two components, a different format was needed to support assignments likeDrag.hotSpot.x: width / 2
.Let's just use
qmlprop
withname = 'Drag.hotSpot.x'
for that, instead of defining a separate token type for properties with two components.Refs: https://github.com/qmlweb/qmlweb/pull/280
/cc @akreuzkamp