diff --git a/README.md b/README.md index 6c1444c..0a8a9f1 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,27 @@ Or FASTPythonImporter parseFile: myFile ``` -# Documentation +## Documentation The best documentation to read about this project is located in Pharo Tree Sitter's repository here: [https://github.com/Evref-BL/Pharo-Tree-Sitter/blob/main/resources/doc/fast_importer.md](https://github.com/Evref-BL/Pharo-Tree-Sitter/blob/main/resources/doc/fast_importer.md) and here: [https://github.com/Evref-BL/Pharo-Tree-Sitter/blob/main/resources/doc/ts_utilities.md](https://github.com/Evref-BL/Pharo-Tree-Sitter/blob/main/resources/doc/ts_utilities.md) + +## Control flow graph + +It is possible to get a control flow graph of your python entities like this: + +```smalltalk +FASTPythonCFGVisitor buildCFGOf: aModel allFunctionDefinitions first. + +"or" + +aModel allFunctionDefinitions first cfg +``` + +A CFG can be done on a function, method, class, module or lambda. + +You can visualize it in the inspector as a visualization and you can also export your CFG as a mermaid visualization using `#asMermaidScript` + ## Moose versions compatibility | Version | Compatible Moose versions | diff --git a/src/BaselineOfFASTPython/BaselineOfFASTPython.class.st b/src/BaselineOfFASTPython/BaselineOfFASTPython.class.st index d452e7f..8cae698 100644 --- a/src/BaselineOfFASTPython/BaselineOfFASTPython.class.st +++ b/src/BaselineOfFASTPython/BaselineOfFASTPython.class.st @@ -22,13 +22,12 @@ BaselineOfFASTPython >> baseline: spec [ package: 'FAST-Python-Model' with: [ spec requires: #( 'FAST' 'TreeSitter' ) ]; package: 'FAST-Python-Model-Generator'; package: 'FAST-Python-Model-Tests' with: [ spec requires: #( 'FAST-Python-Model' ) ]; - package: 'FAST-Python-Tools' with: [ spec requires: #( 'FAST-Python-Model' 'FAST-Python-Visitor' ) ]; - package: 'FAST-Python-Tools-Tests' with: [ spec requires: #( 'FAST-Python-Tools' ) ]; - package: 'FAST-Python-Visitor' with: [ spec requires: #( 'FAST-Python-Model' ) ]. + package: 'FAST-Python-Tools' with: [ spec requires: #( 'FAST-Python-Model' ) ]; + package: 'FAST-Python-Tools-Tests' with: [ spec requires: #( 'FAST-Python-Tools' ) ]. "Groups" spec - group: 'Core' with: #( 'FAST-Python-Model' 'FAST-Python-Tools' 'FAST-Python-Visitor' ); + group: 'Core' with: #( 'FAST-Python-Model' 'FAST-Python-Tools' ); group: 'Generator' with: #( 'FAST-Python-Model-Generator' ); group: 'Tests' with: #( 'FAST-Python-Model-Tests' 'FAST-Python-Tools-Tests' ) ] ] diff --git a/src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st b/src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st index 9c29609..f2f4544 100644 --- a/src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st +++ b/src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st @@ -155,7 +155,9 @@ Class { 'tCallable', 'tSliceIndex', 'tAwaitable', - 'tExecutable' + 'tExecutable', + 'tBreakStatement', + 'tContinueStatement' ], #category : 'FAST-Python-Model-Generator', #package : 'FAST-Python-Model-Generator' @@ -173,12 +175,6 @@ FASTPythonMetamodelGenerator class >> packageName [ ^ #'FAST-Python-Model' ] -{ #category : 'accessing' } -FASTPythonMetamodelGenerator class >> packageNameForVisitor [ - - ^ #'FAST-Python-Visitor' -] - { #category : 'accessing' } FASTPythonMetamodelGenerator class >> prefix [ @@ -246,7 +242,7 @@ FASTPythonMetamodelGenerator >> defineClasses [ comparisonOperator := builder newClassNamed: #ComparisonOperator. - (comprehension := builder newClassNamed: #Comprehension) comment: + (comprehension := builder newAbstractClassNamed: #Comprehension) comment: 'I am an abstract class for comprehensions. Comprehensions are a structure in python to generate some collections or a generator.'. (complex := builder newClassNamed: #Complex) comment: 'I represent a complex number such as `2j`'. @@ -279,7 +275,7 @@ FASTPythonMetamodelGenerator >> defineClasses [ escapeSequence := builder newClassNamed: #EscapeSequence. exceptClause := builder newClassNamed: #ExceptClause. execStatement := builder newClassNamed: #ExecStatement. - expression := builder newClassNamed: #Expression. + expression := builder newAbstractClassNamed: #Expression. finallyClause := builder newClassNamed: #FinallyClause. float := builder newClassNamed: #Float. forInClause := builder newClassNamed: #ForInClause. @@ -306,7 +302,7 @@ FASTPythonMetamodelGenerator >> defineClasses [ lambdaParameters := builder newClassNamed: #LambdaParameters. list := builder newClassNamed: #List. listComprehension := builder newClassNamed: #ListComprehension. - literal := builder newClassNamed: #Literal. + literal := builder newAbstractClassNamed: #Literal. matchStatement := builder newClassNamed: #MatchStatement. memberType := builder newClassNamed: #MemberType. methodDefinition := builder newClassNamed: #MethodDefinition. @@ -331,7 +327,7 @@ FASTPythonMetamodelGenerator >> defineClasses [ 'In Python a collection (list or dictionary) splat is the unpacking of a collection in a call or in the definition of another definition like `[ *list , 4 ]` or `func(*list)`'. splatParameter := builder newClassNamed: #SplatParameter. splatType := builder newClassNamed: #SplatType. - statement := builder newClassNamed: #Statement. + statement := builder newAbstractClassNamed: #Statement. string := builder newClassNamed: #String. subscript := builder newClassNamed: #Subscript. thenClause := builder newClassNamed: #ThenClause. @@ -395,6 +391,7 @@ FASTPythonMetamodelGenerator >> defineHierarchy [ boolean --|> tBooleanLiteral. breakStatement --|> statement. + breakStatement --|> tBreakStatement. call --|> expression. call --|> tInvocation. @@ -433,6 +430,7 @@ FASTPythonMetamodelGenerator >> defineHierarchy [ conditionalExpression --|> tExecutable. continueStatement --|> statement. + continueStatement --|> tContinueStatement. constrainedType --|> tTypeContent. @@ -743,7 +741,7 @@ FASTPythonMetamodelGenerator >> defineRelations [ ((deleteStatement property: #expression) comment: 'The expression to apply the delete on') <>- ((tDeletable property: #parentDeleteStatement) comment: 'The delete statement that own the expression (if it''s the case)'). - (exceptClause property: #expressions) <>-* (expression property: #parentExceptClause). "We could point less things than expression, but in reality in Python any expression can be provided. It will just end up in runtime error." + (exceptClause property: #expression) <>- (expression property: #parentExceptClause). "We could point less things than expression, but in reality in Python any expression can be provided. It will just end up in runtime error." (execStatement property: #code) <>- (tExecutable property: #parentExecStatement). (execStatement property: #scopes) <>-* (expression property: #parentExecStatementScopes). @@ -902,8 +900,10 @@ FASTPythonMetamodelGenerator >> defineTraits [ tAssignment := self remoteTrait: #TAssignment withPrefix: #FAST. tBinaryExpression := self remoteTrait: #TBinaryExpression withPrefix: #FAST. tBooleanLiteral := self remoteTrait: #TBooleanLiteral withPrefix: #FAST. + tBreakStatement := self remoteTrait: #TBreakStatement withPrefix: #FAST. tComment := self remoteTrait: #TComment withPrefix: #FAST. tConditionalStatement := self remoteTrait: #TConditionalStatement withPrefix: #FAST. + tContinueStatement := self remoteTrait: #TContinueStatement withPrefix: #FAST. tExpression := self remoteTrait: #TExpression withPrefix: #FAST. tInvocation := self remoteTrait: #TInvocation withPrefix: #FAST. tLiteral := self remoteTrait: #TLiteral withPrefix: #FAST. diff --git a/src/FAST-Python-Model/FASTPyBreakStatement.class.st b/src/FAST-Python-Model/FASTPyBreakStatement.class.st index 97f5b3a..11f4319 100644 --- a/src/FAST-Python-Model/FASTPyBreakStatement.class.st +++ b/src/FAST-Python-Model/FASTPyBreakStatement.class.st @@ -1,11 +1,30 @@ " I represent a break statement used to break loops. +## Relations +====================== + +### Parents +| Relation | Origin | Opposite | Type | Comment | +|---| +| `parentLoopStatement` | `FASTTStatement` | `body` | `FASTTLoopStatement` | Optional loop of which this statement is the body| +| `statementContainer` | `FASTTStatement` | `statements` | `FASTTStatementBlock` | Block containing this statement.| + + +## Properties +====================== + +| Name | Type | Default value | Comment | +|---| +| `endPos` | `Number` | nil | | +| `startPos` | `Number` | nil | | " Class { #name : 'FASTPyBreakStatement', #superclass : 'FASTPyStatement', + #traits : 'FASTTBreakStatement', + #classTraits : 'FASTTBreakStatement classTrait', #category : 'FAST-Python-Model-Entities', #package : 'FAST-Python-Model', #tag : 'Entities' diff --git a/src/FAST-Python-Model/FASTPyComprehension.class.st b/src/FAST-Python-Model/FASTPyComprehension.class.st index 3073d33..e221fce 100644 --- a/src/FAST-Python-Model/FASTPyComprehension.class.st +++ b/src/FAST-Python-Model/FASTPyComprehension.class.st @@ -40,6 +40,14 @@ FASTPyComprehension class >> annotation [ + +] + +{ #category : 'testing' } +FASTPyComprehension class >> isAbstract [ + + + ^ self == FASTPyComprehension ] { #category : 'adding' } diff --git a/src/FAST-Python-Model/FASTPyContinueStatement.class.st b/src/FAST-Python-Model/FASTPyContinueStatement.class.st index f72dff5..bedb7fd 100644 --- a/src/FAST-Python-Model/FASTPyContinueStatement.class.st +++ b/src/FAST-Python-Model/FASTPyContinueStatement.class.st @@ -6,6 +6,8 @@ I represent a continue statement to use in loops. Class { #name : 'FASTPyContinueStatement', #superclass : 'FASTPyStatement', + #traits : 'FASTTContinueStatement', + #classTraits : 'FASTTContinueStatement classTrait', #category : 'FAST-Python-Model-Entities', #package : 'FAST-Python-Model', #tag : 'Entities' diff --git a/src/FAST-Python-Model/FASTPyEntity.class.st b/src/FAST-Python-Model/FASTPyEntity.class.st index c82d267..97ffa8b 100644 --- a/src/FAST-Python-Model/FASTPyEntity.class.st +++ b/src/FAST-Python-Model/FASTPyEntity.class.st @@ -71,6 +71,13 @@ FASTPyEntity >> isBooleanLiteral [ ^ false ] +{ #category : 'testing' } +FASTPyEntity >> isBreakStatement [ + + + ^ false +] + { #category : 'testing' } FASTPyEntity >> isClassDefinition [ @@ -78,6 +85,13 @@ FASTPyEntity >> isClassDefinition [ ^ false ] +{ #category : 'testing' } +FASTPyEntity >> isContinueStatement [ + + + ^ false +] + { #category : 'testing' } FASTPyEntity >> isExpression [ diff --git a/src/FAST-Python-Model/FASTPyExceptClause.class.st b/src/FAST-Python-Model/FASTPyExceptClause.class.st index c5a00b8..b5cf6b0 100644 --- a/src/FAST-Python-Model/FASTPyExceptClause.class.st +++ b/src/FAST-Python-Model/FASTPyExceptClause.class.st @@ -13,7 +13,7 @@ ### Children | Relation | Origin | Opposite | Type | Comment | |---| -| `expressions` | `FASTPyExceptClause` | `parentExceptClause` | `FASTPyExpression` | | +| `expression` | `FASTPyExceptClause` | `parentExceptClause` | `FASTPyExpression` | | | `statements` | `FASTTStatementBlock` | `statementContainer` | `FASTTStatement` | Statements enclosed in this block| @@ -34,7 +34,7 @@ Class { #classTraits : 'FASTTStatementBlock classTrait', #instVars : [ '#alias => FMProperty', - '#expressions => FMMany type: #FASTPyExpression opposite: #parentExceptClause', + '#expression => FMOne type: #FASTPyExpression opposite: #parentExceptClause', '#parentTryStatement => FMOne type: #FASTPyTryStatement opposite: #excepts' ], #category : 'FAST-Python-Model-Entities', @@ -50,12 +50,6 @@ FASTPyExceptClause class >> annotation [ ] -{ #category : 'adding' } -FASTPyExceptClause >> addExpression: anObject [ - - ^ self expressions add: anObject -] - { #category : 'accessing' } FASTPyExceptClause >> alias [ @@ -72,19 +66,18 @@ FASTPyExceptClause >> alias: anObject [ ] { #category : 'accessing' } -FASTPyExceptClause >> expressions [ - "Relation named: #expressions type: #FASTPyExpression opposite: #parentExceptClause" +FASTPyExceptClause >> expression [ + "Relation named: #expression type: #FASTPyExpression opposite: #parentExceptClause" - - ^ expressions + ^ expression ] { #category : 'accessing' } -FASTPyExceptClause >> expressions: anObject [ +FASTPyExceptClause >> expression: anObject [ - expressions value: anObject + expression := anObject ] { #category : 'accessing' } diff --git a/src/FAST-Python-Model/FASTPyExpression.class.st b/src/FAST-Python-Model/FASTPyExpression.class.st index 9e77ab7..5df9f83 100644 --- a/src/FAST-Python-Model/FASTPyExpression.class.st +++ b/src/FAST-Python-Model/FASTPyExpression.class.st @@ -21,7 +21,7 @@ | `parentConditionalExpressionElse` | `FASTPyExpression` | `elseExpression` | `FASTPyConditionalExpression` | | | `parentConditionalExpressionThen` | `FASTPyExpression` | `thenExpression` | `FASTPyConditionalExpression` | | | `parentDefaultParameterValue` | `FASTPyExpression` | `defaultValue` | `FASTPyParameter` | | -| `parentExceptClause` | `FASTPyExpression` | `expressions` | `FASTPyExceptClause` | | +| `parentExceptClause` | `FASTPyExpression` | `expression` | `FASTPyExceptClause` | | | `parentExecStatementScopes` | `FASTPyExpression` | `scopes` | `FASTPyExecStatement` | | | `parentExpression` | `FASTTExpression` | `expression` | `FASTTUnaryExpression` | Parent (unary) expression| | `parentExpressionLeft` | `FASTTExpression` | `leftOperand` | `FASTTBinaryExpression` | Parent (binary) expression of which I am left side| @@ -75,7 +75,7 @@ Class { '#parentConditionalExpressionElse => FMOne type: #FASTPyConditionalExpression opposite: #elseExpression', '#parentConditionalExpressionThen => FMOne type: #FASTPyConditionalExpression opposite: #thenExpression', '#parentDefaultParameterValue => FMOne type: #FASTPyParameter opposite: #defaultValue', - '#parentExceptClause => FMOne type: #FASTPyExceptClause opposite: #expressions', + '#parentExceptClause => FMOne type: #FASTPyExceptClause opposite: #expression', '#parentExecStatementScopes => FMOne type: #FASTPyExecStatement opposite: #scopes', '#parentForInClauseLeft => FMOne type: #FASTPyForInClause opposite: #left', '#parentForInClauseRight => FMOne type: #FASTPyForInClause opposite: #right', @@ -106,6 +106,14 @@ FASTPyExpression class >> annotation [ + +] + +{ #category : 'testing' } +FASTPyExpression class >> isAbstract [ + + + ^ self == FASTPyExpression ] { #category : 'accessing' } @@ -125,6 +133,14 @@ FASTPyExpression >> collectionInitializer: anObject [ collectionInitializer := anObject ] +{ #category : 'testing' } +FASTPyExpression >> isExpressionStatement [ + + self containersDo: [ :container | (container isOfType: FASTTStatementBlock) ifTrue: [ ^ true ] ]. + + ^ false +] + { #category : 'accessing' } FASTPyExpression >> parentAssertStatement [ "Relation named: #parentAssertStatement type: #FASTPyAssertStatement opposite: #expressions" @@ -313,10 +329,11 @@ FASTPyExpression >> parentDefaultParameterValue: anObject [ { #category : 'accessing' } FASTPyExpression >> parentExceptClause [ - "Relation named: #parentExceptClause type: #FASTPyExceptClause opposite: #expressions" + "Relation named: #parentExceptClause type: #FASTPyExceptClause opposite: #expression" + ^ parentExceptClause ] diff --git a/src/FAST-Python-Model/FASTPyLiteral.class.st b/src/FAST-Python-Model/FASTPyLiteral.class.st index 04958e3..3ee4456 100644 --- a/src/FAST-Python-Model/FASTPyLiteral.class.st +++ b/src/FAST-Python-Model/FASTPyLiteral.class.st @@ -44,4 +44,12 @@ FASTPyLiteral class >> annotation [ + +] + +{ #category : 'testing' } +FASTPyLiteral class >> isAbstract [ + + + ^ self == FASTPyLiteral ] diff --git a/src/FAST-Python-Model/FASTPyModel.class.st b/src/FAST-Python-Model/FASTPyModel.class.st index 9f675db..33643cb 100644 --- a/src/FAST-Python-Model/FASTPyModel.class.st +++ b/src/FAST-Python-Model/FASTPyModel.class.st @@ -21,3 +21,21 @@ FASTPyModel class >> annotation [ ] + +{ #category : 'accessing' } +FASTPyModel >> allClassDefinitions [ + + ^ self allWithType: FASTPyClassDefinition +] + +{ #category : 'accessing' } +FASTPyModel >> allFunctionDefinitions [ + + ^ self allWithType: FASTPyFunctionDefinition +] + +{ #category : 'accessing' } +FASTPyModel >> allModules [ + + ^ self allWithType: FASTPyModule +] diff --git a/src/FAST-Python-Model/FASTPyStatement.class.st b/src/FAST-Python-Model/FASTPyStatement.class.st index 39476f2..6853537 100644 --- a/src/FAST-Python-Model/FASTPyStatement.class.st +++ b/src/FAST-Python-Model/FASTPyStatement.class.st @@ -34,4 +34,12 @@ FASTPyStatement class >> annotation [ + +] + +{ #category : 'testing' } +FASTPyStatement class >> isAbstract [ + + + ^ self == FASTPyStatement ] diff --git a/src/FAST-Python-Model/FASTPyTEntityCreator.trait.st b/src/FAST-Python-Model/FASTPyTEntityCreator.trait.st index c0d0c0e..27d10c4 100644 --- a/src/FAST-Python-Model/FASTPyTEntityCreator.trait.st +++ b/src/FAST-Python-Model/FASTPyTEntityCreator.trait.st @@ -152,13 +152,6 @@ FASTPyTEntityCreator >> newComplex [ ^ self add: FASTPyComplex new ] -{ #category : 'entity creation' } -FASTPyTEntityCreator >> newComprehension [ - - - ^ self add: FASTPyComprehension new -] - { #category : 'entity creation' } FASTPyTEntityCreator >> newConcatenatedString [ @@ -278,13 +271,6 @@ FASTPyTEntityCreator >> newExecStatement [ ^ self add: FASTPyExecStatement new ] -{ #category : 'entity creation' } -FASTPyTEntityCreator >> newExpression [ - - - ^ self add: FASTPyExpression new -] - { #category : 'entity creation' } FASTPyTEntityCreator >> newFinallyClause [ @@ -467,13 +453,6 @@ FASTPyTEntityCreator >> newListComprehension [ ^ self add: FASTPyListComprehension new ] -{ #category : 'entity creation' } -FASTPyTEntityCreator >> newLiteral [ - - - ^ self add: FASTPyLiteral new -] - { #category : 'entity creation' } FASTPyTEntityCreator >> newMatchStatement [ @@ -628,13 +607,6 @@ FASTPyTEntityCreator >> newSplatType [ ^ self add: FASTPySplatType new ] -{ #category : 'entity creation' } -FASTPyTEntityCreator >> newStatement [ - - - ^ self add: FASTPyStatement new -] - { #category : 'entity creation' } FASTPyTEntityCreator >> newString [ diff --git a/src/FAST-Python-Visitor/FASTPyTVisitor.trait.st b/src/FAST-Python-Model/FASTPyTVisitor.trait.st similarity index 98% rename from src/FAST-Python-Visitor/FASTPyTVisitor.trait.st rename to src/FAST-Python-Model/FASTPyTVisitor.trait.st index c0fdedd..b1b9aed 100644 --- a/src/FAST-Python-Visitor/FASTPyTVisitor.trait.st +++ b/src/FAST-Python-Model/FASTPyTVisitor.trait.st @@ -6,8 +6,8 @@ I am generated with the metamodel. " Trait { #name : 'FASTPyTVisitor', - #category : 'FAST-Python-Visitor-Visitor', - #package : 'FAST-Python-Visitor', + #category : 'FAST-Python-Model-Visitor', + #package : 'FAST-Python-Model', #tag : 'Visitor' } @@ -15,7 +15,7 @@ Trait { FASTPyTVisitor classSide >> annotation [ - + ] @@ -125,6 +125,7 @@ FASTPyTVisitor >> visitFASTPyBooleanOperator: aBooleanOperator [ FASTPyTVisitor >> visitFASTPyBreakStatement: aBreakStatement [ + self visitFASTTBreakStatement: aBreakStatement. self visitFASTPyStatement: aBreakStatement ] @@ -262,6 +263,7 @@ FASTPyTVisitor >> visitFASTPyConstrainedType: aConstrainedType [ FASTPyTVisitor >> visitFASTPyContinueStatement: aContinueStatement [ + self visitFASTTContinueStatement: aContinueStatement. self visitFASTPyStatement: aContinueStatement ] @@ -365,7 +367,7 @@ FASTPyTVisitor >> visitFASTPyExceptClause: anExceptClause [ self visitFASTTStatementBlock: anExceptClause. - self visitCollection: anExceptClause expressions + self visitEntity: anExceptClause expression ] { #category : 'visiting' } @@ -1171,6 +1173,13 @@ FASTPyTVisitor >> visitFASTTBooleanLiteral: aTBooleanLiteral [ "We should visit FASTTLiteral but all its users in this language already visit it in their superclasses so we skip the call here." ] +{ #category : 'visiting' } +FASTPyTVisitor >> visitFASTTBreakStatement: aTBreakStatement [ + + + "We should visit FASTTStatement but all its users in this language already visit it in their superclasses so we skip the call here." +] + { #category : 'visiting' } FASTPyTVisitor >> visitFASTTComment: aTComment [ @@ -1188,6 +1197,13 @@ FASTPyTVisitor >> visitFASTTConditionalStatement: aTConditionalStatement [ self visitFASTTWithCondition: aTConditionalStatement ] +{ #category : 'visiting' } +FASTPyTVisitor >> visitFASTTContinueStatement: aTContinueStatement [ + + + +] + { #category : 'visiting' } FASTPyTVisitor >> visitFASTTEntity: aTEntity [ diff --git a/src/FAST-Python-Model/FASTPythonVisitor.class.st b/src/FAST-Python-Model/FASTPythonVisitor.class.st new file mode 100644 index 0000000..4f761ac --- /dev/null +++ b/src/FAST-Python-Model/FASTPythonVisitor.class.st @@ -0,0 +1,12 @@ +" +I am a basic top down visitor for a FAST Python model. +" +Class { + #name : 'FASTPythonVisitor', + #superclass : 'Object', + #traits : 'FASTPyTVisitor', + #classTraits : 'FASTPyTVisitor classTrait', + #category : 'FAST-Python-Model-Visitor', + #package : 'FAST-Python-Model', + #tag : 'Visitor' +} diff --git a/src/FAST-Python-Tools-Tests/FASTPythonCFGTest.class.st b/src/FAST-Python-Tools-Tests/FASTPythonCFGTest.class.st new file mode 100644 index 0000000..397de4d --- /dev/null +++ b/src/FAST-Python-Tools-Tests/FASTPythonCFGTest.class.st @@ -0,0 +1,3629 @@ +Class { + #name : 'FASTPythonCFGTest', + #superclass : 'TestCase', + #instVars : [ + 'startBlock' + ], + #category : 'FAST-Python-Tools-Tests', + #package : 'FAST-Python-Tools-Tests' +} + +{ #category : 'running' } +FASTPythonCFGTest >> buildCFGForFunction: aString [ + + startBlock := FASTPythonCFGVisitor buildCFGOf: (self parse: aString) allFunctionDefinitions first +] + +{ #category : 'running' } +FASTPythonCFGTest >> parse: aString [ + + ^ FASTPythonImporter new + errorReportBlock: [ :i | i errors ifNotEmpty: [ self fail: 'Errors happened during parsing. Errors: ' , i errors printString ] ]; + parse: aString withPlatformLineEndings +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testCFGOfClass [ + + startBlock := FASTPythonCFGVisitor buildCFGOf: (self parse: 'class Class(): + i = 0 + + def funct2(i): + var = i + 4 + return var + + i = funct2(i) + print(i) + return i') allClassDefinitions first. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 5. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testCFGOfFunction [ + + startBlock := FASTPythonCFGVisitor buildCFGOf: (self parse: 'def funct(): + i = 0 + + def funct2(i): + var = i + 4 + return var + + i = funct2(i) + print(i) + return i') allFunctionDefinitions first. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 5. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testCFGOfModule [ + + startBlock := FASTPythonCFGVisitor buildCFGOf: (self parse: 'i = 0 + +def funct2(i): + var = i + 4 + return var + +i = funct2(i) +print(i)') allModules first. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 4. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testFunctionInFunction [ + + self buildCFGForFunction: 'def funct(): + i = 0 + + def funct2(i): + var = i + 4 + return var + + i = funct2(i) + print(i) + return i'. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 5. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testFunctionWithCodeAfterReturn [ + + self buildCFGForFunction: 'def i(): + return 3 + if y > 4: + a()'. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first isOfType: FASTPyReturnStatement). + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests - conditional expressions' } +FASTPythonCFGTest >> testFunctionWithConditionalExpression [ + + | thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + y() + x() if i % 2 == 0 else y()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + nullBlock := thenBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: elseBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithFor [ + + | forBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + print(x)'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + forBlock := startBlock nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 1. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: forBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForConditionDoesNotMixWithPreviousStatements [ + "Since the for loop, we should not mix its condition with previous statements. " + + | forCondition forBlock nullBlock | + self buildCFGForFunction: 'def f(i): + y() + for x in i: + print(x)'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + + forCondition := startBlock nextBlock. + self assert: forCondition isConditional. + self deny: forCondition isFinal. + self assert: forCondition statements size equals: 2. + self assert: (forCondition statements first class isOfType: FASTPyIdentifier). + self assert: (forCondition statements second class isOfType: FASTPyIdentifier). + self assert: forCondition nextBlocks size equals: 2. + self assert: (forCondition nextBlocks select: #isNullBlock) size equals: 1. + + forBlock := forCondition nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 1. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: forBlock nextBlock equals: forCondition. + + nullBlock := forCondition nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreak [ + + | forBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + y() + break + x()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + forBlock := startBlock nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 2. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: (forBlock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: forBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThen [ + + | ifConditionalBlock thenBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThen2 [ + + | ifConditionalBlock thenBlock endOfFor nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c() + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + endOfFor := ifConditionalBlock nextFalseBlock. + self deny: endOfFor isConditional. + self deny: endOfFor isFinal. + self assert: endOfFor statements size equals: 1. + self assert: (endOfFor statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThenBreakingAndElse [ + + | ifConditionalBlock thenBlock esleBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c() + else: + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + esleBlock := ifConditionalBlock nextFalseBlock. + self deny: esleBlock isConditional. + self deny: esleBlock isFinal. + self assert: esleBlock statements size equals: 1. + self assert: (esleBlock statements first isOfType: FASTPyCall). + self assert: esleBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThenBreakingAndElseBreaking [ + + | ifConditionalBlock thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c() + else: + d() + break + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: elseBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThenElifAndElseAllBreaking [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c() + elif i > 1: + d() + break + e() + else: + f() + break + g() + h()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyBreakStatement). + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock nextBlock. + self assert: lastBlock equals: elifBlock nextBlock. + self assert: lastBlock equals: elseBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakInIfThenElifBreakingAndElse [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + elif i > 1: + c() + break + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: elifBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithBreakingIfThenElse [ + + | ifConditionalBlock thenBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + break + c() + else: + d() + break + e() + f() + g()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyBreakStatement). + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock nextBlock. + self assert: lastBlock equals: elseBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinue [ + + | forBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + y() + continue + x()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + forBlock := startBlock nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 2. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: (forBlock statements second isOfType: FASTPyContinueStatement). + self assert: forBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThen [ + + | ifConditionalBlock thenBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThen2 [ + + | ifConditionalBlock thenBlock endOfFor nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c() + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + endOfFor := ifConditionalBlock nextFalseBlock. + self deny: endOfFor isConditional. + self deny: endOfFor isFinal. + self assert: endOfFor statements size equals: 1. + self assert: (endOfFor statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThenContinuingAndElse [ + + | ifConditionalBlock thenBlock esleBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c() + else: + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + esleBlock := ifConditionalBlock nextFalseBlock. + self deny: esleBlock isConditional. + self deny: esleBlock isFinal. + self assert: esleBlock statements size equals: 1. + self assert: (esleBlock statements first isOfType: FASTPyCall). + self assert: esleBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThenContinuingAndElseContinuing [ + + | ifConditionalBlock thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c() + else: + d() + continue + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThenElifAndElseAllContinuing [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c() + elif i > 1: + d() + continue + e() + else: + f() + continue + g() + h()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyContinueStatement). + self assert: elifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinueInIfThenElifContinuingAndElse [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + elif i > 1: + c() + continue + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyContinueStatement). + self assert: elifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithContinuingIfThenElse [ + + | ifConditionalBlock thenBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + continue + c() + else: + d() + continue + e() + f() + g()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithElseWithBreakInAllBranches [ + + | forBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + print(i) + break + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + forBlock := startBlock nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 2. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: (forBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := elseBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal. + self assert: nullBlock equals: forBlock nextBlock +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithElseWithBreakInIf [ + + | forBlock thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + print(i) + if 1 > 2: + break + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + forBlock := startBlock nextTrueBlock. + self assert: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 2. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: (forBlock statements second isOfType: FASTPyComparisonOperator). + self assert: forBlock nextFalseBlock equals: startBlock. + + thenBlock := forBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyBreakStatement). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := elseBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal. + self assert: nullBlock equals: thenBlock nextBlock +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithElseWithoutBreak [ + + | forBlock elseBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + print(i) + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + forBlock := startBlock nextTrueBlock. + self deny: forBlock isConditional. + self deny: forBlock isFinal. + self assert: forBlock statements size equals: 1. + self assert: (forBlock statements first isOfType: FASTPyCall). + self assert: forBlock nextBlock equals: startBlock. + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self assert: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). +] + +{ #category : 'tests - for' } +FASTPythonCFGTest >> testFunctionWithForWithIfInElif [ + + | ifConditionalBlock thenBlock elifConditionalBlock ifConditionalBlock2 thenBlock2 endOfElifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + for x in i: + a() + if i > 2: + b() + elif i > 1: + c() + if i < 1.5: + break + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyIdentifier). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + ifConditionalBlock2 := elifConditionalBlock nextTrueBlock. + self assert: ifConditionalBlock2 isConditional. + self deny: ifConditionalBlock2 isFinal. + self assert: ifConditionalBlock2 statements size equals: 2. + self assert: (ifConditionalBlock2 statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock2 statements second isOfType: FASTPyComparisonOperator). + + thenBlock2 := ifConditionalBlock2 nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyBreakStatement). + + endOfElifBlock := ifConditionalBlock2 nextFalseBlock. + self deny: endOfElifBlock isConditional. + self deny: endOfElifBlock isFinal. + self assert: endOfElifBlock statements size equals: 1. + self assert: (endOfElifBlock statements first isOfType: FASTPyCall). + self assert: endOfElifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock2 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfInElif [ + + | thenBlock elifConditionalBlock ifConditionalBlock2 thenBlock2 endOfElifBlock lastBlock | + self buildCFGForFunction: 'def f(i): + if i > 2: + a() + elif i > 1: + b() + if i < 1.5: + pass + c() + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionalBlock := startBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + ifConditionalBlock2 := elifConditionalBlock nextTrueBlock. + self assert: ifConditionalBlock2 isConditional. + self deny: ifConditionalBlock2 isFinal. + self assert: ifConditionalBlock2 statements size equals: 2. + self assert: (ifConditionalBlock2 statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock2 statements second isOfType: FASTPyComparisonOperator). + + thenBlock2 := ifConditionalBlock2 nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyPassStatement). + + endOfElifBlock := ifConditionalBlock2 nextFalseBlock. + self deny: endOfElifBlock isConditional. + self deny: endOfElifBlock isFinal. + self assert: endOfElifBlock equals: thenBlock2 nextBlock. + self assert: endOfElifBlock statements size equals: 1. + self assert: (endOfElifBlock statements first isOfType: FASTPyCall). + + lastBlock := thenBlock nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: endOfElifBlock nextBlock. + self assert: lastBlock equals: elifConditionalBlock nextFalseBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfInElif2 [ + + | thenBlock elifConditionalBlock ifConditionalBlock2 thenBlock2 endOfElifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + if i > 2: + a() + elif i > 1: + b() + if i < 1.5: + pass + c() + else: + d() + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionalBlock := startBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + ifConditionalBlock2 := elifConditionalBlock nextTrueBlock. + self assert: ifConditionalBlock2 isConditional. + self deny: ifConditionalBlock2 isFinal. + self assert: ifConditionalBlock2 statements size equals: 2. + self assert: (ifConditionalBlock2 statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock2 statements second isOfType: FASTPyComparisonOperator). + + thenBlock2 := ifConditionalBlock2 nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyPassStatement). + + endOfElifBlock := ifConditionalBlock2 nextFalseBlock. + self deny: endOfElifBlock isConditional. + self deny: endOfElifBlock isFinal. + self assert: endOfElifBlock equals: thenBlock2 nextBlock. + self assert: endOfElifBlock statements size equals: 1. + self assert: (endOfElifBlock statements first isOfType: FASTPyCall). + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + lastBlock := thenBlock nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: endOfElifBlock nextBlock. + self assert: lastBlock equals: elseBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThen [ + + | thenBlock nextBlock | + self buildCFGForFunction: 'def f(i): + y() + if i > 3: + print(i) + z()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + nextBlock := startBlock nextFalseBlock. + self deny: nextBlock isNullBlock. + self assert: nextBlock identicalTo: thenBlock nextBlock. + self assert: nextBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenAtEnd [ + + | thenBlock nullBlock | + self buildCFGForFunction: 'def f(i): + y() + if i > 3: + print(i)'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: thenBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenAtStart [ + + | thenBlock returnBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + return True'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + returnBlock := startBlock nextFalseBlock. + self deny: returnBlock isNullBlock. + self assert: returnBlock identicalTo: thenBlock nextBlock. + self assert: returnBlock isFinal. + self assert: returnBlock statements size equals: 1. + self assert: (returnBlock statements first isOfType: FASTPyReturnStatement) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElif [ + + | thenBlock elifConditionBlock elifBlock nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + elif i < 8: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionBlock := startBlock nextFalseBlock. + self assert: elifConditionBlock isConditional. + self deny: elifConditionBlock isFinal. + self assert: elifConditionBlock statements size equals: 1. + self assert: (elifConditionBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 1. + self assert: (elifBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := elifBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: thenBlock nextBlock. + self assert: nullBlock identicalTo: elifConditionBlock nextFalseBlock. + self assert: nullBlock identicalTo: elifBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElifElif [ + + | thenBlock elifConditionBlock elifBlock elifConditionBlock2 elifBlock2 nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + elif i < 8: + pass + elif i < 10: + a()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionBlock := startBlock nextFalseBlock. + self assert: elifConditionBlock isConditional. + self deny: elifConditionBlock isFinal. + self assert: elifConditionBlock statements size equals: 1. + self assert: (elifConditionBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 1. + self assert: (elifBlock statements first isOfType: FASTPyPassStatement). + + elifConditionBlock2 := elifConditionBlock nextFalseBlock. + self assert: elifConditionBlock2 isConditional. + self deny: elifConditionBlock2 isFinal. + self assert: elifConditionBlock2 statements size equals: 1. + self assert: (elifConditionBlock2 statements first isOfType: FASTPyComparisonOperator). + + elifBlock2 := elifConditionBlock2 nextTrueBlock. + self deny: elifBlock2 isConditional. + self deny: elifBlock2 isFinal. + self assert: elifBlock2 statements size equals: 1. + self assert: (elifBlock2 statements first isOfType: FASTPyCall). + + nullBlock := thenBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: elifBlock nextBlock. + self assert: nullBlock identicalTo: elifConditionBlock2 nextFalseBlock. + self assert: nullBlock identicalTo: elifBlock2 nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElifElifElse [ + + | thenBlock elifConditionBlock elifBlock elifConditionBlock2 elifBlock2 elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + elif i < 8: + pass + elif i < 10: + a() + else: + b()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionBlock := startBlock nextFalseBlock. + self assert: elifConditionBlock isConditional. + self deny: elifConditionBlock isFinal. + self assert: elifConditionBlock statements size equals: 1. + self assert: (elifConditionBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 1. + self assert: (elifBlock statements first isOfType: FASTPyPassStatement). + + elifConditionBlock2 := elifConditionBlock nextFalseBlock. + self assert: elifConditionBlock2 isConditional. + self deny: elifConditionBlock2 isFinal. + self assert: elifConditionBlock2 statements size equals: 1. + self assert: (elifConditionBlock2 statements first isOfType: FASTPyComparisonOperator). + + elifBlock2 := elifConditionBlock2 nextTrueBlock. + self deny: elifBlock2 isConditional. + self deny: elifBlock2 isFinal. + self assert: elifBlock2 statements size equals: 1. + self assert: (elifBlock2 statements first isOfType: FASTPyCall). + + elseBlock := elifConditionBlock2 nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + nullBlock := thenBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: elifBlock nextBlock. + self assert: nullBlock identicalTo: elifBlock2 nextBlock. + self assert: nullBlock identicalTo: elseBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElifElse [ + + | thenBlock elifConditionBlock elifBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + elif i < 8: + pass + else: + a()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elifConditionBlock := startBlock nextFalseBlock. + self assert: elifConditionBlock isConditional. + self deny: elifConditionBlock isFinal. + self assert: elifConditionBlock statements size equals: 1. + self assert: (elifConditionBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 1. + self assert: (elifBlock statements first isOfType: FASTPyPassStatement). + + elseBlock := elifConditionBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + nullBlock := elseBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: thenBlock nextBlock. + self assert: nullBlock identicalTo: elifBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElse [ + + | thenBlock elseBlock returnBlock | + self buildCFGForFunction: 'def f(i): + y() + if i > 3: + print(i) + else: + pass + return True'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + returnBlock := thenBlock nextBlock. + self deny: returnBlock isNullBlock. + self assert: returnBlock identicalTo: elseBlock nextBlock. + self assert: returnBlock isFinal. + self assert: returnBlock statements size equals: 1. + self assert: (returnBlock statements first isOfType: FASTPyReturnStatement) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElseAtEnd [ + + | thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + y() + if i > 3: + print(i) + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := thenBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: elseBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElseAtStart [ + + | thenBlock elseBlock returnBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + print(i) + else: + pass + return True'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional not. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + returnBlock := thenBlock nextBlock. + self deny: returnBlock isNullBlock. + self assert: returnBlock identicalTo: elseBlock nextBlock. + self assert: returnBlock isFinal. + self assert: returnBlock statements size equals: 1. + self assert: (returnBlock statements first isOfType: FASTPyReturnStatement) +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenElseInIfThen [ + + | thenBlock thenBlock2 elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + y() + if i < 5: + print(i) + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first class isOfType: FASTPyCall). + self assert: (thenBlock statements second class isOfType: FASTPyComparisonOperator). + + thenBlock2 := thenBlock nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyCall). + + elseBlock := thenBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: thenBlock2 nextBlock. + self assert: nullBlock identicalTo: elseBlock nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenInIfThen [ + + | thenBlock thenBlock2 nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + y() + if i < 5: + print(i)'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first class isOfType: FASTPyCall). + self assert: (thenBlock statements second class isOfType: FASTPyComparisonOperator). + + thenBlock2 := thenBlock nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: thenBlock nextFalseBlock. + self assert: nullBlock identicalTo: thenBlock2 nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - if' } +FASTPythonCFGTest >> testFunctionWithIfThenInIfThenElse [ + + | thenBlock thenBlock2 elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + if i > 3: + y() + if i < 5: + print(i) + else: + a()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + thenBlock := startBlock nextTrueBlock. + self assert: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first class isOfType: FASTPyCall). + self assert: (thenBlock statements second class isOfType: FASTPyComparisonOperator). + + thenBlock2 := thenBlock nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyCall). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyCall). + + nullBlock := thenBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock identicalTo: elseBlock nextBlock. + self assert: nullBlock identicalTo: thenBlock2 nextBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - match' } +FASTPythonCFGTest >> testFunctionWithMatch [ + + | case1 case2 defaultCase lastBlock | + self buildCFGForFunction: 'def f(day): + a() + match day: + case "Saturday" | "Sunday": + print(f"{day} is a weekend.") + case "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday": + print(f"{day} is a weekday.") + case _: + print("That''s not a valid day of the week.") + b()'. + + self assert: startBlock isConditional. + self assert: startBlock isSwitch. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 3. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + self assert: ((startBlock patterns at: 1) isOfType: FASTPyUnionPattern). + case1 := startBlock nextBlocks at: 1. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + self assert: ((startBlock patterns at: 2) isOfType: FASTPyUnionPattern). + case2 := startBlock nextBlocks at: 2. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + self assert: (startBlock patterns at: 3) isNil. + defaultCase := startBlock nextBlocks at: 3. + self assert: defaultCase equals: startBlock defaultCase. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + lastBlock := case1 nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: case2 nextBlock. + self assert: lastBlock equals: defaultCase nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - match' } +FASTPythonCFGTest >> testFunctionWithMatchWith2IdenticalCase [ + "If two cases have the same pattern, only the first one wins." + | case1 defaultCase lastBlock | + self buildCFGForFunction: 'def f(day): + a() + match day: + case 1: + a() + case 1: + pass + case _: + c() + b()'. + + self assert: startBlock isConditional. + self assert: startBlock isSwitch. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + self assert: ((startBlock patterns at: 1) isOfType: FASTPyInteger). + case1 := startBlock nextBlocks at: 1. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + self assert: (startBlock patterns at: 2) isNil. + defaultCase := startBlock nextBlocks at: 2. + self assert: defaultCase equals: startBlock defaultCase. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + lastBlock := case1 nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: defaultCase nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - match' } +FASTPythonCFGTest >> testFunctionWithMatchWithCondition [ + + | case1 case1Pattern case2 defaultCase lastBlock | + self buildCFGForFunction: 'def f(day): + a() + match day: + case 1 if n > 10: + a() + case 1: + b() + case _: + c() + b()'. + + self assert: startBlock isConditional. + self assert: startBlock isSwitch. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 2. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: (startBlock statements second class isOfType: FASTPyIdentifier). + self assert: startBlock nextBlocks size equals: 3. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + case1Pattern := startBlock patterns at: 1. + self assert: case1Pattern isCollection. + self assert: (case1Pattern first isOfType: FASTPyInteger). + self assert: (case1Pattern second isOfType: FASTPyComparisonOperator). + case1 := startBlock nextBlocks at: 1. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + self assert: ((startBlock patterns at: 2) isOfType: FASTPyInteger). + case2 := startBlock nextBlocks at: 2. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + self assert: (startBlock patterns at: 3) isNil. + defaultCase := startBlock nextBlocks at: 3. + self assert: defaultCase equals: startBlock defaultCase. + self deny: case1 isConditional. + self deny: case1 isFinal. + self assert: case1 statements size equals: 1. + self assert: (case1 statements first isOfType: FASTPyCall). + + lastBlock := case1 nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: case2 nextBlock. + self assert: lastBlock equals: defaultCase nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testFunctionWithOneStatement [ + + self buildCFGForFunction: 'def funct(): + print("Hello")'. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testFunctionWithSimpleReturn [ + + self buildCFGForFunction: 'def funct(): + i = 0 + i += 4 + print(i) + return i'. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 4. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests' } +FASTPythonCFGTest >> testFunctionWithSimpleStatements [ + + self buildCFGForFunction: 'def funct(): + i = 0 + i += 4 + print(i)'. + + self assert: startBlock isStart. + self assert: startBlock isFinal. + self assert: startBlock statements size equals: 3. + self assertEmpty: startBlock nextBlocks +] + +{ #category : 'tests - try' } +FASTPythonCFGTest >> testFunctionWithTry [ + + | tryBlock exceptBlock lastBlock | + self buildCFGForFunction: 'def f(day): + a() + try: + b() + c() + d() + except Exception1: + e() + f()'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: startBlock nextBlocks size equals: 1. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + tryBlock := startBlock nextBlock. + self assert: tryBlock isConditional. + self assert: tryBlock isTry. + self deny: tryBlock isFinal. + self assert: tryBlock statements size equals: 3. + self assert: (tryBlock statements first isOfType: FASTPyCall). + self assert: (tryBlock statements second isOfType: FASTPyCall). + self assert: (tryBlock statements third isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 1) isOfType: FASTPyIdentifier). + exceptBlock := tryBlock nextBlocks at: 1. + self deny: exceptBlock isConditional. + self deny: exceptBlock isFinal. + self assert: exceptBlock statements size equals: 1. + self assert: (exceptBlock statements first isOfType: FASTPyCall). + + self assert: (tryBlock patterns at: 2) isNil. + lastBlock := tryBlock nextBlocks at: 2. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: exceptBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - try' } +FASTPythonCFGTest >> testFunctionWithTryWihtMultipleExcepts [ + + | tryBlock exceptBlock exceptBlock2 exceptBlock3 lastBlock | + self buildCFGForFunction: 'def f(day): + a() + try: + b() + c() + d() + except Exception1: + e() + except Exception2: + f() + except Exception3: + g() + h()'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: startBlock nextBlocks size equals: 1. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + tryBlock := startBlock nextBlock. + self assert: tryBlock isConditional. + self assert: tryBlock isTry. + self deny: tryBlock isFinal. + self assert: tryBlock statements size equals: 3. + self assert: (tryBlock statements first isOfType: FASTPyCall). + self assert: (tryBlock statements second isOfType: FASTPyCall). + self assert: (tryBlock statements third isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 1) isOfType: FASTPyIdentifier). + exceptBlock := tryBlock nextBlocks at: 1. + self deny: exceptBlock isConditional. + self deny: exceptBlock isFinal. + self assert: exceptBlock statements size equals: 1. + self assert: (exceptBlock statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 2) isOfType: FASTPyIdentifier). + exceptBlock2 := tryBlock nextBlocks at: 2. + self deny: exceptBlock2 isConditional. + self deny: exceptBlock2 isFinal. + self assert: exceptBlock2 statements size equals: 1. + self assert: (exceptBlock2 statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 3) isOfType: FASTPyIdentifier). + exceptBlock3 := tryBlock nextBlocks at: 3. + self deny: exceptBlock3 isConditional. + self deny: exceptBlock3 isFinal. + self assert: exceptBlock3 statements size equals: 1. + self assert: (exceptBlock3 statements first isOfType: FASTPyCall). + + self assert: (tryBlock patterns at: 4) isNil. + lastBlock := tryBlock nextBlocks at: 4. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: exceptBlock nextBlock. + self assert: lastBlock equals: exceptBlock2 nextBlock. + self assert: lastBlock equals: exceptBlock3 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - try' } +FASTPythonCFGTest >> testFunctionWithTryWithElse [ + + | tryBlock exceptBlock exceptBlock2 exceptBlock3 elseBlock lastBlock | + self buildCFGForFunction: 'def f(day): + a() + try: + b() + c() + d() + except Exception1: + e() + except Exception2: + f() + except Exception3: + g() + else: + h() + i()'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: startBlock nextBlocks size equals: 1. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + tryBlock := startBlock nextBlock. + self assert: tryBlock isConditional. + self assert: tryBlock isTry. + self deny: tryBlock isFinal. + self assert: tryBlock statements size equals: 3. + self assert: (tryBlock statements first isOfType: FASTPyCall). + self assert: (tryBlock statements second isOfType: FASTPyCall). + self assert: (tryBlock statements third isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 1) isOfType: FASTPyIdentifier). + exceptBlock := tryBlock nextBlocks at: 1. + self deny: exceptBlock isConditional. + self deny: exceptBlock isFinal. + self assert: exceptBlock statements size equals: 1. + self assert: (exceptBlock statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 2) isOfType: FASTPyIdentifier). + exceptBlock2 := tryBlock nextBlocks at: 2. + self deny: exceptBlock2 isConditional. + self deny: exceptBlock2 isFinal. + self assert: exceptBlock2 statements size equals: 1. + self assert: (exceptBlock2 statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 3) isOfType: FASTPyIdentifier). + exceptBlock3 := tryBlock nextBlocks at: 3. + self deny: exceptBlock3 isConditional. + self deny: exceptBlock3 isFinal. + self assert: exceptBlock3 statements size equals: 1. + self assert: (exceptBlock3 statements first isOfType: FASTPyCall). + + + self assert: ((tryBlock patterns at: 4) isNil). + elseBlock := tryBlock nextBlocks at: 4. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + lastBlock := elseBlock nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: exceptBlock nextBlock. + self assert: lastBlock equals: exceptBlock2 nextBlock. + self assert: lastBlock equals: exceptBlock3 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - try' } +FASTPythonCFGTest >> testFunctionWithTryWithElseAndFinally [ + + | tryBlock exceptBlock exceptBlock2 exceptBlock3 elseBlock lastBlock | + self buildCFGForFunction: 'def f(day): + a() + try: + b() + c() + d() + except Exception1: + e() + except Exception2: + f() + except Exception3: + g() + else: + h() + finally: + i() + j()'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: startBlock nextBlocks size equals: 1. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + tryBlock := startBlock nextBlock. + self assert: tryBlock isConditional. + self assert: tryBlock isTry. + self deny: tryBlock isFinal. + self assert: tryBlock statements size equals: 3. + self assert: (tryBlock statements first isOfType: FASTPyCall). + self assert: (tryBlock statements second isOfType: FASTPyCall). + self assert: (tryBlock statements third isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 1) isOfType: FASTPyIdentifier). + exceptBlock := tryBlock nextBlocks at: 1. + self deny: exceptBlock isConditional. + self deny: exceptBlock isFinal. + self assert: exceptBlock statements size equals: 1. + self assert: (exceptBlock statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 2) isOfType: FASTPyIdentifier). + exceptBlock2 := tryBlock nextBlocks at: 2. + self deny: exceptBlock2 isConditional. + self deny: exceptBlock2 isFinal. + self assert: exceptBlock2 statements size equals: 1. + self assert: (exceptBlock2 statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 3) isOfType: FASTPyIdentifier). + exceptBlock3 := tryBlock nextBlocks at: 3. + self deny: exceptBlock3 isConditional. + self deny: exceptBlock3 isFinal. + self assert: exceptBlock3 statements size equals: 1. + self assert: (exceptBlock3 statements first isOfType: FASTPyCall). + + self assert: (tryBlock patterns at: 4) isNil. + elseBlock := tryBlock nextBlocks at: 4. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + + lastBlock := elseBlock nextBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: exceptBlock nextBlock. + self assert: lastBlock equals: exceptBlock2 nextBlock. + self assert: lastBlock equals: exceptBlock3 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 2. + self assert: (lastBlock statements first isOfType: FASTPyCall). + self assert: (lastBlock statements second isOfType: FASTPyCall) +] + +{ #category : 'tests - try' } +FASTPythonCFGTest >> testFunctionWithTryWithFinally [ + + | tryBlock exceptBlock exceptBlock2 exceptBlock3 lastBlock | + self buildCFGForFunction: 'def f(day): + a() + try: + b() + c() + d() + except Exception1: + e() + except Exception2: + f() + except Exception3: + g() + finally: + h() + i()'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + self assert: startBlock nextBlocks size equals: 1. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + tryBlock := startBlock nextBlock. + self assert: tryBlock isConditional. + self assert: tryBlock isTry. + self deny: tryBlock isFinal. + self assert: tryBlock statements size equals: 3. + self assert: (tryBlock statements first isOfType: FASTPyCall). + self assert: (tryBlock statements second isOfType: FASTPyCall). + self assert: (tryBlock statements third isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 1) isOfType: FASTPyIdentifier). + exceptBlock := tryBlock nextBlocks at: 1. + self deny: exceptBlock isConditional. + self deny: exceptBlock isFinal. + self assert: exceptBlock statements size equals: 1. + self assert: (exceptBlock statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 2) isOfType: FASTPyIdentifier). + exceptBlock2 := tryBlock nextBlocks at: 2. + self deny: exceptBlock2 isConditional. + self deny: exceptBlock2 isFinal. + self assert: exceptBlock2 statements size equals: 1. + self assert: (exceptBlock2 statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 3) isOfType: FASTPyIdentifier). + exceptBlock3 := tryBlock nextBlocks at: 3. + self deny: exceptBlock3 isConditional. + self deny: exceptBlock3 isFinal. + self assert: exceptBlock3 statements size equals: 1. + self assert: (exceptBlock3 statements first isOfType: FASTPyCall). + + self assert: ((tryBlock patterns at: 4) isNil). + lastBlock := tryBlock nextBlocks at: 4. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: exceptBlock nextBlock. + self assert: lastBlock equals: exceptBlock2 nextBlock. + self assert: lastBlock equals: exceptBlock3 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 2. + self assert: (lastBlock statements first isOfType: FASTPyCall). + self assert: (lastBlock statements second isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhile [ + + | whileBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + i += 1 + print(i)'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + whileBlock := startBlock nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyAugmentedAssignment). + self assert: (whileBlock statements second isOfType: FASTPyCall). + self assert: whileBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileBreakingInWhile [ + + | trueWhile whileConditionalBlock2 thenBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + while i < 2: + b() + break + c() + d() + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + trueWhile := startBlock nextTrueBlock. + self deny: trueWhile isConditional. + self deny: trueWhile isFinal. + self assert: trueWhile statements size equals: 1. + self assert: (trueWhile statements first isOfType: FASTPyCall). + + whileConditionalBlock2 := trueWhile nextBlock. + self assert: whileConditionalBlock2 isConditional. + self deny: whileConditionalBlock2 isFinal. + self assert: whileConditionalBlock2 statements size equals: 1. + self assert: (whileConditionalBlock2 statements first isOfType: FASTPyComparisonOperator). + + thenBlock := whileConditionalBlock2 nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := whileConditionalBlock2 nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock equals: thenBlock nextBlock. + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileBreakingInWhile2 [ + + | whileCondition ifCondition then else null | + self buildCFGForFunction: 'def f(i): + while i < 4: + while i < 2: + if i < 1: + break + else: + a()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + whileCondition := startBlock nextTrueBlock. + self assert: whileCondition isConditional. + self deny: whileCondition isFinal. + self assert: whileCondition statements size equals: 1. + self assert: (whileCondition statements first isOfType: FASTPyComparisonOperator). + self assert: whileCondition nextFalseBlock equals: startBlock. + + ifCondition := whileCondition nextTrueBlock. + self assert: ifCondition isConditional. + self deny: ifCondition isFinal. + self assert: ifCondition statements size equals: 1. + self assert: (ifCondition statements first isOfType: FASTPyComparisonOperator). + + then := ifCondition nextTrueBlock. + self deny: then isConditional. + self deny: then isFinal. + self assert: then statements size equals: 1. + self assert: (then statements first isOfType: FASTPyBreakStatement). + self assert: then nextBlock equals: startBlock. + + else := ifCondition nextFalseBlock. + self deny: else isConditional. + self deny: else isFinal. + self assert: else statements size equals: 1. + self assert: (else statements first isOfType: FASTPyCall). + self assert: else nextBlock equals: whileCondition. + + null := startBlock nextFalseBlock. + self assert: null isNullBlock. + self assert: null isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileDoesNotMixWithPreviousStatements [ + "Since the while loop, we should not mix its condition with previous statements. " + + | whileCondition whileBlock nullBlock | + self buildCFGForFunction: 'def f(i): + y() + while i < 4: + i += 1 + print(i)'. + + self deny: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyCall). + + whileCondition := startBlock nextBlock. + self assert: whileCondition isConditional. + self deny: whileCondition isFinal. + self assert: whileCondition statements size equals: 1. + self assert: (whileCondition statements first class isOfType: FASTPyComparisonOperator). + self assert: whileCondition nextBlocks size equals: 2. + self assert: (whileCondition nextBlocks select: #isNullBlock) size equals: 1. + + whileBlock := whileCondition nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyAugmentedAssignment). + self assert: (whileBlock statements second isOfType: FASTPyCall). + self assert: whileBlock nextBlock equals: whileCondition . + + nullBlock := whileCondition nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreak [ + + | whileBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + y() + break + x()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + whileBlock := startBlock nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyCall). + self assert: (whileBlock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: whileBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThen [ + + | ifConditionalBlock thenBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThen2 [ + + | ifConditionalBlock thenBlock endOfWhile nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c() + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + endOfWhile := ifConditionalBlock nextFalseBlock. + self deny: endOfWhile isConditional. + self deny: endOfWhile isFinal. + self assert: endOfWhile statements size equals: 1. + self assert: (endOfWhile statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThenBreakingAndElse [ + + | ifConditionalBlock thenBlock esleBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c() + else: + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + esleBlock := ifConditionalBlock nextFalseBlock. + self deny: esleBlock isConditional. + self deny: esleBlock isFinal. + self assert: esleBlock statements size equals: 1. + self assert: (esleBlock statements first isOfType: FASTPyCall). + self assert: esleBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThenBreakingAndElseBreaking [ + + | ifConditionalBlock thenBlock elseblock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c() + else: + d() + break + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elseblock := ifConditionalBlock nextFalseBlock. + self deny: elseblock isConditional. + self deny: elseblock isFinal. + self assert: elseblock statements size equals: 2. + self assert: (elseblock statements first isOfType: FASTPyCall). + self assert: (elseblock statements second isOfType: FASTPyBreakStatement). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: thenBlock nextBlock equals: nullBlock. + self assert: elseblock nextBlock equals: nullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThenElifAndElseAllBreaking [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c() + elif i > 1: + d() + break + e() + else: + f() + break + g() + h()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyBreakStatement). + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock nextBlock. + self assert: lastBlock equals: elifBlock nextBlock. + self assert: lastBlock equals: elseBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakInIfThenElifBreakingAndElse [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + elif i > 1: + c() + break + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: elifBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithBreakingIfThenElse [ + + | ifConditionalBlock thenBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + break + c() + else: + d() + break + e() + f() + g()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyBreakStatement). + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock nextBlock. + self assert: lastBlock equals: elseBlock nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinue [ + + | whileBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + y() + continue + x()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + whileBlock := startBlock nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyCall). + self assert: (whileBlock statements second isOfType: FASTPyContinueStatement). + self assert: whileBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThen [ + + | ifConditionalBlock thenBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThen2 [ + + | ifConditionalBlock thenBlock endOfWhile nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c() + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + endOfWhile := ifConditionalBlock nextFalseBlock. + self deny: endOfWhile isConditional. + self deny: endOfWhile isFinal. + self assert: endOfWhile statements size equals: 1. + self assert: (endOfWhile statements first isOfType: FASTPyCall). + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThenContinuingAndElse [ + + | ifConditionalBlock thenBlock esleBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c() + else: + d()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + esleBlock := ifConditionalBlock nextFalseBlock. + self deny: esleBlock isConditional. + self deny: esleBlock isFinal. + self assert: esleBlock statements size equals: 1. + self assert: (esleBlock statements first isOfType: FASTPyCall). + self assert: esleBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThenContinuingAndElseContinuing [ + + | ifConditionalBlock thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c() + else: + d() + continue + e()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assert: (startBlock nextBlocks select: #isNullBlock) size equals: 1. + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + nullBlock := startBlock nextFalseBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThenElifAndElseAllContinuing [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c() + elif i > 1: + d() + continue + e() + else: + f() + continue + g() + h()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyContinueStatement). + self assert: elifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinueInIfThenElifContinuingAndElse [ + + | ifConditionalBlock thenBlock elifConditionalBlock elifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + elif i > 1: + c() + continue + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + elifBlock := elifConditionalBlock nextTrueBlock. + self deny: elifBlock isConditional. + self deny: elifBlock isFinal. + self assert: elifBlock statements size equals: 2. + self assert: (elifBlock statements first isOfType: FASTPyCall). + self assert: (elifBlock statements second isOfType: FASTPyContinueStatement). + self assert: elifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithContinuingIfThenElse [ + + | ifConditionalBlock thenBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + continue + c() + else: + d() + continue + e() + f() + g()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 2. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: (thenBlock statements second isOfType: FASTPyContinueStatement). + self assert: thenBlock nextBlock equals: startBlock. + + elseBlock := ifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 2. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: (elseBlock statements second isOfType: FASTPyContinueStatement). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithElseWithBreakInAllBranches [ + + | whileBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + print(i) + break + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + whileBlock := startBlock nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyCall). + self assert: (whileBlock statements second isOfType: FASTPyBreakStatement). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := elseBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal. + self assert: nullBlock equals: whileBlock nextBlock +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithElseWithBreakInIf [ + + | whileBlock thenBlock elseBlock nullBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + print(i) + if 1 > 2: + break + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + whileBlock := startBlock nextTrueBlock. + self assert: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 2. + self assert: (whileBlock statements first isOfType: FASTPyCall). + self assert: (whileBlock statements second isOfType: FASTPyComparisonOperator). + self assert: whileBlock nextFalseBlock equals: startBlock. + + thenBlock := whileBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyBreakStatement). + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). + + nullBlock := elseBlock nextBlock. + self assert: nullBlock isNullBlock. + self assert: nullBlock isFinal. + self assert: nullBlock equals: thenBlock nextBlock +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithElseWithoutBreak [ + + | whileBlock elseBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + print(i) + else: + pass'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + whileBlock := startBlock nextTrueBlock. + self deny: whileBlock isConditional. + self deny: whileBlock isFinal. + self assert: whileBlock statements size equals: 1. + self assert: (whileBlock statements first isOfType: FASTPyCall). + self assert: whileBlock nextBlock equals: startBlock. + + elseBlock := startBlock nextFalseBlock. + self deny: elseBlock isNullBlock. + self assert: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyPassStatement). +] + +{ #category : 'tests - while' } +FASTPythonCFGTest >> testFunctionWithWhileWithIfInElif [ + + | ifConditionalBlock thenBlock elifConditionalBlock ifConditionalBlock2 thenBlock2 endOfElifBlock elseBlock lastBlock | + self buildCFGForFunction: 'def f(i): + while i < 4: + a() + if i > 2: + b() + elif i > 1: + c() + if i < 1.5: + break + d() + else: + e() + f()'. + + self assert: startBlock isConditional. + self deny: startBlock isFinal. + self assert: startBlock statements size equals: 1. + self assert: (startBlock statements first class isOfType: FASTPyComparisonOperator). + self assert: startBlock nextBlocks size equals: 2. + self assertEmpty: (startBlock nextBlocks select: #isNullBlock). + + ifConditionalBlock := startBlock nextTrueBlock. + self assert: ifConditionalBlock isConditional. + self deny: ifConditionalBlock isFinal. + self assert: ifConditionalBlock statements size equals: 2. + self assert: (ifConditionalBlock statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock statements second isOfType: FASTPyComparisonOperator). + + thenBlock := ifConditionalBlock nextTrueBlock. + self deny: thenBlock isConditional. + self deny: thenBlock isFinal. + self assert: thenBlock statements size equals: 1. + self assert: (thenBlock statements first isOfType: FASTPyCall). + self assert: thenBlock nextBlock equals: startBlock. + + elifConditionalBlock := ifConditionalBlock nextFalseBlock. + self assert: elifConditionalBlock isConditional. + self deny: elifConditionalBlock isFinal. + self assert: elifConditionalBlock statements size equals: 1. + self assert: (elifConditionalBlock statements first isOfType: FASTPyComparisonOperator). + + ifConditionalBlock2 := elifConditionalBlock nextTrueBlock. + self assert: ifConditionalBlock2 isConditional. + self deny: ifConditionalBlock2 isFinal. + self assert: ifConditionalBlock2 statements size equals: 2. + self assert: (ifConditionalBlock2 statements first isOfType: FASTPyCall). + self assert: (ifConditionalBlock2 statements second isOfType: FASTPyComparisonOperator). + + thenBlock2 := ifConditionalBlock2 nextTrueBlock. + self deny: thenBlock2 isConditional. + self deny: thenBlock2 isFinal. + self assert: thenBlock2 statements size equals: 1. + self assert: (thenBlock2 statements first isOfType: FASTPyBreakStatement). + + endOfElifBlock := ifConditionalBlock2 nextFalseBlock. + self deny: endOfElifBlock isConditional. + self deny: endOfElifBlock isFinal. + self assert: endOfElifBlock statements size equals: 1. + self assert: (endOfElifBlock statements first isOfType: FASTPyCall). + self assert: endOfElifBlock nextBlock equals: startBlock. + + elseBlock := elifConditionalBlock nextFalseBlock. + self deny: elseBlock isConditional. + self deny: elseBlock isFinal. + self assert: elseBlock statements size equals: 1. + self assert: (elseBlock statements first isOfType: FASTPyCall). + self assert: elseBlock nextBlock equals: startBlock. + + lastBlock := startBlock nextFalseBlock. + self deny: lastBlock isNullBlock. + self assert: lastBlock equals: thenBlock2 nextBlock. + self assert: lastBlock isFinal. + self assert: lastBlock statements size equals: 1. + self assert: (lastBlock statements first isOfType: FASTPyCall) +] diff --git a/src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st b/src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st index fae1751..20fda7f 100644 --- a/src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st +++ b/src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st @@ -84,7 +84,7 @@ FASTPythonImporterTest class >> traitsToTest [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithAttribute " self parse: 'with get() as container.resource: pass'. @@ -156,7 +156,7 @@ FASTPythonImporterTest >> testAsPatternWithAttribute [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithList " self parse: 'with open() as [reader, writer]: pass'. @@ -232,7 +232,7 @@ FASTPythonImporterTest >> testAsPatternWithList [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithSourceAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithSourceAttributeAccess " self parse: 'with x.y as f: pass'. @@ -293,7 +293,7 @@ FASTPythonImporterTest >> testAsPatternWithSourceAttributeAccess [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithSourceCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithSourceCall " self parse: 'with x() as f: pass'. @@ -355,7 +355,7 @@ FASTPythonImporterTest >> testAsPatternWithSourceCall [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithSourceIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithSourceIdentifier " self parse: 'with x as f: pass'. @@ -406,7 +406,7 @@ FASTPythonImporterTest >> testAsPatternWithSourceIdentifier [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithSourceSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithSourceSubscript " self parse: 'with x[y] as f: pass'. @@ -474,7 +474,7 @@ FASTPythonImporterTest >> testAsPatternWithSourceSubscript [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithSubscript " self parse: 'with get() as targets[1][0]: pass'. @@ -574,7 +574,7 @@ FASTPythonImporterTest >> testAsPatternWithSubscript [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testAsPatternWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAsPatternWithTuple " self parse: 'with open() as (f, g): pass'. @@ -650,7 +650,7 @@ FASTPythonImporterTest >> testAsPatternWithTuple [ { #category : 'tests - statements' } FASTPythonImporterTest >> testAssertStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssertStatement " self parse: 'def aFunction(a, b): @@ -724,7 +724,7 @@ FASTPythonImporterTest >> testAssertStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testAssertStatementWithConcatenatedString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssertStatementWithConcatenatedString " self parse: 'assert 0, "Could not find method in self.functions and no "\ @@ -776,7 +776,7 @@ FASTPythonImporterTest >> testAssertStatementWithConcatenatedString [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignment [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignment " self parse: 'x = 1'. @@ -812,7 +812,7 @@ FASTPythonImporterTest >> testAssignment [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInAttribute " self parse: 'x.y = 1'. @@ -857,7 +857,7 @@ FASTPythonImporterTest >> testAssignmentInAttribute [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInList " self parse: '[ remote ] = 1'. @@ -901,7 +901,7 @@ FASTPythonImporterTest >> testAssignmentInList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInPatternList " self parse: 'a, b = 1, 2'. @@ -964,7 +964,7 @@ FASTPythonImporterTest >> testAssignmentInPatternList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInSlice [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInSlice " self parse: 'lst[i:j] = seq'. @@ -1027,7 +1027,7 @@ FASTPythonImporterTest >> testAssignmentInSlice [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInSubscript " self parse: 'variables[1] = 1'. @@ -1081,7 +1081,7 @@ FASTPythonImporterTest >> testAssignmentInSubscript [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentInTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentInTuple " self parse: '(a, b) = x'. @@ -1127,7 +1127,7 @@ FASTPythonImporterTest >> testAssignmentInTuple [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToAttribute " self parse: 'x = x.y'. @@ -1170,7 +1170,7 @@ FASTPythonImporterTest >> testAssignmentToAttribute [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToBinaryOperator " self parse: 'x = 10 / 2'. @@ -1226,7 +1226,7 @@ FASTPythonImporterTest >> testAssignmentToBinaryOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToBooleanOperator " self parse: 'x = x and y'. @@ -1278,7 +1278,7 @@ FASTPythonImporterTest >> testAssignmentToBooleanOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToCall " self parse: 'x = obj()'. @@ -1322,7 +1322,7 @@ FASTPythonImporterTest >> testAssignmentToCall [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToComparisonOperator " self parse: 'x = 1 > 3'. @@ -1375,7 +1375,7 @@ FASTPythonImporterTest >> testAssignmentToComparisonOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToComplexe " self parse: 'x = 1j'. @@ -1411,7 +1411,7 @@ FASTPythonImporterTest >> testAssignmentToComplexe [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToConditionalExpression " self parse: 'x = x if True else y'. @@ -1473,7 +1473,7 @@ FASTPythonImporterTest >> testAssignmentToConditionalExpression [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToDictionary " self parse: 'x = { 1:1 }'. @@ -1535,7 +1535,7 @@ FASTPythonImporterTest >> testAssignmentToDictionary [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToEllipsis " self parse: 'x = ...'. @@ -1570,7 +1570,7 @@ FASTPythonImporterTest >> testAssignmentToEllipsis [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToFalse " self parse: 'x = False'. @@ -1606,7 +1606,7 @@ FASTPythonImporterTest >> testAssignmentToFalse [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToFloat " self parse: 'x = 0.1'. @@ -1642,7 +1642,7 @@ FASTPythonImporterTest >> testAssignmentToFloat [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToIdentifier " self parse: 'x = element'. @@ -1676,7 +1676,7 @@ FASTPythonImporterTest >> testAssignmentToIdentifier [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToInteger " self parse: 'x = 1'. @@ -1712,7 +1712,7 @@ FASTPythonImporterTest >> testAssignmentToInteger [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToLambda " self parse: 'x = lambda x:x'. @@ -1766,7 +1766,7 @@ FASTPythonImporterTest >> testAssignmentToLambda [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToList " self parse: 'x = [ remote ]'. @@ -1808,7 +1808,7 @@ FASTPythonImporterTest >> testAssignmentToList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToList_comprehension " self parse: 'x = [random for i in range(3)]'. @@ -1895,7 +1895,7 @@ FASTPythonImporterTest >> testAssignmentToList_comprehension [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToNone " self parse: 'x = None'. @@ -1930,7 +1930,7 @@ FASTPythonImporterTest >> testAssignmentToNone [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToNotOperator " self parse: 'x = not old'. @@ -1973,7 +1973,7 @@ FASTPythonImporterTest >> testAssignmentToNotOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToPatternList " self parse: 'x = a, b'. @@ -2020,7 +2020,7 @@ FASTPythonImporterTest >> testAssignmentToPatternList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToSet " self parse: 'x = { 1 }'. @@ -2064,7 +2064,7 @@ FASTPythonImporterTest >> testAssignmentToSet [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToSetComprehension " self parse: 'x = {random for i in range(3)}'. @@ -2151,7 +2151,7 @@ FASTPythonImporterTest >> testAssignmentToSetComprehension [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToString " self parse: 'x = "Hello"'. @@ -2187,7 +2187,7 @@ FASTPythonImporterTest >> testAssignmentToString [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToSubscript " self parse: 'x = attrs[2]'. @@ -2240,7 +2240,7 @@ FASTPythonImporterTest >> testAssignmentToSubscript [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToTrue " self parse: 'x = True'. @@ -2276,7 +2276,7 @@ FASTPythonImporterTest >> testAssignmentToTrue [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToTuple " self parse: 'x = (1,)'. @@ -2320,7 +2320,7 @@ FASTPythonImporterTest >> testAssignmentToTuple [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentToUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentToUnaryOperator " self parse: 'x = -1'. @@ -2367,7 +2367,7 @@ FASTPythonImporterTest >> testAssignmentToUnaryOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAssignmentType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAssignmentType " self parse: 'int: x = 1'. @@ -2420,7 +2420,7 @@ FASTPythonImporterTest >> testAssignmentType [ { #category : 'tests - accesses' } FASTPythonImporterTest >> testAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccess " self parse: 'obj.count'. @@ -2445,7 +2445,7 @@ FASTPythonImporterTest >> testAttributeAccess [ { #category : 'tests - accesses' } FASTPythonImporterTest >> testAttributeAccessNested [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessNested " self parse: 'obj.toto.count'. @@ -2478,7 +2478,7 @@ FASTPythonImporterTest >> testAttributeAccessNested [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnAttribute " self parse: 'x.y.__dict__'. @@ -2511,7 +2511,7 @@ FASTPythonImporterTest >> testAttributeAccessOnAttribute [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnBinaryOperator " self parse: '(10 / 2).__dict__'. @@ -2558,7 +2558,7 @@ FASTPythonImporterTest >> testAttributeAccessOnBinaryOperator [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnBooleanOperator " self parse: '(x and y).__dict__'. @@ -2601,7 +2601,7 @@ FASTPythonImporterTest >> testAttributeAccessOnBooleanOperator [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnCall " self parse: 'obj().__dict__'. @@ -2636,7 +2636,7 @@ FASTPythonImporterTest >> testAttributeAccessOnCall [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnComparisonOperator " self parse: '(1 > 3).__dict__'. @@ -2680,7 +2680,7 @@ FASTPythonImporterTest >> testAttributeAccessOnComparisonOperator [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnComplexe " self parse: '1j.__dict__'. @@ -2707,7 +2707,7 @@ FASTPythonImporterTest >> testAttributeAccessOnComplexe [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnConditionalExpression " self parse: '(x if True else y).__dict__'. @@ -2760,7 +2760,7 @@ FASTPythonImporterTest >> testAttributeAccessOnConditionalExpression [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnDictionary " self parse: '{ 1:1 }.__dict__'. @@ -2813,7 +2813,7 @@ FASTPythonImporterTest >> testAttributeAccessOnDictionary [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnDictionary_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnDictionary_comprehension " self parse: '{ v:v for v in x }.__dict__'. @@ -2887,7 +2887,7 @@ FASTPythonImporterTest >> testAttributeAccessOnDictionary_comprehension [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnFalse " self parse: 'False.__dict__'. @@ -2914,7 +2914,7 @@ FASTPythonImporterTest >> testAttributeAccessOnFalse [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnFloat " self parse: '0.1.__dict__'. @@ -2941,7 +2941,7 @@ FASTPythonImporterTest >> testAttributeAccessOnFloat [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnIdentifier " self parse: 'obj.__dict__'. @@ -2966,7 +2966,7 @@ FASTPythonImporterTest >> testAttributeAccessOnIdentifier [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnList " self parse: '[ remote ].__dict__'. @@ -2999,7 +2999,7 @@ FASTPythonImporterTest >> testAttributeAccessOnList [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnList_comprehension " self parse: '[random for i in range(3)].__dict__'. @@ -3077,7 +3077,7 @@ FASTPythonImporterTest >> testAttributeAccessOnList_comprehension [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnNone " self parse: 'None.__dict__'. @@ -3103,7 +3103,7 @@ FASTPythonImporterTest >> testAttributeAccessOnNone [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnNotOperator " self parse: '(not old).__dict__'. @@ -3137,7 +3137,7 @@ FASTPythonImporterTest >> testAttributeAccessOnNotOperator [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnSet " self parse: '{ 1 }.__dict__'. @@ -3172,7 +3172,7 @@ FASTPythonImporterTest >> testAttributeAccessOnSet [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnSetComprehension " self parse: '{random for i in range(3)}.__dict__'. @@ -3250,7 +3250,7 @@ FASTPythonImporterTest >> testAttributeAccessOnSetComprehension [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnString " self parse: '"Hello".__dict__'. @@ -3277,7 +3277,7 @@ FASTPythonImporterTest >> testAttributeAccessOnString [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnSubscript " self parse: 'attrs[2].__dict__'. @@ -3321,7 +3321,7 @@ FASTPythonImporterTest >> testAttributeAccessOnSubscript [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnTrue " self parse: 'True.__dict__'. @@ -3348,7 +3348,7 @@ FASTPythonImporterTest >> testAttributeAccessOnTrue [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnTuple " self parse: '(a,b).__dict__'. @@ -3386,7 +3386,7 @@ FASTPythonImporterTest >> testAttributeAccessOnTuple [ { #category : 'tests - attributes' } FASTPythonImporterTest >> testAttributeAccessOnUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessOnUnaryOperator " self parse: '(-1).__dict__'. @@ -3424,7 +3424,7 @@ FASTPythonImporterTest >> testAttributeAccessOnUnaryOperator [ { #category : 'tests - accesses' } FASTPythonImporterTest >> testAttributeAccessWithReceiverParenthesised [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAttributeAccessWithReceiverParenthesised " self parse: '(obj).attribute'. @@ -3449,7 +3449,7 @@ FASTPythonImporterTest >> testAttributeAccessWithReceiverParenthesised [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentInAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentInAttribute " self parse: 'x.y+= 1'. @@ -3495,7 +3495,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentInAttribute [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentInIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentInIdentifier " self parse: 'element+= 1'. @@ -3532,7 +3532,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentInIdentifier [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentInSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentInSubscript " self parse: 'attrs[2]+= 1'. @@ -3587,7 +3587,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentInSubscript [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentInTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentInTuple " self parse: '(a,b)+= 1'. @@ -3637,7 +3637,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentInTuple [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToAttribute " self parse: 'a += x.y'. @@ -3681,7 +3681,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToAttribute [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToBinaryOperator " self parse: 'a += 10 / 2'. @@ -3738,7 +3738,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToBinaryOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToCall " self parse: 'a += obj()'. @@ -3783,7 +3783,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToCall [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToComplexe " self parse: 'a += 1j'. @@ -3820,7 +3820,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToComplexe [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToConditionalExpression " self parse: 'a += x if True else y'. @@ -3883,7 +3883,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToConditionalExpression [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToFloat " self parse: 'a += 0.1'. @@ -3920,7 +3920,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToFloat [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToIdentifier " self parse: 'a += element'. @@ -3955,7 +3955,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToIdentifier [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToInteger " self parse: 'a += 1'. @@ -3992,7 +3992,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToInteger [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToSubscript " self parse: 'a += attrs[2]'. @@ -4046,7 +4046,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToSubscript [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testAugmentedAssignmentToUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAugmentedAssignmentToUnaryOperator " self parse: 'a += -1'. @@ -4094,7 +4094,7 @@ FASTPythonImporterTest >> testAugmentedAssignmentToUnaryOperator [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwait " self parse: 'await future'. @@ -4118,7 +4118,7 @@ FASTPythonImporterTest >> testAwait [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitAttribute " self parse: 'f(x.y)'. @@ -4162,7 +4162,7 @@ FASTPythonImporterTest >> testAwaitAttribute [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitAwait " self parse: 'f((await x))'. @@ -4205,7 +4205,7 @@ FASTPythonImporterTest >> testAwaitAwait [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitCall " self parse: 'f(factory())'. @@ -4249,7 +4249,7 @@ FASTPythonImporterTest >> testAwaitCall [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitConditionalExpression " self parse: 'f((x if True else y))'. @@ -4312,7 +4312,7 @@ FASTPythonImporterTest >> testAwaitConditionalExpression [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitIdentifier " self parse: 'f(x)'. @@ -4346,7 +4346,7 @@ FASTPythonImporterTest >> testAwaitIdentifier [ { #category : 'tests - await' } FASTPythonImporterTest >> testAwaitSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testAwaitSubscript " self parse: 'f(x[2])'. @@ -4445,7 +4445,7 @@ FASTPythonImporterTest >> testBinaryOperatorInBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithAttribute " self parse: 'x.y + x.y'. @@ -4497,7 +4497,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithAttribute [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithBinaryOperator " self parse: '10 / 2 + 10 / 2'. @@ -4574,7 +4574,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithBooleanOperator " self parse: 'x and y + x and y'. @@ -4645,7 +4645,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithCall " self parse: 'obj() + obj()'. @@ -4699,7 +4699,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithCall [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithComparisonOperator " self parse: '1 > 3 + 1 > 3'. @@ -4762,7 +4762,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithComparisonOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithComplexe " self parse: '1j + 1j'. @@ -4800,7 +4800,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithComplexe [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithConditionalExpression " self parse: 'x if True else y + x if True else y'. @@ -4890,7 +4890,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithConditionalExpression [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithDictionary " self parse: '{ 1:1 } + { 1:1 }'. @@ -4980,7 +4980,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithDictionary [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithDictionary_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithDictionary_comprehension " self parse: '{ v:v for v in x } + { v:v for v in x }'. @@ -5111,7 +5111,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithDictionary_comprehension [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithFalse " self parse: 'False + False'. @@ -5149,7 +5149,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithFalse [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithFloat " self parse: '0.1 + 0.1'. @@ -5187,7 +5187,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithFloat [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithIdentifier " self parse: 'obj + obj'. @@ -5221,7 +5221,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithIdentifier [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithInteger " self parse: '1 + 1'. @@ -5259,7 +5259,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithInteger [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithList " self parse: '[ remote ] + [ remote ]'. @@ -5309,7 +5309,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithList [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithList_comprehension " self parse: '[random for i in range(3)] + [random for i in range(3)]'. @@ -5448,7 +5448,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithList_comprehension [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithNotOperator " self parse: '(not old) + (not old)'. @@ -5500,7 +5500,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithSet " self parse: '{ 1 } + { 1 }'. @@ -5554,7 +5554,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithSet [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithSetComprehension " self parse: '{random for i in range(3)} + {random for i in range(3)}'. @@ -5693,7 +5693,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithSetComprehension [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithString " self parse: '"Hello" + "Hello"'. @@ -5731,7 +5731,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithString [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithSubscript " self parse: 'attrs[2] + attrs[2]'. @@ -5802,7 +5802,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithSubscript [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithTrue " self parse: 'True + True'. @@ -5840,7 +5840,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithTrue [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithTuple " self parse: '(a,b) + (a,b)'. @@ -5900,7 +5900,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithTuple [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBinaryOperatorWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBinaryOperatorWithUnaryOperator " self parse: '(-1) + (-1)'. @@ -5959,7 +5959,7 @@ FASTPythonImporterTest >> testBinaryOperatorWithUnaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBitwiseOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBitwiseOperator " self parse: '0b00101101 & 0b00011011'. @@ -6042,7 +6042,7 @@ FASTPythonImporterTest >> testBooleanOperatorInBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithAttribute " self parse: 'x.y and x.y'. @@ -6094,7 +6094,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithAttribute [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithBinaryOperator " self parse: 'x & y and x & y'. @@ -6164,7 +6164,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithBooleanOperator " self parse: 'x and y and x and y'. @@ -6234,7 +6234,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithCall " self parse: 'obj() and obj()'. @@ -6288,7 +6288,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithCall [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithComparisonOperator " self parse: '1 > 3 and 1 > 3'. @@ -6359,7 +6359,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithComparisonOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithComplexe " self parse: '0j and 0j'. @@ -6397,7 +6397,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithComplexe [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithConditionalExpression " self parse: 'x if True else y and x if True else y'. @@ -6487,7 +6487,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithConditionalExpression [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithDictionary " self parse: '{ 1:1 } and { 1:1 }'. @@ -6577,7 +6577,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithDictionary [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithFalse " self parse: 'False and False'. @@ -6615,7 +6615,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithFalse [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithFloat " self parse: '0.0 and 0.0'. @@ -6653,7 +6653,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithFloat [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithIdentifier " self parse: 'obj and obj'. @@ -6687,7 +6687,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithIdentifier [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithInteger " self parse: '0 and 0'. @@ -6725,7 +6725,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithInteger [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithList " self parse: '[ ] and [ ]'. @@ -6759,7 +6759,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithList [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithNotOperator " self parse: 'not old and not old'. @@ -6811,7 +6811,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithSet " self parse: '{ 1 } and { 1 }'. @@ -6865,7 +6865,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithSet [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithString " self parse: '"Hello" and "Hello"'. @@ -6903,7 +6903,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithString [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithSubscript " self parse: 'attrs[2] and attrs[2]'. @@ -6974,7 +6974,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithSubscript [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithTrue " self parse: 'True and True'. @@ -7012,7 +7012,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithTrue [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithTuple " self parse: '(a,b) and (a,b)'. @@ -7072,7 +7072,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithTuple [ { #category : 'tests - operators' } FASTPythonImporterTest >> testBooleanOperatorWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBooleanOperatorWithUnaryOperator " self parse: '-1 and -1'. @@ -7131,7 +7131,7 @@ FASTPythonImporterTest >> testBooleanOperatorWithUnaryOperator [ { #category : 'tests - statements' } FASTPythonImporterTest >> testBreakStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testBreakStatement " self parse: 'while True: @@ -7172,7 +7172,7 @@ FASTPythonImporterTest >> testBreakStatement [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentAttribute " self parse: 'f(x.y)'. @@ -7216,7 +7216,7 @@ FASTPythonImporterTest >> testCalWithArgumentAttribute [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentAwait " self parse: 'f(await x)'. @@ -7259,7 +7259,7 @@ FASTPythonImporterTest >> testCalWithArgumentAwait [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentBinaryOperator " self parse: 'f(1 + x)'. @@ -7315,7 +7315,7 @@ FASTPythonImporterTest >> testCalWithArgumentBinaryOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentBooleanOperator " self parse: 'f(x or y)'. @@ -7368,7 +7368,7 @@ FASTPythonImporterTest >> testCalWithArgumentBooleanOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentCall " self parse: 'f(factory())'. @@ -7412,7 +7412,7 @@ FASTPythonImporterTest >> testCalWithArgumentCall [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentComparisonOperator " self parse: 'f(x > y)'. @@ -7461,7 +7461,7 @@ FASTPythonImporterTest >> testCalWithArgumentComparisonOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentComplexe " self parse: 'f(0j)'. @@ -7498,7 +7498,7 @@ FASTPythonImporterTest >> testCalWithArgumentComplexe [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentConditionalExpression " self parse: 'f(x if True else y)'. @@ -7561,7 +7561,7 @@ FASTPythonImporterTest >> testCalWithArgumentConditionalExpression [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentDictionary " self parse: 'f({ 1:x })'. @@ -7624,7 +7624,7 @@ FASTPythonImporterTest >> testCalWithArgumentDictionary [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentDictionaryComprehension " self parse: 'f({ v:x for v in y })'. @@ -7709,7 +7709,7 @@ FASTPythonImporterTest >> testCalWithArgumentDictionaryComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentDictionarySplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentDictionarySplat " self parse: 'f(**kwargs)'. @@ -7752,7 +7752,7 @@ FASTPythonImporterTest >> testCalWithArgumentDictionarySplat [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentEllipsis " self parse: 'f(...)'. @@ -7788,7 +7788,7 @@ FASTPythonImporterTest >> testCalWithArgumentEllipsis [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentFalse " self parse: 'f(False)'. @@ -7825,7 +7825,7 @@ FASTPythonImporterTest >> testCalWithArgumentFalse [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentFloat " self parse: 'f(0.0)'. @@ -7862,7 +7862,7 @@ FASTPythonImporterTest >> testCalWithArgumentFloat [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentIdentifier " self parse: 'f(x)'. @@ -7896,7 +7896,7 @@ FASTPythonImporterTest >> testCalWithArgumentIdentifier [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentInteger " self parse: 'f(0)'. @@ -7933,7 +7933,7 @@ FASTPythonImporterTest >> testCalWithArgumentInteger [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentLambda " self parse: 'f((lambda x:x))'. @@ -7988,7 +7988,7 @@ FASTPythonImporterTest >> testCalWithArgumentLambda [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentList " self parse: 'f([ 1 ])'. @@ -8034,7 +8034,7 @@ FASTPythonImporterTest >> testCalWithArgumentList [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentListComprehension " self parse: 'f([i + x for i in range(3)])'. @@ -8142,7 +8142,7 @@ FASTPythonImporterTest >> testCalWithArgumentListComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentListSplat " self parse: 'f(*args)'. @@ -8185,7 +8185,7 @@ FASTPythonImporterTest >> testCalWithArgumentListSplat [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentNone " self parse: 'f(None)'. @@ -8221,7 +8221,7 @@ FASTPythonImporterTest >> testCalWithArgumentNone [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentNotOperator " self parse: 'f((not old))'. @@ -8265,7 +8265,7 @@ FASTPythonImporterTest >> testCalWithArgumentNotOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentSet " self parse: 'f({ 1 })'. @@ -8311,7 +8311,7 @@ FASTPythonImporterTest >> testCalWithArgumentSet [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentSetComprehension " self parse: 'f({i + x for i in range(3) })'. @@ -8419,7 +8419,7 @@ FASTPythonImporterTest >> testCalWithArgumentSetComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentString " self parse: 'f("Hello")'. @@ -8456,7 +8456,7 @@ FASTPythonImporterTest >> testCalWithArgumentString [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentSubscript " self parse: 'f(x[2])'. @@ -8510,7 +8510,7 @@ FASTPythonImporterTest >> testCalWithArgumentSubscript [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentTrue " self parse: 'f(True)'. @@ -8547,7 +8547,7 @@ FASTPythonImporterTest >> testCalWithArgumentTrue [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentTuple " self parse: 'f((x, y))'. @@ -8595,7 +8595,7 @@ FASTPythonImporterTest >> testCalWithArgumentTuple [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCalWithArgumentUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCalWithArgumentUnaryOperator " self parse: 'f(-x)'. @@ -8640,7 +8640,7 @@ FASTPythonImporterTest >> testCalWithArgumentUnaryOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCall " self parse: 'print("Hello")'. @@ -8677,7 +8677,7 @@ FASTPythonImporterTest >> testCall [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithAttribute " self parse: 'function(CFG.seed)'. @@ -8721,7 +8721,7 @@ FASTPythonImporterTest >> testCallArgumentWithAttribute [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithBinaryOperator " self parse: 'function(30000/train_bs*epochs)'. @@ -8795,7 +8795,7 @@ FASTPythonImporterTest >> testCallArgumentWithBinaryOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithCall " self parse: 'function(data[0].replace(''case'',''''))'. @@ -8887,7 +8887,7 @@ FASTPythonImporterTest >> testCallArgumentWithCall [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithComparisonOperator " self parse: 'function(shape0!=resize)'. @@ -8936,7 +8936,7 @@ FASTPythonImporterTest >> testCallArgumentWithComparisonOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithDictionary " self parse: 'function({ @@ -9031,7 +9031,7 @@ FASTPythonImporterTest >> testCallArgumentWithDictionary [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithEllipsis " self parse: 'function(3, ...)'. @@ -9075,7 +9075,7 @@ FASTPythonImporterTest >> testCallArgumentWithEllipsis [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithKeywordArgument [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithKeywordArgument " self parse: 'function("/root/.cache/torch/hub/checkpoints/", exist_ok=True)'. @@ -9130,7 +9130,7 @@ FASTPythonImporterTest >> testCallArgumentWithKeywordArgument [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallArgumentWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallArgumentWithList " self parse: 'function(img, [pady, padx])'. @@ -9183,7 +9183,7 @@ FASTPythonImporterTest >> testCallArgumentWithList [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallChained [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallChained " self parse: 'function()(13)'. @@ -9229,7 +9229,7 @@ FASTPythonImporterTest >> testCallChained [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallLambda " self parse: '(lambda x: x > 0)(10)'. @@ -9303,7 +9303,7 @@ FASTPythonImporterTest >> testCallLambda [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnAttribute " self parse: 'obj.func()'. @@ -9338,7 +9338,7 @@ FASTPythonImporterTest >> testCallOnAttribute [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnCall " self parse: 'factory()()'. @@ -9373,7 +9373,7 @@ FASTPythonImporterTest >> testCallOnCall [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnConditionalExpression " self parse: '(x if True else y)()'. @@ -9427,7 +9427,7 @@ FASTPythonImporterTest >> testCallOnConditionalExpression [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnIdentifier " self parse: 'func()'. @@ -9453,7 +9453,7 @@ FASTPythonImporterTest >> testCallOnIdentifier [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnLambda " self parse: '(lambda x:x)()'. @@ -9499,7 +9499,7 @@ FASTPythonImporterTest >> testCallOnLambda [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallOnSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallOnSubscript " self parse: 'functions[2]()'. @@ -9544,7 +9544,7 @@ FASTPythonImporterTest >> testCallOnSubscript [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallSubscript " self parse: 'coll[1](True)'. @@ -9600,7 +9600,7 @@ FASTPythonImporterTest >> testCallSubscript [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallWithAttribute " self parse: 'tqdm.pandas()'. @@ -9635,7 +9635,7 @@ FASTPythonImporterTest >> testCallWithAttribute [ { #category : 'tests - calls' } FASTPythonImporterTest >> testCallWithGeneratorExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCallWithGeneratorExpression " self parse: 'sum(x * x for x in range(10)) '. @@ -9767,7 +9767,7 @@ FASTPythonImporterTest >> testChainedComparisonOperator [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinition " self parse: 'class AClass(): @@ -9796,7 +9796,7 @@ FASTPythonImporterTest >> testClassDefinition [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithMetaclass [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithMetaclass " self parse: 'class aClass(metaclass=MyMeta): pass'. @@ -9842,7 +9842,7 @@ FASTPythonImporterTest >> testClassDefinitionWithMetaclass [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithMetaclassCustomizations [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithMetaclassCustomizations " self parse: 'class aClass(metaclass=MyMeta, custom_arg=42): pass'. @@ -9905,7 +9905,7 @@ FASTPythonImporterTest >> testClassDefinitionWithMetaclassCustomizations [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithMultipleSuperclasses [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithMultipleSuperclasses " self parse: 'class aClass(Super1, Super2, Super3): pass'. @@ -9951,7 +9951,7 @@ FASTPythonImporterTest >> testClassDefinitionWithMultipleSuperclasses [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassAttribute " self parse: 'class aClass(module.Superclass): pass'. @@ -9996,7 +9996,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassAttribute [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassCall " self parse: 'class aClass(factory()): pass'. @@ -10042,7 +10042,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassCall [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassConditionalExpression " self parse: 'class aClass(Super1 if True else Super2): pass'. @@ -10106,7 +10106,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassConditionalExpression { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassIdentifier " self parse: 'class aClass(SuperClass): pass'. @@ -10142,7 +10142,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassIdentifier [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassListSplat " self parse: 'class aClass(*args): pass'. @@ -10186,7 +10186,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassListSplat [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithSuperclassSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithSuperclassSubscript " self parse: 'class aClass(classes[2]): pass'. @@ -10241,7 +10241,7 @@ FASTPythonImporterTest >> testClassDefinitionWithSuperclassSubscript [ { #category : 'tests - classes' } FASTPythonImporterTest >> testClassDefinitionWithTypeParameters [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testClassDefinitionWithTypeParameters " self parse: 'class Pair[K, V]: pass'. @@ -10298,7 +10298,7 @@ FASTPythonImporterTest >> testClassDefinitionWithTypeParameters [ { #category : 'tests - comments' } FASTPythonImporterTest >> testComment [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComment " self parse: '#There is only one comment'. @@ -10315,7 +10315,7 @@ FASTPythonImporterTest >> testComment [ { #category : 'tests - comments' } FASTPythonImporterTest >> testCommentInArgumentList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testCommentInArgumentList " self parse: 'funct( @@ -10387,7 +10387,7 @@ FASTPythonImporterTest >> testComparisonOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithAttribute " self parse: 'x.y is ... '. @@ -10430,7 +10430,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithAttribute [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithBinaryOperator " self parse: '1 + x is ... '. @@ -10485,7 +10485,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithBooleanOperator " self parse: 'x or y is ... '. @@ -10536,7 +10536,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithCall " self parse: 'obj() is ... '. @@ -10580,7 +10580,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithCall [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithComplexe " self parse: '0j is ... '. @@ -10615,7 +10615,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithComplexe [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithConditionalExpression " self parse: 'x if True else y is ... '. @@ -10676,7 +10676,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithConditionalExpression [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithDictionary " self parse: '{ 1:1 } is ... '. @@ -10739,7 +10739,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithDictionary [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithEllipsis " self parse: 'obj is ...'. @@ -10772,7 +10772,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithEllipsis [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithFalse " self parse: 'False is ... '. @@ -10807,7 +10807,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithFalse [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithFloat " self parse: '0.0 is ... '. @@ -10842,7 +10842,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithFloat [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithIdentifier " self parse: 'obj is ... '. @@ -10875,7 +10875,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithIdentifier [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithInteger " self parse: '0 is ... '. @@ -10910,7 +10910,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithInteger [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithList " self parse: '[ ] is ... '. @@ -10943,7 +10943,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithList [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithNone " self parse: 'None is ... '. @@ -10977,7 +10977,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithNone [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithNotOperator " self parse: 'not old is ... '. @@ -11019,7 +11019,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithSet " self parse: '{ 1 } is ... '. @@ -11063,7 +11063,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithSet [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithString " self parse: '"Hello" is ... '. @@ -11098,7 +11098,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithString [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithSubscript " self parse: 'attrs[2] is ... '. @@ -11151,7 +11151,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithSubscript [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithTrue " self parse: 'True is ... '. @@ -11186,7 +11186,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithTrue [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithTuple " self parse: '(a,b) is ... '. @@ -11233,7 +11233,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithTuple [ { #category : 'tests - operators' } FASTPythonImporterTest >> testComparisonOperatorWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComparisonOperatorWithUnaryOperator " self parse: '-1 is ... '. @@ -11279,7 +11279,7 @@ FASTPythonImporterTest >> testComparisonOperatorWithUnaryOperator [ { #category : 'tests - literals' } FASTPythonImporterTest >> testComplex [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testComplex " self parse: '42j'. @@ -11297,7 +11297,7 @@ FASTPythonImporterTest >> testComplex [ { #category : 'tests - literals' } FASTPythonImporterTest >> testConcatenatedString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConcatenatedString " self parse: 'f"Hello {name}" "Have a nice day"'. @@ -11348,7 +11348,7 @@ FASTPythonImporterTest >> testConcatenatedString [ { #category : 'tests' } FASTPythonImporterTest >> testConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpression " self parse: '"even" if x % 2 == 0 else "odd"'. @@ -11433,7 +11433,7 @@ FASTPythonImporterTest >> testConditionalExpression [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithAttribute " self parse: 'x.y if False else x.y'. @@ -11495,7 +11495,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithAttribute [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithBinaryOperator " self parse: '(y + x) if False else (y + x)'. @@ -11575,7 +11575,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithBinaryOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithBooleanOperator " self parse: '(x or y) if False else (x or y)'. @@ -11655,7 +11655,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithBooleanOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithCall " self parse: 'factory() if False else factory()'. @@ -11719,7 +11719,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithCall [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithComparisonOperator " self parse: '(x > y) if False else (x > y)'. @@ -11792,7 +11792,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithComparisonOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithComplexe " self parse: '0j if False else 0j'. @@ -11840,7 +11840,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithComplexe [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionAttribute " self parse: '1 if x.y else y'. @@ -11894,7 +11894,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionAttribute [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionBinaryOperator " self parse: '1 if (y + x) else y'. @@ -11957,7 +11957,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionBinaryOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionBooleanOperator " self parse: '1 if (x or y) else y'. @@ -12020,7 +12020,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionBooleanOperator { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionCall " self parse: '1 if factory() else y'. @@ -12075,7 +12075,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionCall [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionComparisonOperator " self parse: '1 if (x > y) else y'. @@ -12134,7 +12134,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionComparisonOperat { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionComplexe " self parse: '1 if 0j else y'. @@ -12181,7 +12181,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionComplexe [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionConditionalExpression " self parse: '1 if (x if True else y) else y'. @@ -12253,7 +12253,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionConditionalExpre { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionFalse " self parse: '1 if False else y'. @@ -12300,7 +12300,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionFalse [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionFloat " self parse: '1 if 0.0 else y'. @@ -12347,7 +12347,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionFloat [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionIdentifier " self parse: '1 if x else y'. @@ -12391,7 +12391,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionIdentifier [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionInteger " self parse: '1 if 0 else y'. @@ -12437,7 +12437,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionInteger [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionNotOperator " self parse: '1 if not old else y'. @@ -12491,7 +12491,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionNotOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionSubscript " self parse: '1 if functions[2] else y'. @@ -12554,7 +12554,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionSubscript [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionTrue " self parse: '1 if True else y'. @@ -12601,7 +12601,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionTrue [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionUnaryOperator " self parse: '1 if -x else y'. @@ -12656,7 +12656,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionUnaryOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithConditionalExpression " self parse: '(x if True else y) if False else (x if True else y)'. @@ -12753,7 +12753,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithConditionalExpression [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithDictionary " self parse: '{ 1:x } if False else { 1:x }'. @@ -12850,7 +12850,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithDictionary [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithDictionaryComprehension " self parse: '{ v:x for v in y } if False else { v:x for v in y }'. @@ -12991,7 +12991,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithDictionaryComprehension [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithEllipsis " self parse: '... if False else ...'. @@ -13037,7 +13037,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithEllipsis [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithFalse " self parse: 'False if False else False'. @@ -13084,7 +13084,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithFalse [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithFloat " self parse: '0.0 if False else 0.0'. @@ -13132,7 +13132,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithFloat [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithIdentifier " self parse: 'x if False else x'. @@ -13176,7 +13176,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithIdentifier [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithInteger " self parse: '0 if False else 0'. @@ -13224,7 +13224,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithInteger [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithLambda " self parse: '(lambda x:x) if False else (lambda x:x)'. @@ -13307,7 +13307,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithLambda [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithList " self parse: '[ 1 ] if False else [ 1 ]'. @@ -13371,7 +13371,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithList [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithListComprehension " self parse: '[i + x for i in range(3)] if False else [i + x for i in range(3)]'. @@ -13557,7 +13557,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithListComprehension [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithListSplat " self parse: '*args if False else *args'. @@ -13617,7 +13617,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithListSplat [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithNone " self parse: 'None if False else None'. @@ -13663,7 +13663,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithNone [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithNotOperator " self parse: 'not old if False else not old'. @@ -13725,7 +13725,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithNotOperator [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithPatternList " self parse: 'a, b if False else a, b'. @@ -13788,7 +13788,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithPatternList [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithSet " self parse: '{ 1 } if False else { 1 }'. @@ -13852,7 +13852,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithSet [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithSetComprehension " self parse: '{i + x for i in range(3) } if False else {i + x for i in range(3) }'. @@ -14038,7 +14038,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithSetComprehension [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithString " self parse: '"Hello" if False else "Hello"'. @@ -14086,7 +14086,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithString [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithSubscript " self parse: 'functions[2] if False else functions[2]'. @@ -14167,7 +14167,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithSubscript [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithTrue " self parse: 'True if False else True'. @@ -14214,7 +14214,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithTrue [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithTuple " self parse: '(x, y) if False else (x, y)'. @@ -14284,7 +14284,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithTuple [ { #category : 'tests - conditional expressions' } FASTPythonImporterTest >> testConditionalExpressionWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConditionalExpressionWithUnaryOperator " self parse: '-x if False else -x'. @@ -14349,7 +14349,7 @@ FASTPythonImporterTest >> testConditionalExpressionWithUnaryOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testConstrainedType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testConstrainedType " self parse: 'def f[T: int](): pass'. @@ -14425,7 +14425,7 @@ FASTPythonImporterTest >> testConstrainedType [ { #category : 'tests - statements' } FASTPythonImporterTest >> testContinueStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testContinueStatement " self parse: 'while True: @@ -14466,7 +14466,7 @@ FASTPythonImporterTest >> testContinueStatement [ { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecorator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecorator " self parse: '@decorator @@ -14515,7 +14515,7 @@ def funct(): { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorOnClassDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorOnClassDefinition " self parse: '@register_component @@ -14561,7 +14561,7 @@ class MyComponent: pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorOnFunctionDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorOnFunctionDefinition " self parse: '@public @@ -14608,7 +14608,7 @@ def func(): pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorOnMethodDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorOnMethodDefinition " self parse: 'class C(): @@ -14669,7 +14669,7 @@ FASTPythonImporterTest >> testDecoratorOnMethodDefinition [ { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorWithAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorWithAttributeAccess " self parse: '@functools.lru_cache @@ -14726,7 +14726,7 @@ def funct(): pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorWithCall " self parse: '@factory.make_decorator() @@ -14794,7 +14794,7 @@ def funct(): pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorWithLambda " self parse: '@(lambda f: f) @@ -14862,7 +14862,7 @@ def funct(): pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecoratorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecoratorWithSubscript " self parse: '@decorators[''auth''] @@ -14929,7 +14929,7 @@ def funct(): pass'. { #category : 'tests - decorators' } FASTPythonImporterTest >> testDecorators [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDecorators " self parse: '@decoratorA @@ -14992,7 +14992,7 @@ def funct(): { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameter " self parse: 'def f(x=1): pass'. @@ -15042,7 +15042,7 @@ FASTPythonImporterTest >> testDefaultParameter [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithAttribute " self parse: 'def f(x = x.y): pass'. @@ -15100,7 +15100,7 @@ FASTPythonImporterTest >> testDefaultParameterWithAttribute [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithAwait " self parse: 'def f(x = await x): pass'. @@ -15157,7 +15157,7 @@ FASTPythonImporterTest >> testDefaultParameterWithAwait [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithBinaryOperator " self parse: 'def f(x = 1 + x): pass'. @@ -15227,7 +15227,7 @@ FASTPythonImporterTest >> testDefaultParameterWithBinaryOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithBooleanOperator " self parse: 'def f(x = x or y): pass'. @@ -15294,7 +15294,7 @@ FASTPythonImporterTest >> testDefaultParameterWithBooleanOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithCall " self parse: 'def f(x = factory()): pass'. @@ -15353,7 +15353,7 @@ FASTPythonImporterTest >> testDefaultParameterWithCall [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithComparisonOperator " self parse: 'def f(x = x > y): pass'. @@ -15416,7 +15416,7 @@ FASTPythonImporterTest >> testDefaultParameterWithComparisonOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithComplexe " self parse: 'def f(x = 0j): pass'. @@ -15466,7 +15466,7 @@ FASTPythonImporterTest >> testDefaultParameterWithComplexe [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithConditionalExpression " self parse: 'def f(x = x if True else y): pass'. @@ -15543,7 +15543,7 @@ FASTPythonImporterTest >> testDefaultParameterWithConditionalExpression [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithDictionary " self parse: 'def f(x = { 1:x }): pass'. @@ -15620,7 +15620,7 @@ FASTPythonImporterTest >> testDefaultParameterWithDictionary [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithDictionaryComprehension " self parse: 'def f(x = { v:x for v in y }): pass'. @@ -15719,7 +15719,7 @@ FASTPythonImporterTest >> testDefaultParameterWithDictionaryComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithEllipsis " self parse: 'def f(x = ...): pass'. @@ -15768,7 +15768,7 @@ FASTPythonImporterTest >> testDefaultParameterWithEllipsis [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithFalse " self parse: 'def f(x = False): pass'. @@ -15818,7 +15818,7 @@ FASTPythonImporterTest >> testDefaultParameterWithFalse [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithFloat " self parse: 'def f(x = 0.0): pass'. @@ -15868,7 +15868,7 @@ FASTPythonImporterTest >> testDefaultParameterWithFloat [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithIdentifier " self parse: 'def f(x = x): pass'. @@ -15916,7 +15916,7 @@ FASTPythonImporterTest >> testDefaultParameterWithIdentifier [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithInteger " self parse: 'def f(x = 0): pass'. @@ -15966,7 +15966,7 @@ FASTPythonImporterTest >> testDefaultParameterWithInteger [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithLambda " self parse: 'def f(x = (lambda x:x)): pass'. @@ -16034,7 +16034,7 @@ FASTPythonImporterTest >> testDefaultParameterWithLambda [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithList " self parse: 'def f(x = [ 1 ]): pass'. @@ -16093,7 +16093,7 @@ FASTPythonImporterTest >> testDefaultParameterWithList [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithListComprehension " self parse: 'def f(x = [i + x for i in range(3)]): pass'. @@ -16216,7 +16216,7 @@ FASTPythonImporterTest >> testDefaultParameterWithListComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithNone " self parse: 'def f(x = None): pass'. @@ -16265,7 +16265,7 @@ FASTPythonImporterTest >> testDefaultParameterWithNone [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithNotOperator " self parse: 'def f(x = (not old)): pass'. @@ -16323,7 +16323,7 @@ FASTPythonImporterTest >> testDefaultParameterWithNotOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithSet " self parse: 'def f(x = { 1 }): pass'. @@ -16382,7 +16382,7 @@ FASTPythonImporterTest >> testDefaultParameterWithSet [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithSetComprehension " self parse: 'def f(x = {i + x for i in range(3) }): pass'. @@ -16505,7 +16505,7 @@ FASTPythonImporterTest >> testDefaultParameterWithSetComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithString " self parse: 'def f(x = "Hello"): pass'. @@ -16555,7 +16555,7 @@ FASTPythonImporterTest >> testDefaultParameterWithString [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithSubscript " self parse: 'def f(x = x[2]): pass'. @@ -16623,7 +16623,7 @@ FASTPythonImporterTest >> testDefaultParameterWithSubscript [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithTrue " self parse: 'def f(x = True): pass'. @@ -16673,7 +16673,7 @@ FASTPythonImporterTest >> testDefaultParameterWithTrue [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithTuple " self parse: 'def f(x = (x, y)): pass'. @@ -16735,7 +16735,7 @@ FASTPythonImporterTest >> testDefaultParameterWithTuple [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultParameterWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultParameterWithUnaryOperator " self parse: 'def f(x = -x): pass'. @@ -16794,7 +16794,7 @@ FASTPythonImporterTest >> testDefaultParameterWithUnaryOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameter " self parse: 'def f(c:int={}): pass'. @@ -16860,7 +16860,7 @@ FASTPythonImporterTest >> testDefaultTypedParameter [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithAttribute " self parse: 'def f(x: int = x.y): pass'. @@ -16935,7 +16935,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithAttribute [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithAwait " self parse: 'def f(x: int = await x): pass'. @@ -17009,7 +17009,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithAwait [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithBinaryOperator " self parse: 'def f(x: int = 1 + x): pass'. @@ -17096,7 +17096,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithBinaryOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithBooleanOperator " self parse: 'def f(x: int = x or y): pass'. @@ -17180,7 +17180,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithBooleanOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithCall " self parse: 'def f(x: int = factory()): pass'. @@ -17256,7 +17256,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithCall [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithComparisonOperator " self parse: 'def f(x: int = x > y): pass'. @@ -17336,7 +17336,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithComparisonOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithComplexe " self parse: 'def f(x: int = 0j): pass'. @@ -17404,7 +17404,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithComplexe [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithConditionalExpression " self parse: 'def f(x: int = x if True else y): pass'. @@ -17498,7 +17498,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithConditionalExpression [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithDictionary " self parse: 'def f(x: int = { 1:x }): pass'. @@ -17592,7 +17592,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithDictionary [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithDictionaryComprehension " self parse: 'def f(x: int = { v:x for v in y }): pass'. @@ -17708,7 +17708,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithDictionaryComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithEllipsis " self parse: 'def f(x: int = ...): pass'. @@ -17775,7 +17775,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithEllipsis [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithFalse " self parse: 'def f(x: int = False): pass'. @@ -17843,7 +17843,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithFalse [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithFloat " self parse: 'def f(x: int = 0.0): pass'. @@ -17911,7 +17911,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithFloat [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithIdentifier " self parse: 'def f(x: int = x): pass'. @@ -17976,7 +17976,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithIdentifier [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithInteger " self parse: 'def f(x: int = 0): pass'. @@ -18044,7 +18044,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithInteger [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithLambda " self parse: 'def f(x: int = (lambda x:x)): pass'. @@ -18129,7 +18129,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithLambda [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithList " self parse: 'def f(x: int = [ 1 ]): pass'. @@ -18206,7 +18206,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithList [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithListComprehension " self parse: 'def f(x: int = [i + x for i in range(3)]): pass'. @@ -18346,7 +18346,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithListComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithNone " self parse: 'def f(x: int = None): pass'. @@ -18413,7 +18413,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithNone [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithNotOperator " self parse: 'def f(x: int = (not old)): pass'. @@ -18488,7 +18488,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithNotOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithSet " self parse: 'def f(x: int = { 1 }): pass'. @@ -18565,7 +18565,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithSet [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithSetComprehension " self parse: 'def f(x: int = {i + x for i in range(3) }): pass'. @@ -18705,7 +18705,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithSetComprehension [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithString " self parse: 'def f(x: int = "Hello"): pass'. @@ -18773,7 +18773,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithString [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithSubscript " self parse: 'def f(x: int = x[2]): pass'. @@ -18858,7 +18858,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithSubscript [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithTrue " self parse: 'def f(x: int = True): pass'. @@ -18926,7 +18926,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithTrue [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithTuple " self parse: 'def f(x: int = (x, y)): pass'. @@ -19005,7 +19005,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithTuple [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDefaultTypedParameterWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDefaultTypedParameterWithUnaryOperator " self parse: 'def f(x: int = -x): pass'. @@ -19081,7 +19081,7 @@ FASTPythonImporterTest >> testDefaultTypedParameterWithUnaryOperator [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatement " self parse: 'del coll'. @@ -19105,7 +19105,7 @@ FASTPythonImporterTest >> testDelStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatementAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatementAttribute " self parse: 'del obj.attr'. @@ -19138,7 +19138,7 @@ FASTPythonImporterTest >> testDelStatementAttribute [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatementExpressionList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatementExpressionList " self parse: 'del rate, add_baudrate_if_supported'. @@ -19175,7 +19175,7 @@ FASTPythonImporterTest >> testDelStatementExpressionList [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatementMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatementMultiple " self parse: 'del obj1, obj2, obj.attr'. @@ -19226,7 +19226,7 @@ FASTPythonImporterTest >> testDelStatementMultiple [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatementSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatementSubscript " self parse: 'del obj.attrs[1]'. @@ -19278,7 +19278,7 @@ FASTPythonImporterTest >> testDelStatementSubscript [ { #category : 'tests - statements' } FASTPythonImporterTest >> testDelStatementTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDelStatementTuple " self parse: 'del ()'. @@ -19302,7 +19302,7 @@ FASTPythonImporterTest >> testDelStatementTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionary " self parse: ' { "brand": "Ford", "model": "Mustang", "year": 1964 }'. @@ -19397,7 +19397,7 @@ FASTPythonImporterTest >> testDictionary [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryComprehension " self parse: '{ v:k for k,v in class_indices.items() }'. @@ -19495,7 +19495,7 @@ FASTPythonImporterTest >> testDictionaryComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testDictionaryComprehensionWithIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryComprehensionWithIfClause " self parse: '{ v:k for k,v in class_indices.items() if v > 3 }'. @@ -19619,7 +19619,7 @@ FASTPythonImporterTest >> testDictionaryComprehensionWithIfClause [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatInCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatInCall " self parse: 'func(**kwargs)'. @@ -19662,7 +19662,7 @@ FASTPythonImporterTest >> testDictionarySplatInCall [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatInDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatInDictionary " self parse: '{**d1, "c": 3}'. @@ -19722,7 +19722,7 @@ FASTPythonImporterTest >> testDictionarySplatInDictionary [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnAttributeAccess " self parse: 'funct(**obj.settings)'. @@ -19775,7 +19775,7 @@ FASTPythonImporterTest >> testDictionarySplatOnAttributeAccess [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnBinaryOperator " self parse: 'func(**default_args | subprocess_args)'. @@ -19837,7 +19837,7 @@ FASTPythonImporterTest >> testDictionarySplatOnBinaryOperator [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnBooleanOperator " self parse: 'func(**extra or {}) '. @@ -19900,7 +19900,7 @@ FASTPythonImporterTest >> testDictionarySplatOnBooleanOperator [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnCall " self parse: 'funct(**get_config())'. @@ -19953,7 +19953,7 @@ FASTPythonImporterTest >> testDictionarySplatOnCall [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnDictionaryComprehension " self parse: 'funct(**{k: v * 2 for k, v in items})'. @@ -20083,7 +20083,7 @@ FASTPythonImporterTest >> testDictionarySplatOnDictionaryComprehension [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnParenthesis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnParenthesis " self parse: 'func(**(kwargs)) '. @@ -20126,7 +20126,7 @@ FASTPythonImporterTest >> testDictionarySplatOnParenthesis [ { #category : 'tests - splats' } FASTPythonImporterTest >> testDictionarySplatOnSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatOnSubscript " self parse: 'funct(**d["nested"])'. @@ -20189,7 +20189,7 @@ FASTPythonImporterTest >> testDictionarySplatOnSubscript [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testDictionarySplatParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionarySplatParameter " self parse: 'def function(**kwargs): pass'. @@ -20228,7 +20228,7 @@ FASTPythonImporterTest >> testDictionarySplatParameter [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithAttribute " self parse: '{ "key": obj.attr }'. @@ -20280,7 +20280,7 @@ FASTPythonImporterTest >> testDictionaryWithAttribute [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithBinaryOperator " self parse: '{ "key": 10 / 2 }'. @@ -20345,7 +20345,7 @@ FASTPythonImporterTest >> testDictionaryWithBinaryOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithBooleanOperator " self parse: '{ "key": x and y }'. @@ -20406,7 +20406,7 @@ FASTPythonImporterTest >> testDictionaryWithBooleanOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithCall " self parse: '{ "key": obj() }'. @@ -20459,7 +20459,7 @@ FASTPythonImporterTest >> testDictionaryWithCall [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithComparisonOperator " self parse: '{ "key": 1 > 3 }'. @@ -20521,7 +20521,7 @@ FASTPythonImporterTest >> testDictionaryWithComparisonOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithComplexe " self parse: '{ "key": 1j }'. @@ -20566,7 +20566,7 @@ FASTPythonImporterTest >> testDictionaryWithComplexe [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithConditionalExpression " self parse: '{ "key": x if True else y }'. @@ -20637,7 +20637,7 @@ FASTPythonImporterTest >> testDictionaryWithConditionalExpression [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithDictionary " self parse: '{ "key": { 1:1 } }'. @@ -20706,7 +20706,7 @@ FASTPythonImporterTest >> testDictionaryWithDictionary [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithEllipsis " self parse: '{ "key": ... }'. @@ -20750,7 +20750,7 @@ FASTPythonImporterTest >> testDictionaryWithEllipsis [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithFalse " self parse: '{ "key": False }'. @@ -20795,7 +20795,7 @@ FASTPythonImporterTest >> testDictionaryWithFalse [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithFloat " self parse: '{ "key": 0.1 }'. @@ -20840,7 +20840,7 @@ FASTPythonImporterTest >> testDictionaryWithFloat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithIdentifier " self parse: '{ "key": element }'. @@ -20883,7 +20883,7 @@ FASTPythonImporterTest >> testDictionaryWithIdentifier [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithInteger " self parse: '{ "key": 1 }'. @@ -20928,7 +20928,7 @@ FASTPythonImporterTest >> testDictionaryWithInteger [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithLambda " self parse: '{ "key": lambda x:x }'. @@ -20991,7 +20991,7 @@ FASTPythonImporterTest >> testDictionaryWithLambda [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithList " self parse: '{ "key": [ 1 ] }'. @@ -21044,7 +21044,7 @@ FASTPythonImporterTest >> testDictionaryWithList [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithListSplat " self parse: '{ "key": *args }'. @@ -21095,7 +21095,7 @@ FASTPythonImporterTest >> testDictionaryWithListSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithList_comprehension " self parse: '{ "key": [random for i in range(3)] }'. @@ -21191,7 +21191,7 @@ FASTPythonImporterTest >> testDictionaryWithList_comprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithNone " self parse: '{ "key": None }'. @@ -21235,7 +21235,7 @@ FASTPythonImporterTest >> testDictionaryWithNone [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithNotOperator " self parse: '{ "key": not old }'. @@ -21287,7 +21287,7 @@ FASTPythonImporterTest >> testDictionaryWithNotOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithSet " self parse: '{ "key": { 1 } }'. @@ -21340,7 +21340,7 @@ FASTPythonImporterTest >> testDictionaryWithSet [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithSetComprehension " self parse: '{ "key": {random for i in range(3)} }'. @@ -21436,7 +21436,7 @@ FASTPythonImporterTest >> testDictionaryWithSetComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithSplat " self parse: '{**base, 1:2}'. @@ -21495,7 +21495,7 @@ FASTPythonImporterTest >> testDictionaryWithSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithString " self parse: '{ "key": "Hello" }'. @@ -21539,7 +21539,7 @@ FASTPythonImporterTest >> testDictionaryWithString [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithSubscript " self parse: '{ "key": attrs[2] }'. @@ -21601,7 +21601,7 @@ FASTPythonImporterTest >> testDictionaryWithSubscript [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithTrue " self parse: '{ "key": True }'. @@ -21646,7 +21646,7 @@ FASTPythonImporterTest >> testDictionaryWithTrue [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithTuple " self parse: '{ "key": (1,) }'. @@ -21699,7 +21699,7 @@ FASTPythonImporterTest >> testDictionaryWithTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testDictionaryWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testDictionaryWithUnaryOperator " self parse: '{ "key": -1 }'. @@ -21770,7 +21770,7 @@ FASTPythonImporterTest >> testDoubleQuotedString [ { #category : 'tests - literals' } FASTPythonImporterTest >> testEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testEllipsis " self parse: '...'. @@ -21787,7 +21787,7 @@ FASTPythonImporterTest >> testEllipsis [ { #category : 'tests - ellipsis' } FASTPythonImporterTest >> testEllipsisInBlock [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testEllipsisInBlock " self parse: 'if True: @@ -21837,7 +21837,7 @@ FASTPythonImporterTest >> testEllipsisInBlock [ { #category : 'tests - try statement' } FASTPythonImporterTest >> testExceptAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptAttribute " self parse: 'try: pass @@ -21865,10 +21865,10 @@ except exceptions.Exception: pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'exceptions.Exception'. self assert: (self topEntity isOfType: FASTPyAttributeAccess). self assert: self topEntity name equals: 'Exception'. @@ -21902,7 +21902,7 @@ except exceptions.Exception: pass' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testExceptCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptCall " self parse: 'try: pass @@ -21930,10 +21930,10 @@ except Exception(): pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception()'. self assert: (self topEntity isOfType: FASTPyCall). self assert: (self topEntity isOfType: FASTTInvocation). @@ -21968,7 +21968,7 @@ except Exception(): pass' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testExceptConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptConditionalExpression " self parse: 'try: pass @@ -21998,10 +21998,10 @@ except Exception if n > 1 else Error: pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception if n > 1 else Error'. self assert: (self topEntity isOfType: FASTPyConditionalExpression). self assert: (self topEntity isOfType: FASTTWithCondition). @@ -22067,7 +22067,7 @@ except Exception if n > 1 else Error: pass' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testExceptIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptIdentifier " self parse: 'try: pass @@ -22094,10 +22094,10 @@ except Exception: pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception'. self assert: (self topEntity isOfType: FASTPyIdentifier). stack pop. @@ -22122,7 +22122,7 @@ except Exception: pass' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testExceptSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptSubscript " self parse: 'try: pass @@ -22151,10 +22151,10 @@ except exceptions[2]: pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'exceptions[2]'. self assert: (self topEntity isOfType: FASTPySubscript). @@ -22197,7 +22197,7 @@ except exceptions[2]: pass' withPlatformLineEndings. { #category : 'tests - try statements' } FASTPythonImporterTest >> testExceptWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExceptWithAlias " self parse: 'try: pass @@ -22225,10 +22225,10 @@ except Exception as e: pass' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTTStatementBlock). self assert: self topEntity alias equals: 'e'. - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception'. self assert: (self topEntity isOfType: FASTPyIdentifier). stack pop. @@ -22253,7 +22253,7 @@ except Exception as e: pass' withPlatformLineEndings. { #category : 'tests - statements' } FASTPythonImporterTest >> testExecStatementOfIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExecStatementOfIdentifier " self parse: 'exec x'. @@ -22277,7 +22277,7 @@ FASTPythonImporterTest >> testExecStatementOfIdentifier [ { #category : 'tests - statements' } FASTPythonImporterTest >> testExecStatementWithScopes [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testExecStatementWithScopes " self parse: 'exec "print ''Hello''" in globals_dict, locals_dict'. @@ -22317,7 +22317,7 @@ FASTPythonImporterTest >> testExecStatementWithScopes [ { #category : 'tests - literals' } FASTPythonImporterTest >> testFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFalse " self parse: 'False'. @@ -22349,7 +22349,7 @@ FASTPythonImporterTest >> testFloat [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatement " self parse: 'for i in [ ]: @@ -22395,7 +22395,7 @@ FASTPythonImporterTest >> testForStatement [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatementWithABreak [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatementWithABreak " self parse: 'for c in [1, 3, 5]: @@ -22492,7 +22492,7 @@ FASTPythonImporterTest >> testForStatementWithABreak [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatementWithAContinue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatementWithAContinue " self parse: 'for c in [1, 3, 5]: @@ -22589,7 +22589,7 @@ FASTPythonImporterTest >> testForStatementWithAContinue [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatementWithElseClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatementWithElseClause " self parse: 'for c in [1, 3, 5]: @@ -22718,7 +22718,7 @@ else: print("Hello")' withPlatformLineEndings. { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatementWithExpressionList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatementWithExpressionList " self parse: 'for i in a, b: continue'. @@ -22775,7 +22775,7 @@ FASTPythonImporterTest >> testForStatementWithExpressionList [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testForStatementWithForInClauseAndTuplePattern [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testForStatementWithForInClauseAndTuplePattern " self parse: 'for idx, (heights, widths) in data: @@ -22874,7 +22874,7 @@ FASTPythonImporterTest >> testForStatementWithForInClauseAndTuplePattern [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImport [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImport " self parse: 'from datetime import date'. @@ -22909,7 +22909,7 @@ FASTPythonImporterTest >> testFromImport [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportMultiple " self parse: 'from collections import Counter, defaultdic'. @@ -22950,7 +22950,7 @@ FASTPythonImporterTest >> testFromImportMultiple [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportMultipleWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportMultipleWithAlias " self parse: 'from math import sin, cos as cosinus, pi'. @@ -22998,7 +22998,7 @@ FASTPythonImporterTest >> testFromImportMultipleWithAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportMultipleWithParenthesis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportMultipleWithParenthesis " self parse: 'from math import (count, cycle, repeat,)'. @@ -23045,7 +23045,7 @@ FASTPythonImporterTest >> testFromImportMultipleWithParenthesis [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportMultipleWithParenthesisAndAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportMultipleWithParenthesisAndAlias " self parse: 'from math import (count, cycle as c, repeat,)'. @@ -23093,7 +23093,7 @@ FASTPythonImporterTest >> testFromImportMultipleWithParenthesisAndAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportRelative [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportRelative " self parse: 'from ..utils.extra import module'. @@ -23128,7 +23128,7 @@ FASTPythonImporterTest >> testFromImportRelative [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportRelativeWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportRelativeWithAlias " self parse: 'from ..utils import module as mod'. @@ -23164,7 +23164,7 @@ FASTPythonImporterTest >> testFromImportRelativeWithAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportRelativeWithDoubleDot [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportRelativeWithDoubleDot " self parse: 'from .. import module'. @@ -23199,7 +23199,7 @@ FASTPythonImporterTest >> testFromImportRelativeWithDoubleDot [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportRelativeWithOnlyOneDot [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportRelativeWithOnlyOneDot " self parse: 'from . import module'. @@ -23234,7 +23234,7 @@ FASTPythonImporterTest >> testFromImportRelativeWithOnlyOneDot [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportWithAlias " self parse: 'from datetime import date as d'. @@ -23270,7 +23270,7 @@ FASTPythonImporterTest >> testFromImportWithAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFromImportWithWildcard [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFromImportWithWildcard " self parse: 'from math import *'. @@ -23305,7 +23305,7 @@ FASTPythonImporterTest >> testFromImportWithWildcard [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testFunctionDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFunctionDefinition " self parse: 'def function(): pass'. @@ -23333,7 +23333,7 @@ FASTPythonImporterTest >> testFunctionDefinition [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testFunctionDefinitionWithReturnType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFunctionDefinitionWithReturnType " self parse: 'def function() -> int: pass'. @@ -23396,7 +23396,7 @@ FASTPythonImporterTest >> testFunctionParameters [ { #category : 'tests - imports' } FASTPythonImporterTest >> testFutureImport [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testFutureImport " self parse: 'from __future__ import annotiations as ann, division'. @@ -23438,7 +23438,7 @@ FASTPythonImporterTest >> testFutureImport [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpression " self parse: '(x * x for x in range(10))'. @@ -23526,7 +23526,7 @@ FASTPythonImporterTest >> testGeneratorExpression [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithAttribute " self parse: '(x.y for x in range(3))'. @@ -23605,7 +23605,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithAttribute [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithAwait " self parse: '(await x for x in range(3))'. @@ -23683,7 +23683,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithAwait [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithBinaryOperator " self parse: '(y + x for x in range(3))'. @@ -23771,7 +23771,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithBinaryOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithBooleanOperator " self parse: '(x or y for x in range(3))'. @@ -23859,7 +23859,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithBooleanOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithCall " self parse: '(obj() for x in range(3))'. @@ -23938,7 +23938,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithCall [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithComparisonOperator " self parse: '(x in str for x in range(3))'. @@ -24022,7 +24022,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithComparisonOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithComplexe " self parse: '(0j for x in range(3))'. @@ -24094,7 +24094,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithComplexe [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithConditionalExpression " self parse: '(x if True else y for x in range(3))'. @@ -24192,7 +24192,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithConditionalExpression [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithDictionary " self parse: '({ 1:x } for x in range(3))'. @@ -24289,7 +24289,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithDictionary [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithDictionaryComprehension " self parse: '({ v:x for v in y } for x in range(3))'. @@ -24408,7 +24408,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithDictionaryComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithEllipsis " self parse: '(... for x in range(3))'. @@ -24479,7 +24479,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithEllipsis [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithFalse " self parse: '(False for x in range(3))'. @@ -24551,7 +24551,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithFalse [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithFloat " self parse: '(0.0 for x in range(3))'. @@ -24623,7 +24623,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithFloat [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithIdentifier " self parse: '(obj for x in range(3))'. @@ -24692,7 +24692,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithIdentifier [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithIfClause " self parse: '(x for x in range(10) if x == 0)'. @@ -24786,7 +24786,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithInteger " self parse: '(0 for x in range(3))'. @@ -24857,7 +24857,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithInteger [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithLambda " self parse: '(lambda x:x for x in range(3))'. @@ -24947,7 +24947,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithLambda [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithList " self parse: '([ ] for x in range(3))'. @@ -25017,7 +25017,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithList [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithListComprehension " self parse: '([i + x for i in range(3)] for x in range(3))'. @@ -25158,7 +25158,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithListComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithMultipleForClauses [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithMultipleForClauses " self parse: '(x for row in matrix for x in row)'. @@ -25227,7 +25227,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithMultipleForClauses [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithMultipleIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithMultipleIfClause " self parse: '(x for x in range(100) if x % 2 == 0 if x % 3 == 0)'. @@ -25383,7 +25383,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithMultipleIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithNone " self parse: '(None for x in range(3))'. @@ -25454,7 +25454,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithNone [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithNotOperator " self parse: '(not old for x in range(3))'. @@ -25533,7 +25533,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithNotOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithSet " self parse: '({ 1 } for x in range(3))'. @@ -25613,7 +25613,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithSet [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithSetComprehension " self parse: '({i + x for i in range(3) } for x in range(3))'. @@ -25754,7 +25754,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithSetComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithString " self parse: '("Hello" for x in range(3))'. @@ -25826,7 +25826,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithString [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithSubscript " self parse: '(attrs[2] for x in range(3))'. @@ -25914,7 +25914,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithSubscript [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithTrue " self parse: '(True for x in range(3))'. @@ -25986,7 +25986,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithTrue [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithTuple " self parse: '((x,) for x in range(3))'. @@ -26064,7 +26064,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithTuple [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testGeneratorExpressionWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGeneratorExpressionWithUnaryOperator " self parse: '(-x for x in range(3))'. @@ -26144,7 +26144,7 @@ FASTPythonImporterTest >> testGeneratorExpressionWithUnaryOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testGenericType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGenericType " self parse: 'def f(items: List[T]): pass'. @@ -26219,7 +26219,7 @@ FASTPythonImporterTest >> testGenericType [ { #category : 'tests - types' } FASTPythonImporterTest >> testGenericTypeWithMultipleParameters [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGenericTypeWithMultipleParameters " self parse: 'def f(items: Dictionary[str, T]): pass'. @@ -26307,7 +26307,7 @@ FASTPythonImporterTest >> testGenericTypeWithMultipleParameters [ { #category : 'tests - statements' } FASTPythonImporterTest >> testGlobalStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGlobalStatement " self parse: 'def aFunction(): @@ -26364,7 +26364,7 @@ FASTPythonImporterTest >> testGlobalStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testGlobalStatementMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testGlobalStatementMultiple " self parse: 'def function (): @@ -26451,7 +26451,7 @@ FASTPythonImporterTest >> testGlobalStatementMultiple [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIf [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIf " self parse: 'if x > 0: @@ -26517,7 +26517,7 @@ FASTPythonImporterTest >> testIf [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfElse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfElse " self parse: 'if x > 0: @@ -26608,7 +26608,7 @@ else: { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfElseIf [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfElseIf " self parse: 'if x > 0: @@ -26726,7 +26726,7 @@ elif x < 10: { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfElseIf2 [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfElseIf2 " self parse: 'if x > 0: @@ -26891,7 +26891,7 @@ elif x == 60: { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfElseIfElse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfElseIfElse " self parse: 'if x > 0: @@ -27080,7 +27080,7 @@ else: { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfStatementWithABreak [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfStatementWithABreak " self parse: 'if c > 3: break'. @@ -27143,7 +27143,7 @@ FASTPythonImporterTest >> testIfStatementWithABreak [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testIfStatementWithAContinue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testIfStatementWithAContinue " self parse: 'if c > 3: continue'. @@ -27206,7 +27206,7 @@ FASTPythonImporterTest >> testIfStatementWithAContinue [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImport [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImport " self parse: 'import random'. @@ -27231,7 +27231,7 @@ FASTPythonImporterTest >> testImport [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportDottedImport [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportDottedImport " self parse: 'import xml.etree.ElementTree'. @@ -27256,7 +27256,7 @@ FASTPythonImporterTest >> testImportDottedImport [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportDottedImportAndAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportDottedImportAndAlias " self parse: 'import xml.etree.ElementTree as ET'. @@ -27282,7 +27282,7 @@ FASTPythonImporterTest >> testImportDottedImportAndAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportFromWithLineContinuation [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportFromWithLineContinuation " self parse: 'from distutils.ccompiler import \ @@ -27325,7 +27325,7 @@ FASTPythonImporterTest >> testImportFromWithLineContinuation [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportInFunction [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportInFunction " self parse: 'def fun(): @@ -27393,7 +27393,7 @@ FASTPythonImporterTest >> testImportInFunction [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportMultiple " self parse: 'import random, collections'. @@ -27424,7 +27424,7 @@ FASTPythonImporterTest >> testImportMultiple [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportMultipleAndAliases [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportMultipleAndAliases " self parse: 'import random as rand, collections'. @@ -27456,7 +27456,7 @@ FASTPythonImporterTest >> testImportMultipleAndAliases [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportWithAlias " self parse: 'import random as rand'. @@ -27482,7 +27482,7 @@ FASTPythonImporterTest >> testImportWithAlias [ { #category : 'tests - imports' } FASTPythonImporterTest >> testImportWithComment [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testImportWithComment " self parse: 'import #For visu @@ -27533,7 +27533,7 @@ FASTPythonImporterTest >> testInteger [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolation [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolation " self parse: 'f"User {name} has {value} items"'. @@ -27580,7 +27580,7 @@ FASTPythonImporterTest >> testInterpolation [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithAttributeAccess " self parse: 'f"{CFG.model_name}"'. @@ -27623,7 +27623,7 @@ FASTPythonImporterTest >> testInterpolationWithAttributeAccess [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithBinaryOperator " self parse: 'f"{k+1}"'. @@ -27678,7 +27678,7 @@ FASTPythonImporterTest >> testInterpolationWithBinaryOperator [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithBooleanOperator " self parse: 'f"{x and y}"'. @@ -27730,7 +27730,7 @@ FASTPythonImporterTest >> testInterpolationWithBooleanOperator [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithCall " self parse: 'f"{myMethod(2)}"'. @@ -27785,7 +27785,7 @@ FASTPythonImporterTest >> testInterpolationWithCall [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithComparisonOperator " self parse: 'f"{x == y}"'. @@ -27834,7 +27834,7 @@ FASTPythonImporterTest >> testInterpolationWithComparisonOperator [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithComprehension " self parse: 'f"{[x for x in items]}"'. @@ -27900,7 +27900,7 @@ FASTPythonImporterTest >> testInterpolationWithComprehension [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithConditionalExpression " self parse: 'f"x{ if cond else y}"'. @@ -27959,7 +27959,7 @@ FASTPythonImporterTest >> testInterpolationWithConditionalExpression [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithFormatSpecifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithFormatSpecifier " self parse: 'f"{255:X}"'. @@ -27997,7 +27997,7 @@ FASTPythonImporterTest >> testInterpolationWithFormatSpecifier [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithLambda " self parse: 'f"{ (lambda x: x*2) }"'. @@ -28073,7 +28073,7 @@ FASTPythonImporterTest >> testInterpolationWithLambda [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithSubscript " self parse: 'f"{label_order[i]}"'. @@ -28123,7 +28123,7 @@ FASTPythonImporterTest >> testInterpolationWithSubscript [ { #category : 'tests - interpolations' } FASTPythonImporterTest >> testInterpolationWithTypeConversion [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testInterpolationWithTypeConversion " self parse: 'f"{text!r}" '. @@ -28159,7 +28159,7 @@ FASTPythonImporterTest >> testInterpolationWithTypeConversion [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToAttribute " self parse: 'f(var = x.y)'. @@ -28213,7 +28213,7 @@ FASTPythonImporterTest >> testKeywordArgumentToAttribute [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToAwait " self parse: 'f(var = await x)'. @@ -28266,7 +28266,7 @@ FASTPythonImporterTest >> testKeywordArgumentToAwait [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToBinaryOperator " self parse: 'f(var = 1 + x)'. @@ -28332,7 +28332,7 @@ FASTPythonImporterTest >> testKeywordArgumentToBinaryOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToBooleanOperator " self parse: 'f(var = x or y)'. @@ -28395,7 +28395,7 @@ FASTPythonImporterTest >> testKeywordArgumentToBooleanOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToCall " self parse: 'f(var = factory())'. @@ -28449,7 +28449,7 @@ FASTPythonImporterTest >> testKeywordArgumentToCall [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToComparisonOperator " self parse: 'f(var = x > y)'. @@ -28508,7 +28508,7 @@ FASTPythonImporterTest >> testKeywordArgumentToComparisonOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToComplexe " self parse: 'f(var = 0j)'. @@ -28555,7 +28555,7 @@ FASTPythonImporterTest >> testKeywordArgumentToComplexe [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToConditionalExpression " self parse: 'f(var = x if True else y)'. @@ -28628,7 +28628,7 @@ FASTPythonImporterTest >> testKeywordArgumentToConditionalExpression [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToDictionary " self parse: 'f(var = { 1:x })'. @@ -28701,7 +28701,7 @@ FASTPythonImporterTest >> testKeywordArgumentToDictionary [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToDictionaryComprehension " self parse: 'f(var = { v:x for v in y })'. @@ -28796,7 +28796,7 @@ FASTPythonImporterTest >> testKeywordArgumentToDictionaryComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToEllipsis " self parse: 'f(var = ...)'. @@ -28842,7 +28842,7 @@ FASTPythonImporterTest >> testKeywordArgumentToEllipsis [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToFalse " self parse: 'f(var = False)'. @@ -28889,7 +28889,7 @@ FASTPythonImporterTest >> testKeywordArgumentToFalse [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToFloat " self parse: 'f(var = 0.0)'. @@ -28936,7 +28936,7 @@ FASTPythonImporterTest >> testKeywordArgumentToFloat [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToIdentifier " self parse: 'f(var = x)'. @@ -28980,7 +28980,7 @@ FASTPythonImporterTest >> testKeywordArgumentToIdentifier [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToInteger " self parse: 'f(var = 0)'. @@ -29027,7 +29027,7 @@ FASTPythonImporterTest >> testKeywordArgumentToInteger [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToLambda " self parse: 'f(var = (lambda x:x))'. @@ -29092,7 +29092,7 @@ FASTPythonImporterTest >> testKeywordArgumentToLambda [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToList " self parse: 'f(var = [ 1 ])'. @@ -29148,7 +29148,7 @@ FASTPythonImporterTest >> testKeywordArgumentToList [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToListComprehension " self parse: 'f(var = [i + x for i in range(3)])'. @@ -29266,7 +29266,7 @@ FASTPythonImporterTest >> testKeywordArgumentToListComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToListSplat " self parse: 'f(var = *args)'. @@ -29319,7 +29319,7 @@ FASTPythonImporterTest >> testKeywordArgumentToListSplat [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToNone " self parse: 'f(var = None)'. @@ -29365,7 +29365,7 @@ FASTPythonImporterTest >> testKeywordArgumentToNone [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToNotOperator " self parse: 'f(var = (not old))'. @@ -29419,7 +29419,7 @@ FASTPythonImporterTest >> testKeywordArgumentToNotOperator [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToSet " self parse: 'f(var = { 1 })'. @@ -29475,7 +29475,7 @@ FASTPythonImporterTest >> testKeywordArgumentToSet [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToSetComprehension " self parse: 'f(var = {i + x for i in range(3) })'. @@ -29593,7 +29593,7 @@ FASTPythonImporterTest >> testKeywordArgumentToSetComprehension [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToString " self parse: 'f(var = "Hello")'. @@ -29640,7 +29640,7 @@ FASTPythonImporterTest >> testKeywordArgumentToString [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToSubscript " self parse: 'f(var = x[2])'. @@ -29704,7 +29704,7 @@ FASTPythonImporterTest >> testKeywordArgumentToSubscript [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToTrue " self parse: 'f(var = True)'. @@ -29751,7 +29751,7 @@ FASTPythonImporterTest >> testKeywordArgumentToTrue [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToTuple " self parse: 'f(var = (x, y))'. @@ -29809,7 +29809,7 @@ FASTPythonImporterTest >> testKeywordArgumentToTuple [ { #category : 'tests - calls' } FASTPythonImporterTest >> testKeywordArgumentToUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordArgumentToUnaryOperator " self parse: 'f(var = -x)'. @@ -29864,7 +29864,7 @@ FASTPythonImporterTest >> testKeywordArgumentToUnaryOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testKeywordSeparator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testKeywordSeparator " self parse: 'def function(fp, *, x): pass'. @@ -29917,7 +29917,7 @@ FASTPythonImporterTest >> testKeywordSeparator [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambda " self parse: 'lambda : 3'. @@ -29944,7 +29944,7 @@ FASTPythonImporterTest >> testLambda [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithDefaultParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithDefaultParameter " self parse: 'lambda x = 1: x'. @@ -29991,7 +29991,7 @@ FASTPythonImporterTest >> testLambdaWithDefaultParameter [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithDictionarySplatParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithDictionarySplatParameter " self parse: 'lambda **fp, x: x'. @@ -30035,7 +30035,7 @@ FASTPythonImporterTest >> testLambdaWithDictionarySplatParameter [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithKeywordSeparator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithKeywordSeparator " self parse: 'lambda fp, *, x: fp + x'. @@ -30104,7 +30104,7 @@ FASTPythonImporterTest >> testLambdaWithKeywordSeparator [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithListSplatParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithListSplatParameter " self parse: 'lambda *fp, x: x'. @@ -30148,7 +30148,7 @@ FASTPythonImporterTest >> testLambdaWithListSplatParameter [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithParameter " self parse: 'lambda x: x * x'. @@ -30203,7 +30203,7 @@ FASTPythonImporterTest >> testLambdaWithParameter [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithParameters [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithParameters " self parse: 'lambda a, b: a + b'. @@ -30265,7 +30265,7 @@ FASTPythonImporterTest >> testLambdaWithParameters [ { #category : 'tests - lambdas' } FASTPythonImporterTest >> testLambdaWithPositionalSeparator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testLambdaWithPositionalSeparator " self parse: 'lambda fp, /, x: fp + x'. @@ -30334,7 +30334,7 @@ FASTPythonImporterTest >> testLambdaWithPositionalSeparator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testList " self parse: '[1, 2, 3]'. @@ -30374,7 +30374,7 @@ FASTPythonImporterTest >> testList [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehension " self parse: '[x * x for x in range(5)]'. @@ -30462,7 +30462,7 @@ FASTPythonImporterTest >> testListComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithAttribute " self parse: '[x.y for x in range(3)]'. @@ -30541,7 +30541,7 @@ FASTPythonImporterTest >> testListComprehensionWithAttribute [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithAwait " self parse: '[await x for x in range(3)]'. @@ -30619,7 +30619,7 @@ FASTPythonImporterTest >> testListComprehensionWithAwait [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithBinaryOperator " self parse: '[y + x for x in range(3)]'. @@ -30707,7 +30707,7 @@ FASTPythonImporterTest >> testListComprehensionWithBinaryOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithBooleanOperator " self parse: '[x or y for x in range(3)]'. @@ -30795,7 +30795,7 @@ FASTPythonImporterTest >> testListComprehensionWithBooleanOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithCall " self parse: '[obj() for x in range(3)]'. @@ -30874,7 +30874,7 @@ FASTPythonImporterTest >> testListComprehensionWithCall [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithComparisonOperator " self parse: '[x in str for x in range(3)]'. @@ -30958,7 +30958,7 @@ FASTPythonImporterTest >> testListComprehensionWithComparisonOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithComplexe " self parse: '[0j for x in range(3)]'. @@ -31030,7 +31030,7 @@ FASTPythonImporterTest >> testListComprehensionWithComplexe [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithConditionalExpression " self parse: '[x if True else y for x in range(3)]'. @@ -31128,7 +31128,7 @@ FASTPythonImporterTest >> testListComprehensionWithConditionalExpression [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithDictionary " self parse: '[{ 1:x } for x in range(3)]'. @@ -31225,7 +31225,7 @@ FASTPythonImporterTest >> testListComprehensionWithDictionary [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithDictionaryComprehension " self parse: '[{ v:x for v in y } for x in range(3)]'. @@ -31344,7 +31344,7 @@ FASTPythonImporterTest >> testListComprehensionWithDictionaryComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithEllipsis " self parse: '[... for x in range(3)]'. @@ -31415,7 +31415,7 @@ FASTPythonImporterTest >> testListComprehensionWithEllipsis [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithFalse " self parse: '[False for x in range(3)]'. @@ -31487,7 +31487,7 @@ FASTPythonImporterTest >> testListComprehensionWithFalse [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithFloat " self parse: '[0.0 for x in range(3)]'. @@ -31559,7 +31559,7 @@ FASTPythonImporterTest >> testListComprehensionWithFloat [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithIdentifier " self parse: '[obj for x in range(3)]'. @@ -31628,7 +31628,7 @@ FASTPythonImporterTest >> testListComprehensionWithIdentifier [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithIfClause " self parse: '[x for x in range(10) if x == 0]'. @@ -31722,7 +31722,7 @@ FASTPythonImporterTest >> testListComprehensionWithIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithInteger " self parse: '[0 for x in range(3)]'. @@ -31793,7 +31793,7 @@ FASTPythonImporterTest >> testListComprehensionWithInteger [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithLambda " self parse: '[lambda x:x for x in range(3)]'. @@ -31883,7 +31883,7 @@ FASTPythonImporterTest >> testListComprehensionWithLambda [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithList " self parse: '[[ ] for x in range(3)]'. @@ -31953,7 +31953,7 @@ FASTPythonImporterTest >> testListComprehensionWithList [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithListComprehension " self parse: '[[i + x for i in range(3)] for x in range(3)]'. @@ -32093,7 +32093,7 @@ FASTPythonImporterTest >> testListComprehensionWithListComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithMultipleForClauses [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithMultipleForClauses " self parse: '[x for row in matrix for x in row]'. @@ -32162,7 +32162,7 @@ FASTPythonImporterTest >> testListComprehensionWithMultipleForClauses [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithMultipleIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithMultipleIfClause " self parse: '[x for x in range(100) if x % 2 == 0 if x % 3 == 0]'. @@ -32318,7 +32318,7 @@ FASTPythonImporterTest >> testListComprehensionWithMultipleIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithNone " self parse: '[None for x in range(3)]'. @@ -32389,7 +32389,7 @@ FASTPythonImporterTest >> testListComprehensionWithNone [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithNotOperator " self parse: '[not old for x in range(3)]'. @@ -32468,7 +32468,7 @@ FASTPythonImporterTest >> testListComprehensionWithNotOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithPatternList " self parse: '[abs(x) + abs(y) for x, y in points]'. @@ -32586,7 +32586,7 @@ FASTPythonImporterTest >> testListComprehensionWithPatternList [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithSet " self parse: '[{ 1 } for x in range(3)]'. @@ -32666,7 +32666,7 @@ FASTPythonImporterTest >> testListComprehensionWithSet [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithSetComprehension " self parse: '[{i + x for i in range(3) } for x in range(3)]'. @@ -32807,7 +32807,7 @@ FASTPythonImporterTest >> testListComprehensionWithSetComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithString " self parse: '["Hello" for x in range(3)]'. @@ -32879,7 +32879,7 @@ FASTPythonImporterTest >> testListComprehensionWithString [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithSubscript " self parse: '[attrs[2] for x in range(3)]'. @@ -32967,7 +32967,7 @@ FASTPythonImporterTest >> testListComprehensionWithSubscript [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithTrue " self parse: '[True for x in range(3)]'. @@ -33039,7 +33039,7 @@ FASTPythonImporterTest >> testListComprehensionWithTrue [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithTuple " self parse: '[(x,) for x in range(3)]'. @@ -33117,7 +33117,7 @@ FASTPythonImporterTest >> testListComprehensionWithTuple [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testListComprehensionWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListComprehensionWithUnaryOperator " self parse: '[-x for x in range(3)]'. @@ -33197,7 +33197,7 @@ FASTPythonImporterTest >> testListComprehensionWithUnaryOperator [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatInCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatInCall " self parse: 'func(*args)'. @@ -33240,7 +33240,7 @@ FASTPythonImporterTest >> testListSplatInCall [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatInList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatInList " self parse: '[*args, 4]'. @@ -33281,7 +33281,7 @@ FASTPythonImporterTest >> testListSplatInList [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnAttributeAccess [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnAttributeAccess " self parse: 'func(*obj.list)'. @@ -33334,7 +33334,7 @@ FASTPythonImporterTest >> testListSplatOnAttributeAccess [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnBooleanOperator " self parse: 'func(*a or b)'. @@ -33396,7 +33396,7 @@ FASTPythonImporterTest >> testListSplatOnBooleanOperator [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnCall " self parse: 'func(*getList())'. @@ -33449,7 +33449,7 @@ FASTPythonImporterTest >> testListSplatOnCall [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnList " self parse: 'func(*[1, 2])'. @@ -33511,7 +33511,7 @@ FASTPythonImporterTest >> testListSplatOnList [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnListComprehension " self parse: 'func(*[format(f) for f in FILES])'. @@ -33606,7 +33606,7 @@ FASTPythonImporterTest >> testListSplatOnListComprehension [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnParenthesis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnParenthesis " self parse: 'func(*(args))'. @@ -33649,7 +33649,7 @@ FASTPythonImporterTest >> testListSplatOnParenthesis [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnString " self parse: 'func(*''absdef'')'. @@ -33695,7 +33695,7 @@ FASTPythonImporterTest >> testListSplatOnString [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnSubscript " self parse: 'func(*obj[1])'. @@ -33758,7 +33758,7 @@ FASTPythonImporterTest >> testListSplatOnSubscript [ { #category : 'tests - splats' } FASTPythonImporterTest >> testListSplatOnTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatOnTuple " self parse: 'funct(*(func, *args))'. @@ -33823,7 +33823,7 @@ FASTPythonImporterTest >> testListSplatOnTuple [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testListSplatParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListSplatParameter " self parse: 'def function(*args): pass'. @@ -33862,7 +33862,7 @@ FASTPythonImporterTest >> testListSplatParameter [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithAttribute " self parse: '[ obj.attr ]'. @@ -33895,7 +33895,7 @@ FASTPythonImporterTest >> testListWithAttribute [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithBinaryOperator " self parse: '[ 10 / 2 ]'. @@ -33941,7 +33941,7 @@ FASTPythonImporterTest >> testListWithBinaryOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithBooleanOperator " self parse: '[ x and y ]'. @@ -33983,7 +33983,7 @@ FASTPythonImporterTest >> testListWithBooleanOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithCall " self parse: '[ obj() ]'. @@ -34017,7 +34017,7 @@ FASTPythonImporterTest >> testListWithCall [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithComparisonOperator " self parse: '[ 1 > 3 ]'. @@ -34060,7 +34060,7 @@ FASTPythonImporterTest >> testListWithComparisonOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithComplexe " self parse: '[ 1j ]'. @@ -34086,7 +34086,7 @@ FASTPythonImporterTest >> testListWithComplexe [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithConditionalExpression " self parse: '[ x if True else y ]'. @@ -34138,7 +34138,7 @@ FASTPythonImporterTest >> testListWithConditionalExpression [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithDictionary " self parse: '[ { 1:1 } ]'. @@ -34190,7 +34190,7 @@ FASTPythonImporterTest >> testListWithDictionary [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithEllipsis " self parse: '[ ... ]'. @@ -34215,7 +34215,7 @@ FASTPythonImporterTest >> testListWithEllipsis [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithFalse " self parse: '[ False ]'. @@ -34241,7 +34241,7 @@ FASTPythonImporterTest >> testListWithFalse [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithFloat " self parse: '[ 0.1 ]'. @@ -34267,7 +34267,7 @@ FASTPythonImporterTest >> testListWithFloat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithIdentifier " self parse: '[ element ]'. @@ -34291,7 +34291,7 @@ FASTPythonImporterTest >> testListWithIdentifier [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithInteger " self parse: '[ 1 ]'. @@ -34317,7 +34317,7 @@ FASTPythonImporterTest >> testListWithInteger [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithLambda " self parse: '[ lambda x:x ]'. @@ -34361,7 +34361,7 @@ FASTPythonImporterTest >> testListWithLambda [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithList " self parse: '[ [ 1 ] ]'. @@ -34394,7 +34394,7 @@ FASTPythonImporterTest >> testListWithList [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithListSplat " self parse: '[ *args ]'. @@ -34426,7 +34426,7 @@ FASTPythonImporterTest >> testListWithListSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithList_comprehension " self parse: '[ [random for i in range(3)] ]'. @@ -34503,7 +34503,7 @@ FASTPythonImporterTest >> testListWithList_comprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithNone " self parse: '[ None ]'. @@ -34528,7 +34528,7 @@ FASTPythonImporterTest >> testListWithNone [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithNotOperator " self parse: '[ not old ]'. @@ -34561,7 +34561,7 @@ FASTPythonImporterTest >> testListWithNotOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithSet " self parse: '[ { 1 } ]'. @@ -34595,7 +34595,7 @@ FASTPythonImporterTest >> testListWithSet [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithSetComprehension " self parse: '[ {random for i in range(3)} ]'. @@ -34672,7 +34672,7 @@ FASTPythonImporterTest >> testListWithSetComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithSplat " self parse: '[*args, 1]'. @@ -34713,7 +34713,7 @@ FASTPythonImporterTest >> testListWithSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithString " self parse: '[ "Hello" ]'. @@ -34739,7 +34739,7 @@ FASTPythonImporterTest >> testListWithString [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithSubscript " self parse: '[ attrs[2] ]'. @@ -34782,7 +34782,7 @@ FASTPythonImporterTest >> testListWithSubscript [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithTrue " self parse: '[ True ]'. @@ -34808,7 +34808,7 @@ FASTPythonImporterTest >> testListWithTrue [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithTuple " self parse: '[ (1,) ]'. @@ -34842,7 +34842,7 @@ FASTPythonImporterTest >> testListWithTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testListWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testListWithUnaryOperator " self parse: '[ -1 ]'. @@ -34879,7 +34879,7 @@ FASTPythonImporterTest >> testListWithUnaryOperator [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchAttribute " self parse: 'match x.y: @@ -34934,7 +34934,7 @@ FASTPythonImporterTest >> testMatchAttribute [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchCall " self parse: 'match func(): @@ -34990,7 +34990,7 @@ FASTPythonImporterTest >> testMatchCall [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchDictionary " self parse: 'match { 0:0 }: @@ -35064,7 +35064,7 @@ FASTPythonImporterTest >> testMatchDictionary [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchEllipsis " self parse: 'match ...: @@ -35111,7 +35111,7 @@ FASTPythonImporterTest >> testMatchEllipsis [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchIdentifier " self parse: 'match x: @@ -35157,7 +35157,7 @@ FASTPythonImporterTest >> testMatchIdentifier [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchInteger " self parse: 'match 1: @@ -35205,7 +35205,7 @@ FASTPythonImporterTest >> testMatchInteger [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchList " self parse: 'match [1]: @@ -35261,7 +35261,7 @@ FASTPythonImporterTest >> testMatchList [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternComplexOperation [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternComplexOperation " self parse: 'match value: @@ -35340,7 +35340,7 @@ FASTPythonImporterTest >> testMatchPatternComplexOperation [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternComplexe " self parse: 'match status: @@ -35397,7 +35397,7 @@ FASTPythonImporterTest >> testMatchPatternComplexe [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionary " self parse: 'match status: @@ -35507,7 +35507,7 @@ FASTPythonImporterTest >> testMatchPatternDictionary [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionarySplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionarySplat " self parse: 'match status: @@ -35570,7 +35570,7 @@ FASTPythonImporterTest >> testMatchPatternDictionarySplat [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionarySplatUnnamed [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionarySplatUnnamed " self parse: 'match status: @@ -35625,7 +35625,7 @@ FASTPythonImporterTest >> testMatchPatternDictionarySplatUnnamed [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionaryWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionaryWithDictionary " self parse: 'match status: @@ -35762,7 +35762,7 @@ FASTPythonImporterTest >> testMatchPatternDictionaryWithDictionary [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionaryWithNoValues [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionaryWithNoValues " self parse: 'match status: @@ -35852,7 +35852,7 @@ FASTPythonImporterTest >> testMatchPatternDictionaryWithNoValues [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionaryWithSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionaryWithSplat " self parse: 'match status: @@ -35951,7 +35951,7 @@ FASTPythonImporterTest >> testMatchPatternDictionaryWithSplat [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDictionaryWithVariables [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDictionaryWithVariables " self parse: 'match status: @@ -36060,7 +36060,7 @@ FASTPythonImporterTest >> testMatchPatternDictionaryWithVariables [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternDottedName [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternDottedName " self parse: 'match value: @@ -36116,7 +36116,7 @@ FASTPythonImporterTest >> testMatchPatternDottedName [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternFalse " self parse: 'match status: @@ -36173,7 +36173,7 @@ FASTPythonImporterTest >> testMatchPatternFalse [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternFloat " self parse: 'match status: @@ -36230,7 +36230,7 @@ FASTPythonImporterTest >> testMatchPatternFloat [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternInteger " self parse: 'match status: @@ -36287,7 +36287,7 @@ FASTPythonImporterTest >> testMatchPatternInteger [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeyword [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeyword " self parse: 'match status: @@ -36354,7 +36354,7 @@ FASTPythonImporterTest >> testMatchPatternKeyword [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithClass [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithClass " self parse: 'match status: @@ -36429,7 +36429,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithClass [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithComplexPattern [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithComplexPattern " self parse: 'match status: @@ -36518,7 +36518,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithComplexPattern [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithDottedName [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithDottedName " self parse: 'match status: @@ -36584,7 +36584,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithDottedName [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithIdentifier " self parse: 'match status: @@ -36650,7 +36650,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithIdentifier [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithInteger " self parse: 'match status: @@ -36717,7 +36717,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithInteger [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithList " self parse: 'match status: @@ -36793,7 +36793,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithList [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithTuple " self parse: 'match status: @@ -36869,7 +36869,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithTuple [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternKeywordWithUnion [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternKeywordWithUnion " self parse: 'match status: @@ -36952,7 +36952,7 @@ FASTPythonImporterTest >> testMatchPatternKeywordWithUnion [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternList " self parse: 'match value: @@ -37025,7 +37025,7 @@ FASTPythonImporterTest >> testMatchPatternList [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternListInList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternListInList " self parse: 'match status: @@ -37106,7 +37106,7 @@ FASTPythonImporterTest >> testMatchPatternListInList [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternListSplat " self parse: 'match status: @@ -37169,7 +37169,7 @@ FASTPythonImporterTest >> testMatchPatternListSplat [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternListSplatUnnamed [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternListSplatUnnamed " self parse: 'match status: @@ -37224,7 +37224,7 @@ FASTPythonImporterTest >> testMatchPatternListSplatUnnamed [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternListWithSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternListWithSplat " self parse: 'match status: @@ -37304,7 +37304,7 @@ FASTPythonImporterTest >> testMatchPatternListWithSplat [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternListWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternListWithTuple " self parse: 'match status: @@ -37393,7 +37393,7 @@ FASTPythonImporterTest >> testMatchPatternListWithTuple [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternNone " self parse: 'match status: @@ -37449,7 +37449,7 @@ FASTPythonImporterTest >> testMatchPatternNone [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternString " self parse: 'match status: @@ -37506,7 +37506,7 @@ FASTPythonImporterTest >> testMatchPatternString [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternTrue " self parse: 'match status: @@ -37563,7 +37563,7 @@ FASTPythonImporterTest >> testMatchPatternTrue [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternTuple " self parse: 'match value: @@ -37636,7 +37636,7 @@ FASTPythonImporterTest >> testMatchPatternTuple [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnion [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnion " self parse: 'match status: @@ -37716,7 +37716,7 @@ FASTPythonImporterTest >> testMatchPatternUnion [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnionClassPattern [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnionClassPattern " self parse: 'match status: @@ -37798,7 +37798,7 @@ FASTPythonImporterTest >> testMatchPatternUnionClassPattern [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnionDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnionDictionary " self parse: 'match status: @@ -37899,7 +37899,7 @@ FASTPythonImporterTest >> testMatchPatternUnionDictionary [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnionDottedName [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnionDottedName " self parse: 'match status: @@ -37972,7 +37972,7 @@ FASTPythonImporterTest >> testMatchPatternUnionDottedName [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnionList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnionList " self parse: 'match status: @@ -38054,7 +38054,7 @@ FASTPythonImporterTest >> testMatchPatternUnionList [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternUnionTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternUnionTuple " self parse: 'match status: @@ -38136,7 +38136,7 @@ FASTPythonImporterTest >> testMatchPatternUnionTuple [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternWithAlias [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternWithAlias " self parse: 'match value: @@ -38193,7 +38193,7 @@ FASTPythonImporterTest >> testMatchPatternWithAlias [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchPatternWithGuard [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchPatternWithGuard " self parse: 'match status: @@ -38275,7 +38275,7 @@ FASTPythonImporterTest >> testMatchPatternWithGuard [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchString " self parse: 'match "Hello": @@ -38323,7 +38323,7 @@ FASTPythonImporterTest >> testMatchString [ { #category : 'tests - match' } FASTPythonImporterTest >> testMatchTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMatchTuple " self parse: 'match (1, ): @@ -38379,7 +38379,7 @@ FASTPythonImporterTest >> testMatchTuple [ { #category : 'tests - methods' } FASTPythonImporterTest >> testMethodDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testMethodDefinition " self parse: 'class MyClass: @@ -38441,7 +38441,7 @@ FASTPythonImporterTest >> testMethodDefinition [ { #category : 'tests' } FASTPythonImporterTest >> testModuleWithTwoStatements [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testModuleWithTwoStatements " self parse: 'True @@ -38480,7 +38480,7 @@ False' withPlatformLineEndings. { #category : 'tests - assignments' } FASTPythonImporterTest >> testNestAssignment [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNestAssignment " self parse: 'name_len = actual_len = 130'. @@ -38532,7 +38532,7 @@ FASTPythonImporterTest >> testNestAssignment [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testNestedIf [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNestedIf " self parse: 'if x > 0: @@ -38709,7 +38709,7 @@ FASTPythonImporterTest >> testNone [ { #category : 'tests - statements' } FASTPythonImporterTest >> testNonlocalStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNonlocalStatement " self parse: 'def aFunction(): @@ -38766,7 +38766,7 @@ FASTPythonImporterTest >> testNonlocalStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testNonlocalStatementMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNonlocalStatementMultiple " self parse: 'def function (): @@ -38869,7 +38869,7 @@ FASTPythonImporterTest >> testNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithAttribute " self parse: 'not x.y'. @@ -38903,7 +38903,7 @@ FASTPythonImporterTest >> testNotOperatorWithAttribute [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithBinaryOperator " self parse: 'not y & x'. @@ -38946,7 +38946,7 @@ FASTPythonImporterTest >> testNotOperatorWithBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithBooleanOperator " self parse: 'not x or y'. @@ -38990,7 +38990,7 @@ FASTPythonImporterTest >> testNotOperatorWithBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithCall " self parse: 'not obj()'. @@ -39025,7 +39025,7 @@ FASTPythonImporterTest >> testNotOperatorWithCall [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithComparisonOperator " self parse: 'not 1 > 3'. @@ -39069,7 +39069,7 @@ FASTPythonImporterTest >> testNotOperatorWithComparisonOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithComplexe " self parse: 'not 0j'. @@ -39096,7 +39096,7 @@ FASTPythonImporterTest >> testNotOperatorWithComplexe [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithConditionalExpression " self parse: 'not x if True else y'. @@ -39149,7 +39149,7 @@ FASTPythonImporterTest >> testNotOperatorWithConditionalExpression [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithDictionary " self parse: 'not { }'. @@ -39174,7 +39174,7 @@ FASTPythonImporterTest >> testNotOperatorWithDictionary [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithFalse " self parse: 'not False'. @@ -39201,7 +39201,7 @@ FASTPythonImporterTest >> testNotOperatorWithFalse [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithFloat " self parse: 'not 0.0'. @@ -39228,7 +39228,7 @@ FASTPythonImporterTest >> testNotOperatorWithFloat [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithIdentifier " self parse: 'not obj'. @@ -39253,7 +39253,7 @@ FASTPythonImporterTest >> testNotOperatorWithIdentifier [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithInteger " self parse: 'not 0'. @@ -39280,7 +39280,7 @@ FASTPythonImporterTest >> testNotOperatorWithInteger [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithList " self parse: 'not [ ]'. @@ -39305,7 +39305,7 @@ FASTPythonImporterTest >> testNotOperatorWithList [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithNotOperator " self parse: 'not not old'. @@ -39338,7 +39338,7 @@ FASTPythonImporterTest >> testNotOperatorWithNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithSet " self parse: 'not { 1 }'. @@ -39373,7 +39373,7 @@ FASTPythonImporterTest >> testNotOperatorWithSet [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithString " self parse: 'not "Hello"'. @@ -39400,7 +39400,7 @@ FASTPythonImporterTest >> testNotOperatorWithString [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithSubscript " self parse: 'not attrs[2]'. @@ -39444,7 +39444,7 @@ FASTPythonImporterTest >> testNotOperatorWithSubscript [ { #category : 'tests - operators' } FASTPythonImporterTest >> testNotOperatorWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testNotOperatorWithTrue " self parse: 'not True'. @@ -39471,7 +39471,7 @@ FASTPythonImporterTest >> testNotOperatorWithTrue [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testParameter " self parse: 'def function(a): pass'. @@ -39510,7 +39510,7 @@ FASTPythonImporterTest >> testParameter [ { #category : 'tests - statements' } FASTPythonImporterTest >> testPassStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testPassStatement " self parse: 'def aFunction(): @@ -39540,7 +39540,7 @@ FASTPythonImporterTest >> testPassStatement [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testPositionalSeparator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testPositionalSeparator " self parse: 'def function(fp, /, x): pass'. @@ -39593,7 +39593,7 @@ FASTPythonImporterTest >> testPositionalSeparator [ { #category : 'tests - statements' } FASTPythonImporterTest >> testPrintStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testPrintStatement " self parse: 'print "Hello ", "World", 30'. @@ -39634,7 +39634,7 @@ FASTPythonImporterTest >> testPrintStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testPrintStatmentWithChevron [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testPrintStatmentWithChevron " self parse: 'print >> file_object, "message"'. @@ -39677,7 +39677,7 @@ FASTPythonImporterTest >> testPrintStatmentWithChevron [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaise [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaise " self parse: 'raise'. @@ -39693,7 +39693,7 @@ FASTPythonImporterTest >> testRaise [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaiseAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaiseAttribute " self parse: 'raise module.Exception'. @@ -39726,7 +39726,7 @@ FASTPythonImporterTest >> testRaiseAttribute [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaiseBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaiseBooleanOperator " self parse: 'raise (ValueError or TypeError)'. @@ -39768,7 +39768,7 @@ FASTPythonImporterTest >> testRaiseBooleanOperator [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaiseCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaiseCall " self parse: 'raise Exception("New instance")'. @@ -39813,7 +39813,7 @@ FASTPythonImporterTest >> testRaiseCall [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaiseIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaiseIdentifier " self parse: 'raise Exception'. @@ -39837,7 +39837,7 @@ FASTPythonImporterTest >> testRaiseIdentifier [ { #category : 'tests - raise statement' } FASTPythonImporterTest >> testRaiseSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testRaiseSubscript " self parse: 'raise exceptions[x]'. @@ -39892,7 +39892,7 @@ FASTPythonImporterTest >> testRawString [ { #category : 'tests - statements' } FASTPythonImporterTest >> testReturnEmpty [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testReturnEmpty " self parse: 'def aFunction(): @@ -39923,7 +39923,7 @@ FASTPythonImporterTest >> testReturnEmpty [ { #category : 'tests - statements' } FASTPythonImporterTest >> testReturnList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testReturnList " self parse: 'def aFunction(): @@ -39986,7 +39986,7 @@ FASTPythonImporterTest >> testReturnList [ { #category : 'tests - statements' } FASTPythonImporterTest >> testReturnLiteral [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testReturnLiteral " self parse: 'def aFunction(): @@ -40027,7 +40027,7 @@ FASTPythonImporterTest >> testReturnLiteral [ { #category : 'tests - statements' } FASTPythonImporterTest >> testReturnMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testReturnMultiple " self parse: 'def myFunct(): @@ -40151,7 +40151,7 @@ FASTPythonImporterTest >> testReturnMultiple [ { #category : 'tests - statements' } FASTPythonImporterTest >> testReturnOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testReturnOperator " self parse: 'def aFunction(): @@ -40209,7 +40209,7 @@ FASTPythonImporterTest >> testReturnOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSet " self parse: '{1, 2, 3}'. @@ -40249,7 +40249,7 @@ FASTPythonImporterTest >> testSet [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehension " self parse: '{k1 for k1 in v.items() }'. @@ -40316,7 +40316,7 @@ FASTPythonImporterTest >> testSetComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithAttribute " self parse: '{x.y for x in range(3)}'. @@ -40395,7 +40395,7 @@ FASTPythonImporterTest >> testSetComprehensionWithAttribute [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithAwait " self parse: '{await x for x in range(3)}'. @@ -40473,7 +40473,7 @@ FASTPythonImporterTest >> testSetComprehensionWithAwait [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithBinaryOperator " self parse: '{y + x for x in range(3)}'. @@ -40561,7 +40561,7 @@ FASTPythonImporterTest >> testSetComprehensionWithBinaryOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithBooleanOperator " self parse: '{x or y for x in range(3)}'. @@ -40649,7 +40649,7 @@ FASTPythonImporterTest >> testSetComprehensionWithBooleanOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithCall " self parse: '{obj() for x in range(3)}'. @@ -40728,7 +40728,7 @@ FASTPythonImporterTest >> testSetComprehensionWithCall [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithComparisonOperator " self parse: '{x in str for x in range(3)}'. @@ -40812,7 +40812,7 @@ FASTPythonImporterTest >> testSetComprehensionWithComparisonOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithComplexe " self parse: '{0j for x in range(3)}'. @@ -40884,7 +40884,7 @@ FASTPythonImporterTest >> testSetComprehensionWithComplexe [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithConditionalExpression " self parse: '{x if True else y for x in range(3)}'. @@ -40982,7 +40982,7 @@ FASTPythonImporterTest >> testSetComprehensionWithConditionalExpression [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithDictionary " self parse: '{{ 1:x } for x in range(3)}'. @@ -41079,7 +41079,7 @@ FASTPythonImporterTest >> testSetComprehensionWithDictionary [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithDictionaryComprehension " self parse: '{{ v:x for v in y } for x in range(3)}'. @@ -41198,7 +41198,7 @@ FASTPythonImporterTest >> testSetComprehensionWithDictionaryComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithEllipsis " self parse: '{... for x in range(3)}'. @@ -41269,7 +41269,7 @@ FASTPythonImporterTest >> testSetComprehensionWithEllipsis [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithFalse " self parse: '{False for x in range(3)}'. @@ -41341,7 +41341,7 @@ FASTPythonImporterTest >> testSetComprehensionWithFalse [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithFloat " self parse: '{0.0 for x in range(3)}'. @@ -41413,7 +41413,7 @@ FASTPythonImporterTest >> testSetComprehensionWithFloat [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithIdentifier " self parse: '{obj for x in range(3)}'. @@ -41482,7 +41482,7 @@ FASTPythonImporterTest >> testSetComprehensionWithIdentifier [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithIfClause " self parse: '{k1 for k1 in v.items() if k1 > 4}'. @@ -41575,7 +41575,7 @@ FASTPythonImporterTest >> testSetComprehensionWithIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithInteger " self parse: '{0 for x in range(3)}'. @@ -41646,7 +41646,7 @@ FASTPythonImporterTest >> testSetComprehensionWithInteger [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithLambda " self parse: '{lambda x:x for x in range(3)}'. @@ -41736,7 +41736,7 @@ FASTPythonImporterTest >> testSetComprehensionWithLambda [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithList " self parse: '{[ ] for x in range(3)}'. @@ -41806,7 +41806,7 @@ FASTPythonImporterTest >> testSetComprehensionWithList [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithListComprehension " self parse: '{[i + x for i in range(3)] for x in range(3)}'. @@ -41947,7 +41947,7 @@ FASTPythonImporterTest >> testSetComprehensionWithListComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithMultipleForClauses [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithMultipleForClauses " self parse: '{x for row in matrix for x in row}'. @@ -42016,7 +42016,7 @@ FASTPythonImporterTest >> testSetComprehensionWithMultipleForClauses [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithMultipleIfClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithMultipleIfClause " self parse: '{x for x in range(100) if x % 2 == 0 if x % 3 == 0}'. @@ -42172,7 +42172,7 @@ FASTPythonImporterTest >> testSetComprehensionWithMultipleIfClause [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithNone " self parse: '{None for x in range(3)}'. @@ -42243,7 +42243,7 @@ FASTPythonImporterTest >> testSetComprehensionWithNone [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithNotOperator " self parse: '{not old for x in range(3)}'. @@ -42322,7 +42322,7 @@ FASTPythonImporterTest >> testSetComprehensionWithNotOperator [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithSet " self parse: '{{ 1 } for x in range(3)}'. @@ -42402,7 +42402,7 @@ FASTPythonImporterTest >> testSetComprehensionWithSet [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithSetComprehension " self parse: '{{i + x for i in range(3) } for x in range(3)}'. @@ -42542,7 +42542,7 @@ FASTPythonImporterTest >> testSetComprehensionWithSetComprehension [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithString " self parse: '{"Hello" for x in range(3)}'. @@ -42614,7 +42614,7 @@ FASTPythonImporterTest >> testSetComprehensionWithString [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithSubscript " self parse: '{attrs[2] for x in range(3)}'. @@ -42702,7 +42702,7 @@ FASTPythonImporterTest >> testSetComprehensionWithSubscript [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithTrue " self parse: '{True for x in range(3)}'. @@ -42774,7 +42774,7 @@ FASTPythonImporterTest >> testSetComprehensionWithTrue [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithTuple " self parse: '{(x,) for x in range(3)}'. @@ -42852,7 +42852,7 @@ FASTPythonImporterTest >> testSetComprehensionWithTuple [ { #category : 'tests - comprehensions' } FASTPythonImporterTest >> testSetComprehensionWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetComprehensionWithUnaryOperator " self parse: '{-x for x in range(3)}'. @@ -42932,7 +42932,7 @@ FASTPythonImporterTest >> testSetComprehensionWithUnaryOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithAttribute " self parse: '{ obj.attr }'. @@ -42965,7 +42965,7 @@ FASTPythonImporterTest >> testSetWithAttribute [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithBinaryOperator " self parse: '{ 10 / 2 }'. @@ -43011,7 +43011,7 @@ FASTPythonImporterTest >> testSetWithBinaryOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithBooleanOperator " self parse: '{ x and y }'. @@ -43053,7 +43053,7 @@ FASTPythonImporterTest >> testSetWithBooleanOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithCall " self parse: '{ obj() }'. @@ -43087,7 +43087,7 @@ FASTPythonImporterTest >> testSetWithCall [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithComparisonOperator " self parse: '{ 1 > 3 }'. @@ -43130,7 +43130,7 @@ FASTPythonImporterTest >> testSetWithComparisonOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithComplexe " self parse: '{ 1j }'. @@ -43156,7 +43156,7 @@ FASTPythonImporterTest >> testSetWithComplexe [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithConditionalExpression " self parse: '{ x if True else y }'. @@ -43208,7 +43208,7 @@ FASTPythonImporterTest >> testSetWithConditionalExpression [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithDictionary " self parse: '{ { 1:1 } }'. @@ -43260,7 +43260,7 @@ FASTPythonImporterTest >> testSetWithDictionary [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithEllipsis " self parse: '{ ... }'. @@ -43285,7 +43285,7 @@ FASTPythonImporterTest >> testSetWithEllipsis [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithFalse " self parse: '{ False }'. @@ -43311,7 +43311,7 @@ FASTPythonImporterTest >> testSetWithFalse [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithFloat " self parse: '{ 0.1 }'. @@ -43337,7 +43337,7 @@ FASTPythonImporterTest >> testSetWithFloat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithIdentifier " self parse: '{ element }'. @@ -43361,7 +43361,7 @@ FASTPythonImporterTest >> testSetWithIdentifier [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithInteger " self parse: '{ 1 }'. @@ -43387,7 +43387,7 @@ FASTPythonImporterTest >> testSetWithInteger [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithLambda " self parse: '{ lambda x:x }'. @@ -43431,7 +43431,7 @@ FASTPythonImporterTest >> testSetWithLambda [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithList " self parse: '{ [ 1 ] }'. @@ -43465,7 +43465,7 @@ FASTPythonImporterTest >> testSetWithList [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithListSplat " self parse: '{ *args }'. @@ -43497,7 +43497,7 @@ FASTPythonImporterTest >> testSetWithListSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithList_comprehension " self parse: '{ [random for i in range(3)] }'. @@ -43574,7 +43574,7 @@ FASTPythonImporterTest >> testSetWithList_comprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithNone " self parse: '{ None }'. @@ -43599,7 +43599,7 @@ FASTPythonImporterTest >> testSetWithNone [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithNotOperator " self parse: '{ not old }'. @@ -43632,7 +43632,7 @@ FASTPythonImporterTest >> testSetWithNotOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithSet " self parse: '{ { 1 } }'. @@ -43665,7 +43665,7 @@ FASTPythonImporterTest >> testSetWithSet [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithSetComprehension " self parse: '{ {random for i in range(3)} }'. @@ -43742,7 +43742,7 @@ FASTPythonImporterTest >> testSetWithSetComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithSplat " self parse: '{*args, 1}'. @@ -43783,7 +43783,7 @@ FASTPythonImporterTest >> testSetWithSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithString " self parse: '{ "Hello" }'. @@ -43809,7 +43809,7 @@ FASTPythonImporterTest >> testSetWithString [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithSubscript " self parse: '{ attrs[2] }'. @@ -43852,7 +43852,7 @@ FASTPythonImporterTest >> testSetWithSubscript [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithTrue " self parse: '{ True }'. @@ -43878,7 +43878,7 @@ FASTPythonImporterTest >> testSetWithTrue [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithTuple " self parse: '{ (1,) }'. @@ -43912,7 +43912,7 @@ FASTPythonImporterTest >> testSetWithTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testSetWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSetWithUnaryOperator " self parse: '{ -1 }'. @@ -43964,7 +43964,7 @@ FASTPythonImporterTest >> testSingleQuotedString [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceAttribute " self parse: 'values[:obj.attr]'. @@ -44015,7 +44015,7 @@ FASTPythonImporterTest >> testSliceAttribute [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceBinaryOperator " self parse: 'lst[a+b:a+c:1]'. @@ -44106,7 +44106,7 @@ FASTPythonImporterTest >> testSliceBinaryOperator [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceBoolean [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceBoolean " self parse: 'lst[True:False]'. @@ -44157,7 +44157,7 @@ FASTPythonImporterTest >> testSliceBoolean [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceCall " self parse: 'values[1:indexOf(c)]'. @@ -44225,7 +44225,7 @@ FASTPythonImporterTest >> testSliceCall [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceConditionalExpression " self parse: 'lst[a if cond else b:c]'. @@ -44297,7 +44297,7 @@ FASTPythonImporterTest >> testSliceConditionalExpression [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceEmpty [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceEmpty " self parse: 'values[:]'. @@ -44330,7 +44330,7 @@ FASTPythonImporterTest >> testSliceEmpty [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceNone " self parse: 'values[1:None]'. @@ -44381,7 +44381,7 @@ FASTPythonImporterTest >> testSliceNone [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceParenthesis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceParenthesis " self parse: 'values[i:(i + h)]'. @@ -44446,7 +44446,7 @@ FASTPythonImporterTest >> testSliceParenthesis [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceReverse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceReverse " self parse: 'values[::-1]'. @@ -44501,7 +44501,7 @@ FASTPythonImporterTest >> testSliceReverse [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceSubscript " self parse: 'values[pady[0]:pady[1]]'. @@ -44584,7 +44584,7 @@ FASTPythonImporterTest >> testSliceSubscript [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceUnaryOperator " self parse: 'values[-1:-5:-1]'. @@ -44673,7 +44673,7 @@ FASTPythonImporterTest >> testSliceUnaryOperator [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceVariables [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceVariables " self parse: 'values[x:y]'. @@ -44719,7 +44719,7 @@ FASTPythonImporterTest >> testSliceVariables [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceWithEnd [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceWithEnd " self parse: 'values[:7]'. @@ -44763,7 +44763,7 @@ FASTPythonImporterTest >> testSliceWithEnd [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceWithStart [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceWithStart " self parse: 'values[2:]'. @@ -44807,7 +44807,7 @@ FASTPythonImporterTest >> testSliceWithStart [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceWithStartStopStep [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceWithStartStopStep " self parse: 'values[2:10:2]'. @@ -44865,7 +44865,7 @@ FASTPythonImporterTest >> testSliceWithStartStopStep [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSliceWithStep [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSliceWithStep " self parse: 'values[::4]'. @@ -44909,7 +44909,7 @@ FASTPythonImporterTest >> testSliceWithStep [ { #category : 'tests - types' } FASTPythonImporterTest >> testSplatType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSplatType " self parse: 'def f(*items: *Ts): pass'. @@ -44967,7 +44967,7 @@ FASTPythonImporterTest >> testSplatType [ { #category : 'tests - literals' } FASTPythonImporterTest >> testStringWithEscapedInterpolation [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testStringWithEscapedInterpolation " self parse: 'f"The result is {{value}}"'. @@ -44985,7 +44985,7 @@ FASTPythonImporterTest >> testStringWithEscapedInterpolation [ { #category : 'tests - literals' } FASTPythonImporterTest >> testStringWithEscapedSequence [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testStringWithEscapedSequence " self parse: '"Line 1\nLine 2"'. @@ -45003,7 +45003,7 @@ FASTPythonImporterTest >> testStringWithEscapedSequence [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscript " self parse: 'row[''id'']'. @@ -45038,7 +45038,7 @@ FASTPythonImporterTest >> testSubscript [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnAttribute " self parse: 'x.y[0]'. @@ -45082,7 +45082,7 @@ FASTPythonImporterTest >> testSubscriptOnAttribute [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnAttributeWithParenthesis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnAttributeWithParenthesis " self parse: '(os.environ)[''ATTR'']'. @@ -45126,7 +45126,7 @@ FASTPythonImporterTest >> testSubscriptOnAttributeWithParenthesis [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnAwait " self parse: 'await x[0]'. @@ -45169,7 +45169,7 @@ FASTPythonImporterTest >> testSubscriptOnAwait [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnBinaryOperator " self parse: '(y + x)[0]'. @@ -45222,7 +45222,7 @@ FASTPythonImporterTest >> testSubscriptOnBinaryOperator [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnCall " self parse: 'obj()[0]'. @@ -45267,7 +45267,7 @@ FASTPythonImporterTest >> testSubscriptOnCall [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnConditionalExpression " self parse: '(x if True else y)[0]'. @@ -45330,7 +45330,7 @@ FASTPythonImporterTest >> testSubscriptOnConditionalExpression [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnDictionary " self parse: '{ 1:x }[0]'. @@ -45391,7 +45391,7 @@ FASTPythonImporterTest >> testSubscriptOnDictionary [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnDictionaryComprehension " self parse: '{ v:x for v in y }[0]'. @@ -45475,7 +45475,7 @@ FASTPythonImporterTest >> testSubscriptOnDictionaryComprehension [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnIdentifier " self parse: 'obj[0]'. @@ -45510,7 +45510,7 @@ FASTPythonImporterTest >> testSubscriptOnIdentifier [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnList " self parse: '[ 1 ][0]'. @@ -45554,7 +45554,7 @@ FASTPythonImporterTest >> testSubscriptOnList [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnListComprehension " self parse: '[i + x for i in range(3)][0]'. @@ -45660,7 +45660,7 @@ FASTPythonImporterTest >> testSubscriptOnListComprehension [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnListSplat " self parse: '*args[0]'. @@ -45703,7 +45703,7 @@ FASTPythonImporterTest >> testSubscriptOnListSplat [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnSet " self parse: '{ 1 }[0]'. @@ -45747,7 +45747,7 @@ FASTPythonImporterTest >> testSubscriptOnSet [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnSetComprehension " self parse: '{i + x for i in range(3) }[0]'. @@ -45853,7 +45853,7 @@ FASTPythonImporterTest >> testSubscriptOnSetComprehension [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnString " self parse: '"Hello"[0]'. @@ -45890,7 +45890,7 @@ FASTPythonImporterTest >> testSubscriptOnString [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnSubscript " self parse: 'attrs[2][0]'. @@ -45942,7 +45942,7 @@ FASTPythonImporterTest >> testSubscriptOnSubscript [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnTuple " self parse: '(x, y)[0]'. @@ -45990,7 +45990,7 @@ FASTPythonImporterTest >> testSubscriptOnTuple [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptOnUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptOnUnaryOperator " self parse: '-x[0]'. @@ -46037,7 +46037,7 @@ FASTPythonImporterTest >> testSubscriptOnUnaryOperator [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptWithAttributeInSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptWithAttributeInSubscript " self parse: 'coll[obj.attr]'. @@ -46079,7 +46079,7 @@ FASTPythonImporterTest >> testSubscriptWithAttributeInSubscript [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptWithBinaryOperator " self parse: 'values[1 + 2]'. @@ -46135,7 +46135,7 @@ FASTPythonImporterTest >> testSubscriptWithBinaryOperator [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptWithEllipsis " self parse: 'imgs[..., i]'. @@ -46174,7 +46174,7 @@ FASTPythonImporterTest >> testSubscriptWithEllipsis [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptWithTwoIndicies [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptWithTwoIndicies " self parse: 'loc[1, 2]'. @@ -46216,7 +46216,7 @@ FASTPythonImporterTest >> testSubscriptWithTwoIndicies [ { #category : 'tests - subscripts' } FASTPythonImporterTest >> testSubscriptWithTwoSlices [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testSubscriptWithTwoSlices " self parse: 'arr[1:3, 2:4] '. @@ -46303,7 +46303,7 @@ FASTPythonImporterTest >> testTrue [ { #category : 'tests - try statement' } FASTPythonImporterTest >> testTryStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTryStatement " self parse: 'try: pass @@ -46349,7 +46349,7 @@ except: pass' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testTryStatementWithElseClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTryStatementWithElseClause " self parse: 'try: pass @@ -46418,10 +46418,10 @@ else: print(1)' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception'. self assert: (self topEntity isOfType: FASTPyIdentifier). stack pop. @@ -46446,7 +46446,7 @@ else: print(1)' withPlatformLineEndings. { #category : 'tests - try statement' } FASTPythonImporterTest >> testTryStatementWithFinallyClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTryStatementWithFinallyClause " self parse: 'try: pass @@ -46478,10 +46478,10 @@ finally: print(1)' withPlatformLineEndings. self assert: (self topEntity isOfType: FASTPyExceptClause). self assert: (self topEntity isOfType: FASTTStatementBlock). - "Testing value of multivalued relation expressions" - self assert: self topEntity expressions size equals: 1. - - stack push: (stack top expressions at: 1). + "Testing value of monovalue relation expression" + self assert: self topEntity expression isNotNil. + + stack push: self topEntity expression. self assert: self topEntity sourceCode equals: 'Exception'. self assert: (self topEntity isOfType: FASTPyIdentifier). stack pop. @@ -46543,7 +46543,7 @@ finally: print(1)' withPlatformLineEndings. { #category : 'tests - collections' } FASTPythonImporterTest >> testTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTuple " self parse: '(1, 2, 3)'. @@ -46583,7 +46583,7 @@ FASTPythonImporterTest >> testTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleExpression " self parse: '3, 5,'. @@ -46616,7 +46616,7 @@ FASTPythonImporterTest >> testTupleExpression [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleExpressionWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleExpressionWithCall " self parse: 'toto(), 5,'. @@ -46659,7 +46659,7 @@ FASTPythonImporterTest >> testTupleExpressionWithCall [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleOverview [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleOverview " self parse: '(2, 2.0, 2j, "abc", [3], (2,2), {3: 3}, b"def", bytearray(b"ghi"), True, False, None, ..., self.a)'. @@ -46859,7 +46859,7 @@ FASTPythonImporterTest >> testTupleOverview [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithAttribute " self parse: '(x.y, )'. @@ -46892,7 +46892,7 @@ FASTPythonImporterTest >> testTupleWithAttribute [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithBinaryOperator " self parse: '(1 + x, )'. @@ -46937,7 +46937,7 @@ FASTPythonImporterTest >> testTupleWithBinaryOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithBooleanOperator " self parse: '(x or y, )'. @@ -46979,7 +46979,7 @@ FASTPythonImporterTest >> testTupleWithBooleanOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithCall " self parse: '(factory(), )'. @@ -47013,7 +47013,7 @@ FASTPythonImporterTest >> testTupleWithCall [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithComparisonOperator " self parse: '(x > y, )'. @@ -47052,7 +47052,7 @@ FASTPythonImporterTest >> testTupleWithComparisonOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithComplexe " self parse: '(0j, )'. @@ -47078,7 +47078,7 @@ FASTPythonImporterTest >> testTupleWithComplexe [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithConditionalExpression " self parse: '(x if True else y, )'. @@ -47130,7 +47130,7 @@ FASTPythonImporterTest >> testTupleWithConditionalExpression [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithDictionary " self parse: '({ 1:x }, )'. @@ -47181,7 +47181,7 @@ FASTPythonImporterTest >> testTupleWithDictionary [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithDictionaryComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithDictionaryComprehension " self parse: '({ v:x for v in y }, )'. @@ -47254,7 +47254,7 @@ FASTPythonImporterTest >> testTupleWithDictionaryComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithEllipsis " self parse: '(..., )'. @@ -47279,7 +47279,7 @@ FASTPythonImporterTest >> testTupleWithEllipsis [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithFalse " self parse: '(False, )'. @@ -47305,7 +47305,7 @@ FASTPythonImporterTest >> testTupleWithFalse [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithFloat " self parse: '(0.0, )'. @@ -47331,7 +47331,7 @@ FASTPythonImporterTest >> testTupleWithFloat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithIdentifier " self parse: '(x, )'. @@ -47355,7 +47355,7 @@ FASTPythonImporterTest >> testTupleWithIdentifier [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithInteger " self parse: '(0, )'. @@ -47381,7 +47381,7 @@ FASTPythonImporterTest >> testTupleWithInteger [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithLambda " self parse: '((lambda x:x), )'. @@ -47425,7 +47425,7 @@ FASTPythonImporterTest >> testTupleWithLambda [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithList " self parse: '([ 1 ], )'. @@ -47459,7 +47459,7 @@ FASTPythonImporterTest >> testTupleWithList [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithListComprehension " self parse: '([i + x for i in range(3)], )'. @@ -47555,7 +47555,7 @@ FASTPythonImporterTest >> testTupleWithListComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithListSplat " self parse: '(*args, )'. @@ -47587,7 +47587,7 @@ FASTPythonImporterTest >> testTupleWithListSplat [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithNone " self parse: '(None, )'. @@ -47612,7 +47612,7 @@ FASTPythonImporterTest >> testTupleWithNone [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithNotOperator " self parse: '((not old), )'. @@ -47645,7 +47645,7 @@ FASTPythonImporterTest >> testTupleWithNotOperator [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithSet " self parse: '({ 1 }, )'. @@ -47679,7 +47679,7 @@ FASTPythonImporterTest >> testTupleWithSet [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithSetComprehension " self parse: '({i + x for i in range(3) }, )'. @@ -47775,7 +47775,7 @@ FASTPythonImporterTest >> testTupleWithSetComprehension [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithString " self parse: '("Hello", )'. @@ -47801,7 +47801,7 @@ FASTPythonImporterTest >> testTupleWithString [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithSubscript " self parse: '(x[2], )'. @@ -47844,7 +47844,7 @@ FASTPythonImporterTest >> testTupleWithSubscript [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithTrue " self parse: '(True, )'. @@ -47870,7 +47870,7 @@ FASTPythonImporterTest >> testTupleWithTrue [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithTuple " self parse: '((x, y), )'. @@ -47906,7 +47906,7 @@ FASTPythonImporterTest >> testTupleWithTuple [ { #category : 'tests - collections' } FASTPythonImporterTest >> testTupleWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTupleWithUnaryOperator " self parse: '(-x, )'. @@ -47941,7 +47941,7 @@ FASTPythonImporterTest >> testTupleWithUnaryOperator [ { #category : 'tests - comments' } FASTPythonImporterTest >> testTwoComments [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTwoComments " self parse: '# Comment 1 @@ -47982,7 +47982,7 @@ FASTPythonImporterTest >> testTwoComments [ { #category : 'tests - imports' } FASTPythonImporterTest >> testTwoImports [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTwoImports " self parse: 'import numpy as np @@ -48037,7 +48037,7 @@ import mathplotlib as mpl' withPlatformLineEndings. { #category : 'tests - statements' } FASTPythonImporterTest >> testTypeAliasStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeAliasStatement " self parse: 'type MyInt = int'. @@ -48085,7 +48085,7 @@ FASTPythonImporterTest >> testTypeAliasStatement [ { #category : 'tests - statements' } FASTPythonImporterTest >> testTypeAliasStatementInBlock [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeAliasStatementInBlock " self parse: 'def f(): type MyInt = int'. @@ -48145,7 +48145,7 @@ FASTPythonImporterTest >> testTypeAliasStatementInBlock [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeAttribute " self parse: 'def func() -> subprocess.CompletedProcess: pass'. @@ -48201,7 +48201,7 @@ FASTPythonImporterTest >> testTypeAttribute [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeBinaryOperator " self parse: 'def func() -> int | str: pass'. @@ -48266,7 +48266,7 @@ FASTPythonImporterTest >> testTypeBinaryOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeCall " self parse: 'def func() -> f(): pass'. @@ -48323,7 +48323,7 @@ FASTPythonImporterTest >> testTypeCall [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeComparisonOperator " self parse: 'def func() -> 1 > 3: pass'. @@ -48388,7 +48388,7 @@ FASTPythonImporterTest >> testTypeComparisonOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeDictionary " self parse: 'def func() -> {42: ''ham''}: pass #Valid in Python3...'. @@ -48475,7 +48475,7 @@ FASTPythonImporterTest >> testTypeDictionary [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeEllipsis " self parse: 'def func() -> ...: pass'. @@ -48522,7 +48522,7 @@ FASTPythonImporterTest >> testTypeEllipsis [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeFalse " self parse: 'def func() -> False: pass'. @@ -48570,7 +48570,7 @@ FASTPythonImporterTest >> testTypeFalse [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeFloat " self parse: 'def func() -> 1.5: pass'. @@ -48618,7 +48618,7 @@ FASTPythonImporterTest >> testTypeFloat [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeIdentifier " self parse: 'def func() -> Path: pass'. @@ -48664,7 +48664,7 @@ FASTPythonImporterTest >> testTypeIdentifier [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeInteger " self parse: 'def func() -> 1: pass'. @@ -48712,7 +48712,7 @@ FASTPythonImporterTest >> testTypeInteger [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeLambda " self parse: 'def func() -> lambda : None: pass'. @@ -48769,7 +48769,7 @@ FASTPythonImporterTest >> testTypeLambda [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeList " self parse: 'def func() -> [object]: pass'. @@ -48824,7 +48824,7 @@ FASTPythonImporterTest >> testTypeList [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeListComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeListComprehension " self parse: 'def func() -> [T for T in T.name]: pass'. @@ -48914,7 +48914,7 @@ FASTPythonImporterTest >> testTypeListComprehension [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeNone " self parse: 'def func() -> None: pass'. @@ -48961,7 +48961,7 @@ FASTPythonImporterTest >> testTypeNone [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeNotOperator " self parse: 'def func() -> not True: pass'. @@ -49019,7 +49019,7 @@ FASTPythonImporterTest >> testTypeNotOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeParametersInFunctionDefinition [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeParametersInFunctionDefinition " self parse: 'def f[T](): pass'. @@ -49064,7 +49064,7 @@ FASTPythonImporterTest >> testTypeParametersInFunctionDefinition [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeParametersMultiple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeParametersMultiple " self parse: 'def f[T, K, L](): pass'. @@ -49135,7 +49135,7 @@ FASTPythonImporterTest >> testTypeParametersMultiple [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeSet " self parse: 'def func() -> { 1 }: pass'. @@ -49192,7 +49192,7 @@ FASTPythonImporterTest >> testTypeSet [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeString " self parse: 'def func() -> "test": pass'. @@ -49240,7 +49240,7 @@ FASTPythonImporterTest >> testTypeString [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeTrue " self parse: 'def func() -> True: pass'. @@ -49288,7 +49288,7 @@ FASTPythonImporterTest >> testTypeTrue [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeTuple " self parse: 'def func() -> (1, ): pass'. @@ -49345,7 +49345,7 @@ FASTPythonImporterTest >> testTypeTuple [ { #category : 'tests - types' } FASTPythonImporterTest >> testTypeUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypeUnaryOperator " self parse: 'def func() -> -1: pass'. @@ -49404,7 +49404,7 @@ FASTPythonImporterTest >> testTypeUnaryOperator [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testTypedListSplatParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypedListSplatParameter " self parse: 'def f(*arg: Any): pass'. @@ -49461,7 +49461,7 @@ FASTPythonImporterTest >> testTypedListSplatParameter [ { #category : 'tests - function definitions' } FASTPythonImporterTest >> testTypedParameter [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testTypedParameter " self parse: 'def f(location: Path): pass'. @@ -49535,7 +49535,7 @@ FASTPythonImporterTest >> testUnaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithAttribute " self parse: '~x.y'. @@ -49572,7 +49572,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithAttribute [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithAwait [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithAwait " self parse: '~await x'. @@ -49608,7 +49608,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithAwait [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithBinaryOperator " self parse: '~-10**e'. @@ -49667,7 +49667,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithBinaryOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithBooleanOperator " self parse: '~(x or y)'. @@ -49713,7 +49713,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithBooleanOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithCall " self parse: '~factory()'. @@ -49751,7 +49751,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithCall [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithComparisonOperator " self parse: '~(x > y)'. @@ -49793,7 +49793,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithComparisonOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithComplexe " self parse: '~0j'. @@ -49822,7 +49822,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithComplexe [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithConditionalExpression " self parse: '~(x if True else y)'. @@ -49878,7 +49878,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithConditionalExpression [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithFalse " self parse: '~False'. @@ -49907,7 +49907,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithFalse [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithFloat " self parse: '~0.0'. @@ -49936,7 +49936,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithFloat [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithIdentifier " self parse: '~x'. @@ -49963,7 +49963,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithIdentifier [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithInteger " self parse: '~0'. @@ -49992,7 +49992,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithInteger [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithNotOperator " self parse: '~(not old)'. @@ -50029,7 +50029,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithNotOperator [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithString " self parse: '~""'. @@ -50058,7 +50058,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithString [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithSubscript " self parse: '~x[2]'. @@ -50105,7 +50105,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithSubscript [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithTrue " self parse: '~True'. @@ -50134,7 +50134,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithTrue [ { #category : 'tests - operators' } FASTPythonImporterTest >> testUnaryOperatorWithUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnaryOperatorWithUnaryOperator " self parse: '~-x'. @@ -50171,7 +50171,7 @@ FASTPythonImporterTest >> testUnaryOperatorWithUnaryOperator [ { #category : 'tests - types' } FASTPythonImporterTest >> testUnionType [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testUnionType " self parse: 'def f( arg: IO[bytes] | int): pass'. @@ -50276,7 +50276,7 @@ FASTPythonImporterTest >> testUnionType [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testVariableDeclaration [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testVariableDeclaration " self parse: 'posix: ModuleType'. @@ -50318,7 +50318,7 @@ FASTPythonImporterTest >> testVariableDeclaration [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrus [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrus " self parse: '(x := 1)'. @@ -50345,7 +50345,7 @@ FASTPythonImporterTest >> testWalrus [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusAttribute [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusAttribute " self parse: 'a := x.y'. @@ -50379,7 +50379,7 @@ FASTPythonImporterTest >> testWalrusAttribute [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusBinaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusBinaryOperator " self parse: 'a := 10 / 2'. @@ -50426,7 +50426,7 @@ FASTPythonImporterTest >> testWalrusBinaryOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusBooleanOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusBooleanOperator " self parse: 'a := x and y'. @@ -50469,7 +50469,7 @@ FASTPythonImporterTest >> testWalrusBooleanOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusCall [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusCall " self parse: 'a := obj()'. @@ -50504,7 +50504,7 @@ FASTPythonImporterTest >> testWalrusCall [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusComparisonOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusComparisonOperator " self parse: 'a := 1 > 3'. @@ -50548,7 +50548,7 @@ FASTPythonImporterTest >> testWalrusComparisonOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusComplexe [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusComplexe " self parse: 'a := 1j'. @@ -50575,7 +50575,7 @@ FASTPythonImporterTest >> testWalrusComplexe [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusConditionalExpression [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusConditionalExpression " self parse: 'a := x if True else y'. @@ -50628,7 +50628,7 @@ FASTPythonImporterTest >> testWalrusConditionalExpression [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusDictionary [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusDictionary " self parse: 'a := { 1:1 }'. @@ -50681,7 +50681,7 @@ FASTPythonImporterTest >> testWalrusDictionary [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusEllipsis [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusEllipsis " self parse: 'a := ...'. @@ -50707,7 +50707,7 @@ FASTPythonImporterTest >> testWalrusEllipsis [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusFalse [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusFalse " self parse: 'a := False'. @@ -50734,7 +50734,7 @@ FASTPythonImporterTest >> testWalrusFalse [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusFloat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusFloat " self parse: 'a := 0.1'. @@ -50761,7 +50761,7 @@ FASTPythonImporterTest >> testWalrusFloat [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusIdentifier " self parse: 'a := element'. @@ -50786,7 +50786,7 @@ FASTPythonImporterTest >> testWalrusIdentifier [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusInteger [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusInteger " self parse: 'a := 1'. @@ -50813,7 +50813,7 @@ FASTPythonImporterTest >> testWalrusInteger [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusLambda [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusLambda " self parse: 'a := lambda x:x'. @@ -50858,7 +50858,7 @@ FASTPythonImporterTest >> testWalrusLambda [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusList " self parse: 'a := [ remote ]'. @@ -50891,7 +50891,7 @@ FASTPythonImporterTest >> testWalrusList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusListSplat [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusListSplat " self parse: 'a := *args'. @@ -50924,7 +50924,7 @@ FASTPythonImporterTest >> testWalrusListSplat [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusList_comprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusList_comprehension " self parse: 'a := [random for i in range(3)]'. @@ -51002,7 +51002,7 @@ FASTPythonImporterTest >> testWalrusList_comprehension [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusNone [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusNone " self parse: 'a := None'. @@ -51028,7 +51028,7 @@ FASTPythonImporterTest >> testWalrusNone [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusNotOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusNotOperator " self parse: 'a := not old'. @@ -51062,7 +51062,7 @@ FASTPythonImporterTest >> testWalrusNotOperator [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusPatternList [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusPatternList " self parse: 'a := a, b'. @@ -51101,7 +51101,7 @@ FASTPythonImporterTest >> testWalrusPatternList [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusSet [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusSet " self parse: 'a := { 1 }'. @@ -51136,7 +51136,7 @@ FASTPythonImporterTest >> testWalrusSet [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusSetComprehension [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusSetComprehension " self parse: 'a := {random for i in range(3)}'. @@ -51214,7 +51214,7 @@ FASTPythonImporterTest >> testWalrusSetComprehension [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusString [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusString " self parse: 'a := "Hello"'. @@ -51241,7 +51241,7 @@ FASTPythonImporterTest >> testWalrusString [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusSubscript [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusSubscript " self parse: 'a := attrs[2]'. @@ -51285,7 +51285,7 @@ FASTPythonImporterTest >> testWalrusSubscript [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusTrue [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusTrue " self parse: 'a := True'. @@ -51312,7 +51312,7 @@ FASTPythonImporterTest >> testWalrusTrue [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusTuple [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusTuple " self parse: 'a := (a,b)'. @@ -51350,7 +51350,7 @@ FASTPythonImporterTest >> testWalrusTuple [ { #category : 'tests - assignments' } FASTPythonImporterTest >> testWalrusUnaryOperator [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWalrusUnaryOperator " self parse: 'a := -1'. @@ -51388,7 +51388,7 @@ FASTPythonImporterTest >> testWalrusUnaryOperator [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testWhile [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWhile " self parse: 'while True: @@ -51429,7 +51429,7 @@ FASTPythonImporterTest >> testWhile [ { #category : 'tests - advanced statements' } FASTPythonImporterTest >> testWhileStatementWithElseClause [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWhileStatementWithElseClause " self parse: 'while True: @@ -51529,7 +51529,7 @@ else: print("Hello")' withPlatformLineEndings. { #category : 'tests - with statements' } FASTPythonImporterTest >> testWithStatement [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWithStatement " self parse: 'with open(): pass'. @@ -51574,7 +51574,7 @@ FASTPythonImporterTest >> testWithStatement [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testWithStatementWithAsPattern [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWithStatementWithAsPattern " self parse: 'with open() as f: pass'. @@ -51636,7 +51636,7 @@ FASTPythonImporterTest >> testWithStatementWithAsPattern [ { #category : 'tests - with statements' } FASTPythonImporterTest >> testWithStatementWithMultipleAsPattern [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testWithStatementWithMultipleAsPattern " self parse: 'with expr1 as target1, expr2 as target2, expr3 as target3: pass'. @@ -51729,7 +51729,7 @@ FASTPythonImporterTest >> testWithStatementWithMultipleAsPattern [ { #category : 'tests' } FASTPythonImporterTest >> testYield [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testYield " self parse: 'yield'. @@ -51745,7 +51745,7 @@ FASTPythonImporterTest >> testYield [ { #category : 'tests' } FASTPythonImporterTest >> testYieldFrom [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testYieldFrom " self parse: 'yield from x'. @@ -51769,7 +51769,7 @@ FASTPythonImporterTest >> testYieldFrom [ { #category : 'tests' } FASTPythonImporterTest >> testYieldWithIdentifier [ - "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol: + "Generated as regression test by TSFASTImporterTestGenerator>>#generateTestNamed:fromCode:protocol: Regenerate executing: self regenerateTest: #testYieldWithIdentifier " self parse: 'yield x'. diff --git a/src/FAST-Python-Tools-Tests/ManifestFASTPythonToolsTests.class.st b/src/FAST-Python-Tools-Tests/ManifestFASTPythonToolsTests.class.st index 3faa258..441a5ef 100644 --- a/src/FAST-Python-Tools-Tests/ManifestFASTPythonToolsTests.class.st +++ b/src/FAST-Python-Tools-Tests/ManifestFASTPythonToolsTests.class.st @@ -13,5 +13,5 @@ Class { ManifestFASTPythonToolsTests class >> ruleReCollectionAtCollectionSizeRuleV1FalsePositive [ - ^ #(#(#(#RGClassDefinition #(#FASTPythonImporterTest)) #'2026-03-03T01:09:10.854455+01:00') ) + ^ #(#(#(#RGClassDefinition #(#FASTPythonImporterTest)) #'2026-03-03T01:09:10.854455+01:00') #(#(#RGPackageDefinition #(#'FAST-Python-Tools-Tests')) #'2026-06-10T14:34:34.337737+02:00') ) ] diff --git a/src/FAST-Python-Tools/FASTPyEntity.extension.st b/src/FAST-Python-Tools/FASTPyEntity.extension.st new file mode 100644 index 0000000..d85df03 --- /dev/null +++ b/src/FAST-Python-Tools/FASTPyEntity.extension.st @@ -0,0 +1,13 @@ +Extension { #name : 'FASTPyEntity' } + +{ #category : '*FAST-Python-Tools' } +FASTPyEntity >> cfg [ + + ^ FASTPythonCFGVisitor buildCFGOf: self +] + +{ #category : '*FAST-Python-Tools' } +FASTPyEntity >> fullCfg [ + + ^ FASTPythonCFGVisitor new buildFullCFGOf: self +] diff --git a/src/FAST-Python-Tools/FASTPythonCFGVisitor.class.st b/src/FAST-Python-Tools/FASTPythonCFGVisitor.class.st new file mode 100644 index 0000000..b0f6cb9 --- /dev/null +++ b/src/FAST-Python-Tools/FASTPythonCFGVisitor.class.st @@ -0,0 +1,259 @@ +" +I am a visitor used to build a CFG for FASTPython. + +##Usage + +I can be used like this: + +```smalltalk + FASTPythonCFGVisitor buildCFGOf: aModel allFunctionDefinitions first. + + ""or"" + + aModel allFunctionDefinitions first cfg +``` + +# Entry Points + +I can take one of five different entities to build a CFG: +- a `FASTPyModule` +- a `FASTPyFunctionDefinition` +- a `FASTPyMethodDefinition` +- a `FASTPyLambda` +- a `FASTPyClassDefinition` + +# Full CFG + +It is possible to build af ""full"" CFG via `#fullCfg`. A full CFG returns a dictionary with each definition encountered associated to their CFG. The first entry of the dictionary is the provided definition. +" +Class { + #name : 'FASTPythonCFGVisitor', + #superclass : 'FASTPythonVisitor', + #traits : 'FASTTCFGUtility', + #classTraits : 'FASTTCFGUtility classTrait', + #instVars : [ + 'started', + 'cfgs' + ], + #category : 'FAST-Python-Tools-CFG/DataFlow', + #package : 'FAST-Python-Tools', + #tag : 'CFG/DataFlow' +} + +{ #category : 'running' } +FASTPythonCFGVisitor >> buildFullCFGOf: aFASTEntryNode [ + "I build the CFG of the node provided but also of all definitions I encounter." + + cfgs := OrderedDictionary new. + + cfgs at: aFASTEntryNode put: (self buildCFGOf: aFASTEntryNode). + + ^ cfgs +] + +{ #category : 'initialization' } +FASTPythonCFGVisitor >> initialize [ + + super initialize. + self initializeCFG. + started := false +] + +{ #category : 'visiting - reordering' } +FASTPythonCFGVisitor >> visitFASTPyBreakStatement: aBreakStatement [ + "We need to visit the statement before the TBreakStatement to add the break statement in the list of statements. Else the visit of #FASTPyStatement will be skipped by the exception raised FASTCFGStatementBlockInterruption" + + self visitFASTPyStatement: aBreakStatement. + self visitFASTTBreakStatement: aBreakStatement +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyCaseClause: aCaseClause [ + + | pattern | + self assert: self currentConditional isSwitch. + + "In Python a pattern can come with a condition. If that is the case, I ship the pattern with this condition." + pattern := aCaseClause pattern ifNotNil: [ + aCaseClause condition + ifNil: [ aCaseClause pattern ] + ifNotNil: [ :condition | { aCaseClause pattern . condition } ] ]. + + "If we have multiple times the same pattern in a match, we keep only the first one because the others will be ignored." + (self currentConditional includesPattern: pattern) ifTrue: [ ^ self ]. + + self currentConditional addPattern: pattern. + + self visitFASTTStatementBlock: aCaseClause +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitFASTPyClassDefinition: aClass [ + + self visitPossibleEntryPoints: aClass +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyConditionalExpression: aConditionalExpression [ + + self visitFASTTConditionalStatement: aConditionalExpression. + + self buildAndUseConditionalDuring: [ + self addStatement: aConditionalExpression thenExpression. + self endBlock. + self addStatement: aConditionalExpression elseExpression. + self buildBlockIfNeeded ] +] + +{ #category : 'visiting - reordering' } +FASTPythonCFGVisitor >> visitFASTPyContinueStatement: aContinueStatement [ + "We need to visit the statement before the TContinueStatement to add the break statement in the list of statements. Else the visit of #FASTPyStatement will be skipped by the exception raised FASTCFGStatementBlockInterruption" + + self visitFASTPyStatement: aContinueStatement. + self visitFASTTContinueStatement: aContinueStatement +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyElifClause: anElifClause [ + + self visitFASTTConditionalStatement: anElifClause. + + "In the case of the elif, the else clause is in the parent and not here. So we create a conditional that will be automatically popped when we will finalize the containing if." + self buildAndPushBlockOfType: FASTCFGConditionalBlock. + self visitFASTTStatementBlock: anElifClause +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyExceptClause: anExceptClause [ + + self assert: self currentConditional isTry. + + self currentConditional addPattern: anExceptClause expression. + + self visitFASTTStatementBlock: anExceptClause +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyExpression: aFASTPyExpression [ + "We ignore expressions that are not in a statement block" + + aFASTPyExpression isExpressionStatement ifTrue: [ ^ super visitFASTPyExpression: aFASTPyExpression ] +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyFinallyClause: aFinallyClause [ + "We do not want to create the block immediatly because this content will be added with the following instructions after the try since they should be executed together." + + aFinallyClause statements do: [ :statement | self addStatement: statement ] +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyForStatement: aForStatement [ + + self buildBlockIfNeeded. + + self addStatement: aForStatement left. + self addStatement: aForStatement right. + + self buildAndUseLoopDuring: [ + self visitFASTTStatementBlock: aForStatement. + + "We add the loops after finishing the first statement block, so the else can be managed in this block to be in the right context." + self visitFASTPyTWithElseClause: aForStatement ] +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitFASTPyFunctionDefinition: aFunction [ + + self visitPossibleEntryPoints: aFunction +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyIfStatement: anIfStatement [ + + self visitFASTTConditionalStatement: anIfStatement. + + self buildAndUseConditionalDuring: [ + self visitEntity: anIfStatement thenClause. + self visitCollection: anIfStatement elifClauses. + self visitFASTPyTWithElseClause: anIfStatement ] +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitFASTPyLambda: aLambda [ + + self visitPossibleEntryPoints: aLambda +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyMatchStatement: aMatchStatement [ + "We skip the visit of the statement. We add the subject as last thing to execute of the previous block then we declare a switch." + + self addStatement: aMatchStatement subject. + + self buildAndUseSwitchDuring: [ self visitCollection: aMatchStatement cases ] +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitFASTPyMethodDefinition: aMethod [ + + self visitPossibleEntryPoints: aMethod +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitFASTPyModule: aModule [ + + self visitPossibleEntryPoints: aModule +] + +{ #category : 'visiting - reordering' } +FASTPythonCFGVisitor >> visitFASTPyReturnStatement: aReturnStatement [ + "We need to visit the statement before the TReturnStatement to add the return statement in the list of statements. Else the visit of #FASTPyStatement will be skipped by the exception raised FASTCFGStatementBlockInterruption" + + self visitFASTPyStatement: aReturnStatement. + self visitFASTTReturnStatement: aReturnStatement. +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyTryStatement: aTryStatement [ + + self buildBlockIfNeeded. + self visitCollection: aTryStatement statements. + + self buildAndUseTryDuring: [ + self visitCollection: aTryStatement excepts. + + aTryStatement elseClause ifNotNil: [ :clause | + context top conditional addPattern: nil. + self visitEntity: clause ]. + + self visitEntity: aTryStatement finally ] +] + +{ #category : 'visiting' } +FASTPythonCFGVisitor >> visitFASTPyWhileStatement: aWhileStatement [ + + self buildBlockIfNeeded. + self visitFASTTConditionalStatement: aWhileStatement. + + self buildAndUseLoopDuring: [ + self visitFASTTStatementBlock: aWhileStatement. + + "We add the loops after finishing the first statement block, so the else can be managed in this block to be in the right context." + self visitFASTPyTWithElseClause: aWhileStatement ] +] + +{ #category : 'visiting - entry points' } +FASTPythonCFGVisitor >> visitPossibleEntryPoints: aFASTEntity [ + "I am the definition of a function, method, class, module or lambda. I can be the entry point of a CFG but I can also be a statement encountered in another definition. + + In the first case I visit the definition's statement block. Else I consider the definition as a statement only." + + started + ifTrue: [ + self visitFASTTStatement: aFASTEntity. + cfgs ifNotNil: [ "In this case, we also need to build the CFG of node and store it" cfgs at: aFASTEntity put: aFASTEntity cfg ] ] + ifFalse: [ + started := true. + self visitFASTTStatementBlock: aFASTEntity ] +] diff --git a/src/FAST-Python-Tools/FASTPythonImporter.class.st b/src/FAST-Python-Tools/FASTPythonImporter.class.st index 9796edd..a3bb245 100644 --- a/src/FAST-Python-Tools/FASTPythonImporter.class.st +++ b/src/FAST-Python-Tools/FASTPythonImporter.class.st @@ -6,8 +6,9 @@ I mostly declare the TS language to use and redirect the visit to `FASTPythonVis Class { #name : 'FASTPythonImporter', #superclass : 'TSFASTAbstractImporter', - #category : 'FAST-Python-Tools', - #package : 'FAST-Python-Tools' + #category : 'FAST-Python-Tools-Importing', + #package : 'FAST-Python-Tools', + #tag : 'Importing' } { #category : 'world menu' } @@ -98,5 +99,5 @@ FASTPythonImporter >> tsLanguage [ { #category : 'accessing' } FASTPythonImporter >> visitorClass [ - ^ FASTPythonVisitor + ^ FASTPythonTreeSitterVisitor ] diff --git a/src/FAST-Python-Tools/FASTPythonVisitor.class.st b/src/FAST-Python-Tools/FASTPythonTreeSitterVisitor.class.st similarity index 80% rename from src/FAST-Python-Tools/FASTPythonVisitor.class.st rename to src/FAST-Python-Tools/FASTPythonTreeSitterVisitor.class.st index 48427c4..a2ddb8e 100644 --- a/src/FAST-Python-Tools/FASTPythonVisitor.class.st +++ b/src/FAST-Python-Tools/FASTPythonTreeSitterVisitor.class.st @@ -1,19 +1,20 @@ Class { - #name : 'FASTPythonVisitor', + #name : 'FASTPythonTreeSitterVisitor', #superclass : 'TSFASTCustomizableVisitor', - #category : 'FAST-Python-Tools', - #package : 'FAST-Python-Tools' + #category : 'FAST-Python-Tools-Importing', + #package : 'FAST-Python-Tools', + #tag : 'Importing' } { #category : 'class initialization' } -FASTPythonVisitor class >> initialize [ +FASTPythonTreeSitterVisitor class >> initialize [ "For now we use the bleeding edge" TSLibrariesPython gitBranchToUse: 'master' ] { #category : 'private' } -FASTPythonVisitor >> handleBinaryOperator: aTSNode ofKind: aClass [ +FASTPythonTreeSitterVisitor >> handleBinaryOperator: aTSNode ofKind: aClass [ | fastEntity | self onNextContextDo: [ :contextEntry | @@ -31,7 +32,7 @@ FASTPythonVisitor >> handleBinaryOperator: aTSNode ofKind: aClass [ ] { #category : 'private' } -FASTPythonVisitor >> handleCollectionNode: aTSNode kind: aFASTClass [ +FASTPythonTreeSitterVisitor >> handleCollectionNode: aTSNode kind: aFASTClass [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #initializers ]. @@ -39,7 +40,7 @@ FASTPythonVisitor >> handleCollectionNode: aTSNode kind: aFASTClass [ ] { #category : 'private' } -FASTPythonVisitor >> handleParameterNode: aTSNode name: aString [ +FASTPythonTreeSitterVisitor >> handleParameterNode: aTSNode name: aString [ | parameter | parameter := self handleNode: aTSNode kind: FASTPyParameter parentBlock: [ :entity | self topFastEntity addParameter: entity ]. @@ -48,14 +49,14 @@ FASTPythonVisitor >> handleParameterNode: aTSNode name: aString [ ] { #category : 'initialization' } -FASTPythonVisitor >> initialize [ +FASTPythonTreeSitterVisitor >> initialize [ super initialize. self languageName: 'Py' ] { #category : 'testing' } -FASTPythonVisitor >> isInParameter: aNode [ +FASTPythonTreeSitterVisitor >> isInParameter: aNode [ | parent type | parent := aNode parent. @@ -68,7 +69,7 @@ FASTPythonVisitor >> isInParameter: aNode [ ] { #category : 'testing' } -FASTPythonVisitor >> shouldIdentifierSetNameProperty [ +FASTPythonTreeSitterVisitor >> shouldIdentifierSetNameProperty [ ({ FASTPyGenericType. FASTPySplatType } anySatisfy: [ :class | context top isOfFASTType: class ]) ifTrue: [ ^ true ]. @@ -78,14 +79,14 @@ FASTPythonVisitor >> shouldIdentifierSetNameProperty [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitAliasedImport: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAliasedImport: aTSNode [ "Nothing to do. The visit of my children will take care of things. I use the #raw version since it is what should be used to skip a context level." self rawVisitChildren: aTSNode ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitArgumentList: aTSNode [ +FASTPythonTreeSitterVisitor >> visitArgumentList: aTSNode [ "We skip this node and visit the children directly." (self topFastEntity isOfType: FASTPyClassDefinition) ifTrue: [ self setTopFieldTo: 'superclasses' ]. @@ -93,7 +94,7 @@ FASTPythonVisitor >> visitArgumentList: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitAsPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAsPattern: aTSNode [ aTSNode parent type = #case_pattern ifTrue: [ "We are the alias of a case clause." @@ -121,14 +122,14 @@ FASTPythonVisitor >> visitAsPattern: aTSNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitAsPatternTarget: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAsPatternTarget: aTSNode [ "Nothing to do. The visit of my child will take care of things. I use the #raw version since it is what should be used to skip a context level." self rawVisitChildren: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitAssertStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAssertStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expressions ]. @@ -136,7 +137,7 @@ FASTPythonVisitor >> visitAssertStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitAttribute: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAttribute: aTSNode [ self onNextContextDo: [ :entry | entry add: 'value' asAliasOfField: 'object' ]. @@ -144,7 +145,7 @@ FASTPythonVisitor >> visitAttribute: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitAugmentedAssignment: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAugmentedAssignment: aTSNode [ | fastEntity | @@ -158,7 +159,7 @@ FASTPythonVisitor >> visitAugmentedAssignment: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitAwait: aTSNode [ +FASTPythonTreeSitterVisitor >> visitAwait: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. @@ -166,13 +167,13 @@ FASTPythonVisitor >> visitAwait: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitBinaryOperator: aTSNode [ +FASTPythonTreeSitterVisitor >> visitBinaryOperator: aTSNode [ ^ self handleBinaryOperator: aTSNode ofKind: FASTPyBinaryOperator ] { #category : 'visiting' } -FASTPythonVisitor >> visitBlock: aTSNode [ +FASTPythonTreeSitterVisitor >> visitBlock: aTSNode [ "I should be simplified a little bit when the importer will be stable." self onNextContextDo: [ :contextEntry | contextEntry aliasUnnamedFieldAs: 'statements' ]. @@ -187,13 +188,13 @@ FASTPythonVisitor >> visitBlock: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitBooleanOperator: aTSNode [ +FASTPythonTreeSitterVisitor >> visitBooleanOperator: aTSNode [ ^ self handleBinaryOperator: aTSNode ofKind: FASTPyBooleanOperator ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitCall: aTSNode [ +FASTPythonTreeSitterVisitor >> visitCall: aTSNode [ self onNextContextDo: [ :entry | entry add: 'callee' asAliasOfField: 'function' ]. @@ -201,7 +202,7 @@ FASTPythonVisitor >> visitCall: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitCaseClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitCaseClause: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'pattern' ]. @@ -209,14 +210,14 @@ FASTPythonVisitor >> visitCaseClause: aTSNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitCasePattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitCasePattern: aTSNode [ "We skip this node to put the content in the case_clause." ^ self rawVisitChildren: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitChevron: aTSNode [ +FASTPythonTreeSitterVisitor >> visitChevron: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. @@ -224,7 +225,7 @@ FASTPythonVisitor >> visitChevron: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitClassDefinition: aNode [ +FASTPythonTreeSitterVisitor >> visitClassDefinition: aNode [ self onNextContextDo: [ :entry | entry add: 'statementBlock' asAliasOfField: 'body' ]. @@ -232,7 +233,7 @@ FASTPythonVisitor >> visitClassDefinition: aNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitClassPattern: aNode [ +FASTPythonTreeSitterVisitor >> visitClassPattern: aNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #elements ]. @@ -240,13 +241,13 @@ FASTPythonVisitor >> visitClassPattern: aNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitComment: aTSNode [ +FASTPythonTreeSitterVisitor >> visitComment: aTSNode [ ^ self handleNode: aTSNode parentBlock: [ :entity | self topFastEntity addComment: entity ] ] { #category : 'visiting' } -FASTPythonVisitor >> visitComparisonOperator: aTSNode [ +FASTPythonTreeSitterVisitor >> visitComparisonOperator: aTSNode [ | fastEntity | self onNextContextDo: [ :contextEntry | contextEntry aliasUnnamedFieldAs: 'operands' ]. @@ -260,7 +261,7 @@ FASTPythonVisitor >> visitComparisonOperator: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitComplexPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitComplexPattern: aTSNode [ | fastEntity | fastEntity := self instantiateFastEntity: FASTPyBinaryOperator from: aTSNode. @@ -280,7 +281,7 @@ FASTPythonVisitor >> visitComplexPattern: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitComprehension: aTSNode [ +FASTPythonTreeSitterVisitor >> visitComprehension: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'forClauses' ]. @@ -288,7 +289,7 @@ FASTPythonVisitor >> visitComprehension: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitConcatenatedString: aTSNode [ +FASTPythonTreeSitterVisitor >> visitConcatenatedString: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #strings ]. @@ -296,7 +297,7 @@ FASTPythonVisitor >> visitConcatenatedString: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitConditionalExpression: aTSNode [ +FASTPythonTreeSitterVisitor >> visitConditionalExpression: aTSNode [ | fastEntity | fastEntity := self instantiateFastEntity: FASTPyConditionalExpression from: aTSNode. @@ -318,7 +319,7 @@ FASTPythonVisitor >> visitConditionalExpression: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitConstrainedType: aTSNode [ +FASTPythonTreeSitterVisitor >> visitConstrainedType: aTSNode [ | fastEntity | fastEntity := self instantiateFastEntity: FASTPyConstrainedType from: aTSNode. @@ -336,7 +337,7 @@ FASTPythonVisitor >> visitConstrainedType: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitDecoratedDefinition: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDecoratedDefinition: aTSNode [ "We do not wish to create a node for a decorated_definition. The node will always have an unnamed field containing the decorators and a definition field with the definition." | fastEntity definitionNode | @@ -351,7 +352,7 @@ FASTPythonVisitor >> visitDecoratedDefinition: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitDecorator: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDecorator: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. @@ -359,7 +360,7 @@ FASTPythonVisitor >> visitDecorator: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitDefaultParameter: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDefaultParameter: aTSNode [ | children parameter | children := aTSNode collectNamedChild. @@ -377,7 +378,7 @@ FASTPythonVisitor >> visitDefaultParameter: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitDeleteStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDeleteStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. @@ -385,7 +386,7 @@ FASTPythonVisitor >> visitDeleteStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitDictPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDictPattern: aTSNode [ "We do not want something specific for dict pattern, we just want to create a dictionary." | fastEntity | @@ -414,33 +415,33 @@ FASTPythonVisitor >> visitDictPattern: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitDictionary: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDictionary: aTSNode [ ^ self handleCollectionNode: aTSNode kind: FASTPyDictionary ] { #category : 'visiting' } -FASTPythonVisitor >> visitDictionaryComprehension: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDictionaryComprehension: aTSNode [ ^ self visitComprehension: aTSNode ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitDictionarySplat: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDictionarySplat: aTSNode [ "Treat both splat the same way." ^ self visitListSplat: aTSNode ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitDictionarySplatPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDictionarySplatPattern: aTSNode [ "Handle both nodes the same." ^ self visitListSplatPattern: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitDottedName: aTSNode [ +FASTPythonTreeSitterVisitor >> visitDottedName: aTSNode [ | fastEntity | @@ -478,39 +479,39 @@ FASTPythonVisitor >> visitDottedName: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitElifClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitElifClause: aTSNode [ ^ self handleNode: aTSNode kind: FASTPyElifClause parentBlock: [ :entity | self topFastEntity addElifClause: entity ] ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitElseClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitElseClause: aTSNode [ self rawVisitChildren: aTSNode ] { #category : 'visiting - error' } -FASTPythonVisitor >> visitEscapedInterpolation: aTSNode [ +FASTPythonTreeSitterVisitor >> visitEscapedInterpolation: aTSNode [ self error: 'We sould never finish here because we took the decision of not representing them and the node visit should be skipped in #visitStringContent:.' ] { #category : 'visiting - error' } -FASTPythonVisitor >> visitEscapedSequence: aTSNode [ +FASTPythonTreeSitterVisitor >> visitEscapedSequence: aTSNode [ self error: 'We sould never finish here because we took the decision of not representing them and the node visit should be skipped in #visitStringContent:.' ] { #category : 'visiting' } -FASTPythonVisitor >> visitExceptClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitExceptClause: aTSNode [ - self onNextContextDo: [ :entry | entry add: 'expressions' asAliasOfField: 'value' ]. + self onNextContextDo: [ :entry | entry add: 'expression' asAliasOfField: 'value' ]. ^ self handleNode: aTSNode kind: FASTPyExceptClause parentBlock: [ :entity | self topFastEntity addExcept: entity ] ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitExecStatement: aNode [ +FASTPythonTreeSitterVisitor >> visitExecStatement: aNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #scopes ]. @@ -518,14 +519,14 @@ FASTPythonVisitor >> visitExecStatement: aNode [ ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitExpressionList: aTSNode [ +FASTPythonTreeSitterVisitor >> visitExpressionList: aTSNode [ "We considere expression lists are tuples." ^ self visitTuple: aTSNode ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitExpressionStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitExpressionStatement: aTSNode [ "HERE FOR COMPATIBILITY! Tree Sitter python changed its tree in this commit: https://github.com/tree-sitter/tree-sitter-python/commit/26855eabccb19c6abf499fbc5b8dc7cc9ab8bc64 @@ -536,25 +537,25 @@ FASTPythonVisitor >> visitExpressionStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitFalse: aNode [ +FASTPythonTreeSitterVisitor >> visitFalse: aNode [ ^ self handleNode: aNode kind: FASTPyBoolean ] { #category : 'visiting' } -FASTPythonVisitor >> visitFinallyClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitFinallyClause: aTSNode [ ^ self handleNode: aTSNode kind: FASTPyFinallyClause parentBlock: [ :entity | self topFastEntity finally: entity ] ] { #category : 'visiting' } -FASTPythonVisitor >> visitFormatSpecifier: aTSNode [ +FASTPythonTreeSitterVisitor >> visitFormatSpecifier: aTSNode [ ^ self topFastEntity formatSpecifier: (self sourceCodeOf: aTSNode) allButFirst "We skip the $: character" ] { #category : 'visiting' } -FASTPythonVisitor >> visitFunctionDefinition: aNode [ +FASTPythonTreeSitterVisitor >> visitFunctionDefinition: aNode [ "TreeSitter has the same nodes for method and function definitions but in FAST we want to disambiguate." self onNextContextDo: [ :contextEntry | @@ -568,7 +569,7 @@ FASTPythonVisitor >> visitFunctionDefinition: aNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitFutureImportStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitFutureImportStatement: aTSNode [ "We treat future import as an import from statement" | fastEntity | @@ -582,13 +583,13 @@ FASTPythonVisitor >> visitFutureImportStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitGeneratorExpression: aTSNode [ +FASTPythonTreeSitterVisitor >> visitGeneratorExpression: aTSNode [ ^ self visitComprehension: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitGenericType: aTSNode [ +FASTPythonTreeSitterVisitor >> visitGenericType: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #typeConstructor ]. @@ -596,7 +597,7 @@ FASTPythonVisitor >> visitGenericType: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitGlobalStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitGlobalStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'variables' ]. @@ -604,7 +605,7 @@ FASTPythonVisitor >> visitGlobalStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitIdentifier: aNode [ +FASTPythonTreeSitterVisitor >> visitIdentifier: aNode [ (self isInParameter: aNode) ifTrue: [ ^ self handleParameterNode: aNode name: (self sourceCodeOf: aNode) ]. @@ -624,7 +625,7 @@ FASTPythonVisitor >> visitIdentifier: aNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitIfClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitIfClause: aTSNode [ "The condition always goes in the condition property." | oldField | @@ -637,7 +638,7 @@ FASTPythonVisitor >> visitIfClause: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitIfStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitIfStatement: aTSNode [ self onNextContextDo: [ :entry | entry add: 'thenClause' asAliasOfField: 'consequence' ]. @@ -645,7 +646,7 @@ FASTPythonVisitor >> visitIfStatement: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitImportFromStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitImportFromStatement: aTSNode [ self onNextContextDo: [ :entry | entry @@ -656,7 +657,7 @@ FASTPythonVisitor >> visitImportFromStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitImportPrefix: aTSNode [ +FASTPythonTreeSitterVisitor >> visitImportPrefix: aTSNode [ | fastEntity | fastEntity := self handleNode: aTSNode kind: FASTPyFromModule. @@ -665,7 +666,7 @@ FASTPythonVisitor >> visitImportPrefix: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitImportStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitImportStatement: aTSNode [ self onNextContextDo: [ :entry | entry add: 'importedEntities' asAliasOfField: 'name' ]. @@ -673,7 +674,7 @@ FASTPythonVisitor >> visitImportStatement: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitInteger: aTSNode [ +FASTPythonTreeSitterVisitor >> visitInteger: aTSNode [ "In python we have integers and complex numbers. A Complex ends with a j" @@ -683,7 +684,7 @@ FASTPythonVisitor >> visitInteger: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitKeywordArgument: aTSNode [ +FASTPythonTreeSitterVisitor >> visitKeywordArgument: aTSNode [ "In class definition we want to separate keyword because they affect the metaclass while other arguments affects the superclasses." (self topFastEntity isOfType: FASTPyClassDefinition) ifTrue: [ self setTopFieldTo: 'keywords' ]. @@ -692,7 +693,7 @@ FASTPythonVisitor >> visitKeywordArgument: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitKeywordPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitKeywordPattern: aTSNode [ | fastEntity | fastEntity := self instantiateFastEntity: FASTPyKeywordPattern from: aTSNode. @@ -710,7 +711,7 @@ FASTPythonVisitor >> visitKeywordPattern: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitLambda: aTSNode [ +FASTPythonTreeSitterVisitor >> visitLambda: aTSNode [ self onNextContextDo: [ :entry | entry add: 'expression' asAliasOfField: 'body' ]. @@ -718,38 +719,38 @@ FASTPythonVisitor >> visitLambda: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitLambdaParameters: aNode [ +FASTPythonTreeSitterVisitor >> visitLambdaParameters: aNode [ ^ self visitParameters: aNode ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitLineContinuation: aTSNode [ +FASTPythonTreeSitterVisitor >> visitLineContinuation: aTSNode [ "We do not represent that in FAST, at least for the moment. So I skip this node and act as if the children were in my parent." ^ self rawVisitChildren: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitList: aTSNode [ +FASTPythonTreeSitterVisitor >> visitList: aTSNode [ ^ self handleCollectionNode: aTSNode kind: FASTPyList ] { #category : 'visiting' } -FASTPythonVisitor >> visitListComprehension: aTSNode [ +FASTPythonTreeSitterVisitor >> visitListComprehension: aTSNode [ ^ self visitComprehension: aTSNode ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitListPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitListPattern: aTSNode [ ^ self visitList: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitListSplat: aTSNode [ +FASTPythonTreeSitterVisitor >> visitListSplat: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'expression' ]. @@ -757,7 +758,7 @@ FASTPythonVisitor >> visitListSplat: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitListSplatPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitListSplatPattern: aTSNode [ "In case we are a parameter we skip the children because it always is an identifier" (self isInParameter: aTSNode) ifTrue: [ @@ -771,13 +772,13 @@ FASTPythonVisitor >> visitListSplatPattern: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitMemberType: aTSNode [ +FASTPythonTreeSitterVisitor >> visitMemberType: aTSNode [ 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!' ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitModule: aTSNode [ +FASTPythonTreeSitterVisitor >> visitModule: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'statements' ]. @@ -785,13 +786,13 @@ FASTPythonVisitor >> visitModule: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitNamedExpression: aTSNode [ +FASTPythonTreeSitterVisitor >> visitNamedExpression: aTSNode [ ^ self handleNode: aTSNode kind: FASTPyWalrus ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitNonlocalStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitNonlocalStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'variables' ]. @@ -799,27 +800,27 @@ FASTPythonVisitor >> visitNonlocalStatement: aTSNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitParameters: aNode [ +FASTPythonTreeSitterVisitor >> visitParameters: aNode [ "For parameters we want one by parameter. Not one node for multiple ones." ^ self rawVisitChildren: aNode ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitParenthesizedExpression: aTSNode [ +FASTPythonTreeSitterVisitor >> visitParenthesizedExpression: aTSNode [ "We do not represent that in FAST, at least for the moment. So I skip this node and act as if the children were in my parent." ^ self rawVisitChildren: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitParenthesizedListSplat: aTSNode [ +FASTPythonTreeSitterVisitor >> visitParenthesizedListSplat: aTSNode [ 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!' ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitPatternList: aTSNode [ +FASTPythonTreeSitterVisitor >> visitPatternList: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'initializers' ]. @@ -827,7 +828,7 @@ FASTPythonVisitor >> visitPatternList: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitPrintStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitPrintStatement: aTSNode [ self onNextContextDo: [ :entry | entry add: #expressions asAliasOfField: 'argument' ]. @@ -835,7 +836,7 @@ FASTPythonVisitor >> visitPrintStatement: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitRaiseStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitRaiseStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #exception ]. @@ -843,32 +844,32 @@ FASTPythonVisitor >> visitRaiseStatement: aTSNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitRelativeImport: aTSNode [ +FASTPythonTreeSitterVisitor >> visitRelativeImport: aTSNode [ "Nothing to do. The visit of my children will take care of things. I use the #raw version since it is what should be used to skip a context level." self rawVisitChildren: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitReturnStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitReturnStatement: aTSNode [ ^ self visitStatement: aTSNode ] { #category : 'visiting' } -FASTPythonVisitor >> visitSet: aTSNode [ +FASTPythonTreeSitterVisitor >> visitSet: aTSNode [ ^ self handleCollectionNode: aTSNode kind: FASTPySet ] { #category : 'visiting' } -FASTPythonVisitor >> visitSetComprehension: aTSNode [ +FASTPythonTreeSitterVisitor >> visitSetComprehension: aTSNode [ ^ self visitComprehension: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitSlice: aTSNode [ +FASTPythonTreeSitterVisitor >> visitSlice: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'components' ]. @@ -876,7 +877,7 @@ FASTPythonVisitor >> visitSlice: aTSNode [ ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitSplatPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitSplatPattern: aTSNode [ ^ ((self sourceCodeOf: aTSNode) beginsWith: '**') ifTrue: [ self visitDictionarySplat: aTSNode ] @@ -884,7 +885,7 @@ FASTPythonVisitor >> visitSplatPattern: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. @@ -892,7 +893,7 @@ FASTPythonVisitor >> visitStatement: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitString: aTSNode [ +FASTPythonTreeSitterVisitor >> visitString: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #interpolations ]. @@ -900,28 +901,28 @@ FASTPythonVisitor >> visitString: aTSNode [ ] { #category : 'visiting - noop' } -FASTPythonVisitor >> visitStringContent: aNode [ +FASTPythonTreeSitterVisitor >> visitStringContent: aNode [ "We only want one node for the string, my parent." ] { #category : 'visiting - noop' } -FASTPythonVisitor >> visitStringEnd: aNode [ +FASTPythonTreeSitterVisitor >> visitStringEnd: aNode [ "We only want one node for the string, my parent." ] { #category : 'visiting - noop' } -FASTPythonVisitor >> visitStringStart: aNode [ +FASTPythonTreeSitterVisitor >> visitStringStart: aNode [ "We only want one node for the string, my parent." ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitSubscript: aTSNode [ +FASTPythonTreeSitterVisitor >> visitSubscript: aTSNode [ self onNextContextDo: [ :entry | entry add: #indices asAliasOfField: 'subscript' ]. @@ -929,19 +930,19 @@ FASTPythonVisitor >> visitSubscript: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitTrue: aNode [ +FASTPythonTreeSitterVisitor >> visitTrue: aNode [ ^ self handleNode: aNode kind: FASTPyBoolean ] { #category : 'visiting' } -FASTPythonVisitor >> visitTuple: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTuple: aTSNode [ ^ self handleCollectionNode: aTSNode kind: FASTPyTuple ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitTupleExpression: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTupleExpression: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #initializers ]. @@ -949,13 +950,13 @@ FASTPythonVisitor >> visitTupleExpression: aTSNode [ ] { #category : 'visiting - redirect' } -FASTPythonVisitor >> visitTuplePattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTuplePattern: aTSNode [ ^ self visitTuple: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitType: aTSNode [ +FASTPythonTreeSitterVisitor >> visitType: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #content ]. @@ -963,13 +964,13 @@ FASTPythonVisitor >> visitType: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitTypeConversion: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTypeConversion: aTSNode [ ^ self topFastEntity typeConversion: (self sourceCodeOf: aTSNode) allButFirst "We skip the $! character" ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitTypeParameter: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTypeParameter: aTSNode [ "Nothing to do. The visit of my child will take care of things. I use the #raw version since it is what should be used to skip a context level." self setTopFieldTo: 'typeParameters'. @@ -977,7 +978,7 @@ FASTPythonVisitor >> visitTypeParameter: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitTypedDefaultParameter: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTypedDefaultParameter: aTSNode [ | children parameter | children := aTSNode collectNamedChild. @@ -997,7 +998,7 @@ FASTPythonVisitor >> visitTypedDefaultParameter: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitTypedParameter: aTSNode [ +FASTPythonTreeSitterVisitor >> visitTypedParameter: aTSNode [ | children parameter | children := aTSNode collectNamedChild. @@ -1015,7 +1016,7 @@ FASTPythonVisitor >> visitTypedParameter: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitUnaryOperator: aTSNode [ +FASTPythonTreeSitterVisitor >> visitUnaryOperator: aTSNode [ | fastEntity | fastEntity := self handleNode: aTSNode. @@ -1027,7 +1028,7 @@ FASTPythonVisitor >> visitUnaryOperator: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitUnionPattern: aTSNode [ +FASTPythonTreeSitterVisitor >> visitUnionPattern: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #members ]. @@ -1035,7 +1036,7 @@ FASTPythonVisitor >> visitUnionPattern: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitUnionType: aTSNode [ +FASTPythonTreeSitterVisitor >> visitUnionType: aTSNode [ "If we have union types in union types, we want to flatten them in only one node. But the implementation might need to change depending on this issue: https://github.com/tree-sitter/tree-sitter-python/issues/334" (self topFastEntity isOfType: FASTPyUnionType) ifTrue: [ ^ self rawVisitChildren: aTSNode ]. @@ -1046,7 +1047,7 @@ FASTPythonVisitor >> visitUnionType: aTSNode [ ] { #category : 'visiting' } -FASTPythonVisitor >> visitWildcardImport: aTSNode [ +FASTPythonTreeSitterVisitor >> visitWildcardImport: aTSNode [ | fastEntity | fastEntity := self instantiateFastEntity: FASTPyImportedEntity from: aTSNode. @@ -1056,21 +1057,21 @@ FASTPythonVisitor >> visitWildcardImport: aTSNode [ ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitWithClause: aTSNode [ +FASTPythonTreeSitterVisitor >> visitWithClause: aTSNode [ "Nothing to do. The visit of my child will take care of things. I use the #raw version since it is what should be used to skip a context level." self rawVisitChildren: aTSNode ] { #category : 'visiting - skip' } -FASTPythonVisitor >> visitWithItem: aTSNode [ +FASTPythonTreeSitterVisitor >> visitWithItem: aTSNode [ "Nothing to do. The visit of my child will take care of things. I use the #raw version since it is what should be used to skip a context level." self rawVisitChildren: aTSNode ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitWithStatement: aTSNode [ +FASTPythonTreeSitterVisitor >> visitWithStatement: aTSNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: 'items' ]. @@ -1078,7 +1079,7 @@ FASTPythonVisitor >> visitWithStatement: aTSNode [ ] { #category : 'visiting - alias' } -FASTPythonVisitor >> visitYield: aNode [ +FASTPythonTreeSitterVisitor >> visitYield: aNode [ self onNextContextDo: [ :entry | entry aliasUnnamedFieldAs: #expression ]. diff --git a/src/FAST-Python-Visitor/package.st b/src/FAST-Python-Visitor/package.st deleted file mode 100644 index c7de993..0000000 --- a/src/FAST-Python-Visitor/package.st +++ /dev/null @@ -1 +0,0 @@ -Package { #name : 'FAST-Python-Visitor' }