Closed Bug 884744 Opened 13 years ago Closed 13 years ago

Remove CallExpression as a left-leaf of AttributeExpression

Categories

(L20n :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Assigned: zbraniecki)

Details

Attachments

(2 files, 1 obsolete file)

For 1.0 we want to restrict the return values of Macro to String. That means that macro should never return an entity so an expression like this: macro()::attr1 Since we already have guards on the type of the base expression for AttributeExpression, Stas suggested to remove the CallExpression from this and throw on parsing. If we ever revisit this and will want to let macro return entity, we'll just readd this.
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → 1.0
Attached patch patch against js (obsolete) — Splinter Review
Attachment #764671 - Flags: review?(stas)
Attached patch patch against pySplinter Review
Attachment #764673 - Flags: review?(stas)
Attached patch patch against jsSplinter Review
Attachment #764671 - Attachment is obsolete: true
Attachment #764671 - Flags: review?(stas)
Attachment #764675 - Flags: review?(stas)
Comment on attachment 764675 [details] [diff] [review] patch against js Review of attachment 764675 [details] [diff] [review]: ----------------------------------------------------------------- ::: tests/lib/parser.js @@ +528,4 @@ > '<id[x.y::["z"]] "foo">', > '<id[x::y::["z"]] "foo">', > '<id[x::[1 "foo">', > + '<id[x()::[1]] "foo">', replace [1] with a string?
Attachment #764675 - Flags: review?(stas) → review+
Comment on attachment 764673 [details] [diff] [review] patch against py Review of attachment 764673 [details] [diff] [review]: ----------------------------------------------------------------- ::: tests/format/lol/parser.py @@ +639,5 @@ > + '<id[x::y::z] "foo">', > + '<id[x.y::["z"]] "foo">', > + '<id[x::y::["z"]] "foo">', > + '<id[x::[1 "foo">', > + '<id[x()::[1]] "foo">', idem
Attachment #764673 - Flags: review?(stas) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: