Skip to content

Commit 1d361a8

Browse files
committed
Manage continue and pass statement
1 parent c3c060d commit 1d361a8

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

src/Famix-Python-Importer/FamixPythonVisitor.class.st

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,26 @@ FamixPythonVisitor >> visitComment: aCommentNode [
695695
"noop - Managed by the comment importer"
696696

697697

698+
]
699+
700+
{ #category : 'visiting - noop' }
701+
FamixPythonVisitor >> visitContinueStatement: aNode [
702+
"
703+
Children: none
704+
705+
Parents:
706+
- Visiting me: block
707+
708+
example:
709+
710+
for i in range(5):
711+
if i == 3:
712+
continue
713+
print(i)
714+
715+
noop, nothing to do at Famix level."
716+
717+
698718
]
699719

700720
{ #category : 'visiting' }
@@ -977,6 +997,24 @@ FamixPythonVisitor >> visitParameters: aParameterNode [
977997
in: [ :param | self setSourceAnchor: param from: parameter ] ]
978998
]
979999

1000+
{ #category : 'visiting - noop' }
1001+
FamixPythonVisitor >> visitPassStatement: aNode [
1002+
"
1003+
Children: none
1004+
1005+
Parents:
1006+
- Visiting me: block
1007+
1008+
example:
1009+
1010+
class AClassDefinition:
1011+
pass
1012+
1013+
noop, nothing to do at Famix level."
1014+
1015+
1016+
]
1017+
9801018
{ #category : 'visiting' }
9811019
FamixPythonVisitor >> visitPatternList: aPatternListNode [
9821020

0 commit comments

Comments
 (0)