@@ -12,7 +12,6 @@ Class {
1212 ' augmentedAssignment' ,
1313 ' await' ,
1414 ' binaryOperator' ,
15- ' block' ,
1615 ' booleanOperator' ,
1716 ' breakStatement' ,
1817 ' call' ,
@@ -125,7 +124,6 @@ Class {
125124 ' tConditionalStatement' ,
126125 ' complex' ,
127126 ' thenClause' ,
128- ' tLoopStatement' ,
129127 ' statement' ,
130128 ' tWithStatements' ,
131129 ' tNumericalLiteral' ,
@@ -189,7 +187,6 @@ FASTPythonMetamodelGenerator >> defineClasses [
189187 augmentedAssignment := builder ensureClassNamed: #AugmentedAssignment ." Todo"
190188 await := builder ensureClassNamed: #Await ." Todo"
191189 binaryOperator := builder ensureClassNamed: #BinaryOperator .
192- block := builder ensureClassNamed: #Block ." To review"
193190 boolean := builder ensureClassNamed: #Boolean .
194191 booleanOperator := builder ensureClassNamed: #BooleanOperator .
195192 breakStatement := builder ensureClassNamed: #BreakStatement .
@@ -324,8 +321,6 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
324321 binaryOperator -- | > tSplatExpression.
325322 binaryOperator -- | > tPattern.
326323
327- block -- | > tStatementBlock.
328-
329324 booleanOperator -- | > operator.
330325 booleanOperator -- | > tBinaryExpression. " I am not 100% sure this is the best trait to use but it seems to work well for now"
331326 booleanOperator -- | > tSplatExpression.
@@ -386,7 +381,7 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
386381
387382 elseClause -- | > tStatementBlock.
388383
389- elifClause -- | > block .
384+ elifClause -- | > tStatementBlock .
390385 elifClause -- | > tConditionalStatement.
391386
392387 ellipsis -- | > literal.
@@ -407,7 +402,7 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
407402 forInClause -- | > expression. " This is wrong! I am just here temporarily until we rework the relation to the for in clause (I need to be able to be a clause of a list comprehension)"
408403
409404 forStatement -- | > statement.
410- forStatement -- | > tLoopStatement .
405+ forStatement -- | > tStatementBlock .
411406 forStatement -- | > tWithElseClause.
412407
413408 functionDefinition -- | > statement.
@@ -570,7 +565,7 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
570565
571566 whileStatement -- | > statement.
572567 whileStatement -- | > tConditionalStatement.
573- whileStatement -- | > tLoopStatement .
568+ whileStatement -- | > tStatementBlock .
574569 whileStatement -- | > tWithElseClause.
575570
576571 withStatement -- | > statement.
@@ -828,7 +823,6 @@ FASTPythonMetamodelGenerator >> defineTraits [
828823 tExpression := self remoteTrait: #TExpression withPrefix: #FAST .
829824 tInvocation := self remoteTrait: #TInvocation withPrefix: #FAST .
830825 tLiteral := self remoteTrait: #TLiteral withPrefix: #FAST .
831- tLoopStatement := self remoteTrait: #TLoopStatement withPrefix: #FAST .
832826 tNamedBehaviouralEntity := self remoteTrait: #TNamedBehaviouralEntity withPrefix: #FAST .
833827 tNamedEntity := self remoteTrait: #TNamedEntity withPrefix: #FAST .
834828 tNumericalLiteral := self remoteTrait: #TNumericalLiteral withPrefix: #FAST .
0 commit comments