mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
JSX empty expression location data (#5189)
This commit is contained in:
committed by
Geoffrey Booth
parent
28a1a1d304
commit
7e0eb6a92d
@@ -425,7 +425,9 @@ test "AST as expected for JSXTag node", ->
|
||||
raw: 'abc'
|
||||
value: 'abc'
|
||||
,
|
||||
type: 'JSXEmptyExpression'
|
||||
type: 'JSXExpressionContainer'
|
||||
expression:
|
||||
type: 'JSXEmptyExpression'
|
||||
]
|
||||
|
||||
# test "AST as expected for PropertyName node", ->
|
||||
|
||||
@@ -2996,6 +2996,17 @@ test "AST location data as expected for JSXTag node", ->
|
||||
line: 1
|
||||
column: 5
|
||||
,
|
||||
expression:
|
||||
start: 6
|
||||
end: 6
|
||||
range: [6, 6]
|
||||
loc:
|
||||
start:
|
||||
line: 1
|
||||
column: 6
|
||||
end:
|
||||
line: 1
|
||||
column: 6
|
||||
start: 5
|
||||
end: 7
|
||||
range: [5, 7]
|
||||
|
||||
Reference in New Issue
Block a user