Closed Bug 660351 Opened 13 years ago Closed 12 years ago

[l20n] Separate object referencing and attribute referencing expression

Categories

(Core :: Internationalization, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: zbraniecki, Assigned: zbraniecki)

Details

Attachments

(1 file)

Historically we had no way to separate object value properties expression and entity attribute expressions.

I decided to separate them using the following notion:

object value property expression:
 - computed: identifier[property]
 - not computed: identifier.property

entity attribute expression:

 - computed: identifier[.property]
 - not computed: identifier..property

I'm going to attach a patch against silme AST and parser that shows the proposed changes.
Assignee: smontagu → gandalf
OS: Mac OS X → All
Attached patch patchSplinter Review
requesting feedback from Axel.

I'm changing the way Idref works (removing multipart Idrefs in favor of nested Indexes)

I'm reusing the AST model from JS with their MemberExpressions with computed property.
Despite allowing for nested combinations (obj..attr.prop or obj[.obj2..attr2]) it also gives serializer ability to recognize the way ObjectIndex is being used depending on it's computed value.
Attachment #535755 - Flags: feedback?(l10n)
Attachment #535755 - Attachment is patch: true
Attachment #535755 - Attachment mime type: text/x-patch → text/plain
Attachment #535755 - Flags: feedback?(l10n)
fixed long ago in the l20n python tree
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: