mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
libSyntax: use node choice for dictionary expression.
This allows us to support empty dictionary literal.
This commit is contained in:
@@ -152,7 +152,11 @@ EXPR_NODES = [
|
||||
Node('DictionaryExpr', kind='Expr',
|
||||
children=[
|
||||
Child('LeftSquare', kind='LeftSquareToken'),
|
||||
Child('Elements', kind='DictionaryElementList'),
|
||||
Child('Content', kind='Syntax',
|
||||
node_choices=[
|
||||
Child('Colon', kind='ColonToken'),
|
||||
Child('Elements', kind='DictionaryElementList'),
|
||||
]),
|
||||
Child('RightSquare', kind='RightSquareToken'),
|
||||
]),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user