Closed
Bug 884744
Opened 13 years ago
Closed 13 years ago
Remove CallExpression as a left-leaf of AttributeExpression
Categories
(L20n :: General, defect, P3)
L20n
General
Tracking
(Not tracked)
RESOLVED
FIXED
1.0
People
(Reporter: zbraniecki, Assigned: zbraniecki)
Details
Attachments
(2 files, 1 obsolete file)
|
1.73 KB,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
|
1.07 KB,
patch
|
stas
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•13 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → 1.0
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #764671 -
Flags: review?(stas)
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #764673 -
Flags: review?(stas)
| Assignee | ||
Comment 3•13 years ago
|
||
Attachment #764671 -
Attachment is obsolete: true
Attachment #764671 -
Flags: review?(stas)
Attachment #764675 -
Flags: review?(stas)
Comment 4•13 years ago
|
||
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 5•13 years ago
|
||
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+
| Assignee | ||
Comment 6•13 years ago
|
||
https://github.com/l20n/l20n.js/commit/1c946d23a3576e3efbeddf652c59c5c9e249ab1f
https://github.com/l20n/python-l20n/commit/71989e697eb28626aa7100f21e39cca0f0a50427
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•