Skip to content

Commit 55131da

Browse files
committed
Add an error for something I don't know how to trigger
1 parent 4ee41bd commit 55131da

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ FASTPythonMetamodelGenerator >> defineRelations [
697697
((nonlocalStatement property: #variables) comment: 'The variables scoped')
698698
<>-* ((variable property: #nonlocalOwner) comment: 'The global statement defining my scope (if it''s the case)').
699699

700-
(pair property: #key) <>- (expression property: #pairKeyOwner).
700+
(pair property: #key) <>- (expression property: #pairKeyOwner). "It should be anything hashable. Maybe we could refine the target but not sure."
701701

702702
(pair property: #value) <>- (expression property: #pairValueOwner).
703703

‎src/FAST-Python-Tools/TSFASTPythonImporter.class.st‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,12 @@ TSFASTPythonImporter >> visitParenthesizedExpression: aTSNode [
713713
^ self rawVisitChildren: aTSNode
714714
]
715715

716+
{ #category : 'visiting' }
717+
TSFASTPythonImporter >> visitParenthesizedListSplat: aTSNode [
718+
719+
self error: 'Cyril: I have no idea how we can have this node? If you end up here, please open an issue with your file or a snippet to parse to end up here!'
720+
]
721+
716722
{ #category : 'visiting - alias' }
717723
TSFASTPythonImporter >> visitPatternList: aTSNode [
718724

0 commit comments

Comments
 (0)